commit 1b0fe8051aff02b220e8145032a665e20830602f
parent a68f8d7ebc1482ec33f573401240bc6c081367b3
Author: Matthew Carlson <matt@mattcarlson.org>
Date: Tue, 13 Sep 2022 14:38:15 -0400
add if/else statements for hostname
Diffstat:
7 files changed, 18 insertions(+), 51 deletions(-)
diff --git a/.config/autorandr/external/config b/.config/autorandr/external/config
@@ -1,25 +0,0 @@
-output eDP1
-off
-output DP1
-off
-output DP2
-off
-output DP3
-off
-output DP3-1
-off
-output DP3-3
-off
-output HDMI1
-off
-output HDMI2
-off
-output HDMI3
-off
-output VIRTUAL1
-off
-output DP3-2
-crtc 1
-mode 1920x1080
-pos 0x0
-rate 144.00
diff --git a/.config/autorandr/external/setup b/.config/autorandr/external/setup
@@ -1 +0,0 @@
-DP3-2 00ffffffffffff000469a424010101010d180104a5351e783a9de5a654549f260d5054b7ef00714f8180814081c081009500b3000101023a801871382d40582c4500132b2100001e000000fd0032961ea021000a202020202020000000fc0056473234380a20202020202020000000ff0045334c4d51533037363239300a01c9020318f14b900504030201111213141f2309070783010000023a801871382d40582c4500132b2100001e8a4d80a070382c4030203500132b2100001afe5b80a07038354030203500132b2100001a866f80a07038404030203500132b2100001afc7e80887038124018203500132b2100001e0000000000000000000000000073
diff --git a/.config/autorandr/internal/config b/.config/autorandr/internal/config
@@ -1,20 +0,0 @@
-output DP1
-off
-output DP2
-off
-output DP3
-off
-output HDMI1
-off
-output HDMI2
-off
-output HDMI3
-off
-output VIRTUAL1
-off
-output eDP1
-crtc 0
-mode 1920x1080
-pos 0x0
-primary
-rate 60.01
diff --git a/.config/autorandr/internal/setup b/.config/autorandr/internal/setup
@@ -1 +0,0 @@
-eDP1 00ffffffffffff000daeb114000000000c190104951f117802ff35925552952925505400000001010101010101010101010101010101b43b804a71383440503c680034ad10000018000000fe004e3134304843452d4541410a20000000fe00434d4e0a202020202020202020000000fe004e3134304843452d4541410a2000a2
diff --git a/.config/sh/profile b/.config/sh/profile
@@ -86,7 +86,14 @@ export FFF_OPENER="${HOME}/.local/bin/open.sh"
export FFF_STAT_CMD="stat"
# pfetch
-export HOSTNAME='laptop'
+hostname='/etc/hostname'
+if [ -f "${hostname}" ]; then
+ if [ "$(cat "${hostname}")" = 'laptop' ]; then
+ export HOSTNAME='laptop'
+ elif [ "$(cat "${hostname}")" = 'pc' ]; then
+ export HOSTNAME='pc'
+ fi
+fi
export PF_INFO='ascii title os host kernel uptime pkgs memory shell editor wm palette'
export PF_COL1=2
diff --git a/.config/transmission-daemon/settings.json b/.config/transmission-daemon/settings.json
@@ -26,7 +26,7 @@
"peer-id-ttl-hours": 0,
"peer-limit-global": 65535,
"peer-limit-per-torrent": 65535,
- "peer-port": 60813,
+ "peer-port": 59043,
"peer-port-random-high": 65535,
"peer-port-random-low": 49152,
"peer-port-random-on-start": true,
diff --git a/.local/bin/bar/cpu.sh b/.local/bin/bar/cpu.sh
@@ -12,8 +12,15 @@ TEMP_FULL_ICON=''
# approx delay with top alternative
DELAY=3.15
-# differs on machine
-TEMP="$(ls /sys/class/thermal/thermal_zone2*/temp)"
+# thermal zone for temp differs on machine
+hostname='/etc/hostname'
+if [ -f "${hostname}" ]; then
+ if [ "$(cat "${hostname}")" = 'laptop' ]; then
+ TEMP="$(ls /sys/class/thermal/thermal_zone2*/temp)"
+ elif [ "$(cat "${hostname}")" = 'pc' ]; then
+ TEMP="$(ls /sys/class/thermal/thermal_zone0*/temp)"
+ fi
+fi
# cache used b/c awk and delay is time expensive
USAGE="${XDG_CACHE_HOME:-${HOME}/.cache/}/dots/bar/usage"