You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
269 B
9 lines
269 B
#!/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
|