Add 'vpn-nordvpn-status.sh'
This commit is contained in:
parent
d06f0d0824
commit
88d184e9ca
9
vpn-nordvpn-status.sh
Normal file
9
vpn-nordvpn-status.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
STATUS=$(nordvpn status | grep Status | tr -d ' ' | cut -d ':' -f2)
|
||||
|
||||
if [ "$STATUS" = "Connected" ]; then
|
||||
echo "%{F#82E0AA}%{A1:nordvpn d:}$(nordvpn status | grep City | cut -d ':' -f2)%{A}%{F-}"
|
||||
else
|
||||
echo "%{F#f00}%{A1:nordvpn c:}no vpn%{A}%{F-}"
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user