summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-10 15:55:38 +0100
committerJoe <rrbo@proton.me>2023-02-10 15:55:38 +0100
commit6acd5896ec61ff9ada302dd7a8773779c1a32c1a (patch)
tree90c364e01f80752b9c0b32486bc2186c0ae22a95 /.local/bin/conky
parentup (diff)
downloaddotfiles-bsd-6acd5896ec61ff9ada302dd7a8773779c1a32c1a.tar.gz
dotfiles-bsd-6acd5896ec61ff9ada302dd7a8773779c1a32c1a.tar.bz2
dotfiles-bsd-6acd5896ec61ff9ada302dd7a8773779c1a32c1a.tar.xz
dotfiles-bsd-6acd5896ec61ff9ada302dd7a8773779c1a32c1a.tar.zst
dotfiles-bsd-6acd5896ec61ff9ada302dd7a8773779c1a32c1a.zip
up
Diffstat (limited to '.local/bin/conky')
-rwxr-xr-x.local/bin/conky/net.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/.local/bin/conky/net.sh b/.local/bin/conky/net.sh
index 0a1bbee..e3f731b 100755
--- a/.local/bin/conky/net.sh
+++ b/.local/bin/conky/net.sh
@@ -23,6 +23,8 @@ if grep up "/sys/class/net/$if_main/operstate" >/dev/null 2>&1 && ! [ -z $(ifcon
elif grep up "/sys/class/net/$if_alt/operstate" >/dev/null 2>&1 && ! [ -z $(ifconfig $if_alt 2>/dev/null | awk '/inet / {print $2}') ]; then
if_main=$if_alt
else
+ echo '${font1}NETWORK ${hr}${font}
+${color #928374}No network${font}'
exit
fi