diff options
Diffstat (limited to '.config/polybar')
| -rwxr-xr-x | .config/polybar/scripts/vpn.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.config/polybar/scripts/vpn.sh b/.config/polybar/scripts/vpn.sh new file mode 100755 index 0000000..27def8a --- /dev/null +++ b/.config/polybar/scripts/vpn.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +country=$(protonvpn s | grep Country) +connection=$(pgrep -a openvpn$ | head -n 1 | awk '{print $NF }' | cut -d '.' -f 1) + +if [ "$connection" != "" ]; then + echo " vpn" #"$country" +else + echo " vpn" +fi +# +#proton_status=$(protonvpn s) +#current_status=$(protonvpn s | wc -l) +#current_server=$(protonvpn s | awk '/Server:/ {print "VPN "$2}') +# +#if [ "$current_status" -gt 2 ]; then +# echo "$current_server" +#else +# echo "%{F#bf616a}NO VPN" +#fi |
