diff options
author | Joe <rrbo@proton.me> | 2023-02-10 15:55:38 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-02-10 15:55:38 +0100 |
commit | 6acd5896ec61ff9ada302dd7a8773779c1a32c1a (patch) | |
tree | 90c364e01f80752b9c0b32486bc2186c0ae22a95 /.local/bin/conky | |
parent | up (diff) | |
download | dotfiles-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.sh | 2 |
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 |