summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-14 14:49:03 +0100
committerJoe <rrbo@proton.me>2023-02-14 14:49:03 +0100
commit5d4f5057ac8b42a76ae98562a74478e7d0550449 (patch)
tree2fc467abf749d536a2043a3bc6433c29b51b7dbe /.local/bin/conky
parentup (diff)
downloaddotfiles-bsd-5d4f5057ac8b42a76ae98562a74478e7d0550449.tar.gz
dotfiles-bsd-5d4f5057ac8b42a76ae98562a74478e7d0550449.tar.bz2
dotfiles-bsd-5d4f5057ac8b42a76ae98562a74478e7d0550449.tar.xz
dotfiles-bsd-5d4f5057ac8b42a76ae98562a74478e7d0550449.tar.zst
dotfiles-bsd-5d4f5057ac8b42a76ae98562a74478e7d0550449.zip
up
Diffstat (limited to '.local/bin/conky')
-rwxr-xr-x.local/bin/conky/getif.sh10
-rwxr-xr-x.local/bin/conky/net.sh10
-rwxr-xr-x.local/bin/conky/weather.sh2
3 files changed, 8 insertions, 14 deletions
diff --git a/.local/bin/conky/getif.sh b/.local/bin/conky/getif.sh
index 78a02ef..cf7d921 100755
--- a/.local/bin/conky/getif.sh
+++ b/.local/bin/conky/getif.sh
@@ -1,19 +1,17 @@
#!/bin/sh
-os=$(cat "/tmp/os")
-
# ifconfig | command grep '^[a-z]' | awk '{print $1}' | sed '{/lo/d;s/://;}'
-case $os in
- 1)
+case "$(hostname -s)" in
+ mother)
if_main="eth1"
if_alt="eth0"
;;
- 2)
+ po-rbo)
if_main="enx4ce1734c425a"
if_alt="wlp1s0"
;;
- 3)
+ fbsd-tp)
if_main="em0"
if_alt="wlan0"
exit
diff --git a/.local/bin/conky/net.sh b/.local/bin/conky/net.sh
index 1cdc930..efbb16f 100755
--- a/.local/bin/conky/net.sh
+++ b/.local/bin/conky/net.sh
@@ -1,17 +1,15 @@
#!/bin/sh
-os=$(cat "/tmp/os")
-
-case $os in
- 1)
+case "$(hostname -s)" in
+ mother)
if_main="eth1"
if_alt="eth0"
;;
- 2)
+ po-rbo)
if_main="enx4ce1734c425a"
if_alt="wlp1s0"
;;
- 3)
+ fbsd-tp)
if_main="em0"
if_alt="wlan0"
exit
diff --git a/.local/bin/conky/weather.sh b/.local/bin/conky/weather.sh
index b724fb6..83df4f8 100755
--- a/.local/bin/conky/weather.sh
+++ b/.local/bin/conky/weather.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-os=$(cat /tmp/os)
-
case "$(hostname -s)" in
mother | po-rbo)
ping -c1 -w1 1.1.1.1 >/dev/null 2>&1 || exit