1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-10-07 04:22:53 +00:00
Dotfiles/.config/polybar/polybar-scripts/vpn-nordvpn-status/vpn-nordvpn-status.sh

10 lines
270 B
Bash
Raw Normal View History

2020-07-27 04:59:00 +00:00
#!/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