diff options
author | Joe <rbo@gmx.us> | 2024-10-18 11:51:41 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-10-18 11:51:41 +0200 |
commit | 306c18d920afb6205693a00368c6e25d1836a5f5 (patch) | |
tree | d350c8fe00b43b111ab84e0f33731a8defc91a48 /.local | |
parent | up (diff) | |
download | dotfiles-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')
-rwxr-xr-x | .local/bin/conky/net.sh | 4 |
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}' |