nordvpn etc.

This commit is contained in:
Harri Lahtinen 2020-04-30 15:13:14 +03:00
parent 3c3a2218cc
commit 5cee990453
4 changed files with 9 additions and 3 deletions

View File

@ -129,7 +129,7 @@ label-background = ${colors.color6}
type = custom/script
exec = ~/.config/polybar/scripts/nordvpn/vpn-nordvpn-status.sh
interval = 5
label = " %output%"
label = " %output% "
label-foreground = ${colors.color0}
label-background = ${colors.color3}

View File

@ -3,7 +3,7 @@
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-}"
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-}"
echo "%{F#4C566A}%{A1:nordvpn c:} no vpn%{A}%{F-}"
fi

View File

@ -23,6 +23,9 @@ alias sustatus='sudo systemctl status'
alias sustart='sudo systemctl start'
alias sustop='sudo systemctl stop'
alias surestart='sudo systemctl restart'
alias suenable='sudo systemctl enable'
alias sudisable='sudo systemctl disable'
alias orphans='sudo pacman -Rns $(pacman -Qtdq)'
#Check the weather:
weath() { curl wttr.in/Hameenlinna ;}

View File

@ -55,6 +55,7 @@ gtop
gucharmap
gvfs-mtp
gzip
helm
htop
i3-gaps-next-git
inetutils
@ -67,6 +68,7 @@ jfsutils
jq
jsoncpp
kitty
kubectl
less
libglade
libinput-gestures
@ -126,6 +128,7 @@ pulseaudio-bluetooth
python-cairo
python-mpd2
python-pip
python-pynvim
python-pyqt5
python-pywal
python-setuptools