summaryrefslogtreecommitdiffstats
path: root/.local/bin/conky
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-10-18 11:51:41 +0200
committerJoe <rbo@gmx.us>2024-10-18 11:51:41 +0200
commit306c18d920afb6205693a00368c6e25d1836a5f5 (patch)
treed350c8fe00b43b111ab84e0f33731a8defc91a48 /.local/bin/conky
parentup (diff)
downloaddotfiles-bsd-306c18d920afb6205693a00368c6e25d1836a5f5.tar.gz
dotfiles-bsd-306c18d920afb6205693a00368c6e25d1836a5f5.tar.bz2
dotfiles-bsd-306c18d920afb6205693a00368c6e25d1836a5f5.tar.xz
dotfiles-bsd-306c18d920afb6205693a00368c6e25d1836a5f5.tar.zst
dotfiles-bsd-306c18d920afb6205693a00368c6e25d1836a5f5.zip
up
Diffstat (limited to '.local/bin/conky')
-rwxr-xr-x.local/bin/conky/net.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/conky/net.sh b/.local/bin/conky/net.sh
index c4ea3fd..781bd9c 100755
--- a/.local/bin/conky/net.sh
+++ b/.local/bin/conky/net.sh
@@ -34,7 +34,7 @@ fi
if [ -z $if_vpnssl ]; then
:
-elif ip a | grep $if_vpnssl | grep DOWN >/dev/null 2>&1; then
+elif ! ip a | grep $if_vpnssl | grep UP >/dev/null 2>&1; then
if_vpnssl=""
fi
@@ -44,5 +44,5 @@ echo $if_main'${font}'
[ -z $if_vpnssl ] || echo '${color1}Forti VPN-SSL ${color0}ON${font}'
[ -z $if_vpnssl ] || echo '${color1}VPN IP ${color0}${goto 80}${addr '$if_vpnssl'}${font}'
echo '${voffset 3}${color1}LAN IP ${color0}${goto 80}${addr '$if_main'}${font}'
-echo '${color1}DNS IP ${color0}${goto 80}${nameserver 0}${font}'
+echo '${color1}DNS IP ${color0}${goto 80}${nameserver 0}${if_match "${nameserver 1}" != ""}, ${nameserver 1}${endif}${font}'
echo '${color1}WAN IP ${color0}${goto 80}${execi 15 curl -s https://ifconfig.me || echo No WAN}${font}'