summaryrefslogtreecommitdiff
path: root/.local/bin/vpnmenu
blob: d679c49a3ffca24ffe83ed5c5190dec64acfec74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

current=$(expressvpn status | sed "s/.......................//; 1q")

location=$(expressvpn list recomend | sed "1,4d; s/^.*\t//" | head | dmenu -l 10)

if [ ! -n "$location" ]
then
	notify-send -i "$HOME/.fonts/svg/shield.svg" -a "VPN Module" "Operation aborted"
else
	expressvpn disconnect; expressvpn connect "$location"
fi

# expressvpn disconnect; expressvpn connect "$location"