summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-vpn
blob: 908aa76c88717c1f2dc46c6cdc117c6c61c00762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Outputs if Express VPN is connected or not

vpnstatus=$(expressvpn status | head -n 1)

case "$vpnstatus" in
	*"Not"*) icon=""
		;;
	*"Connected"*) icon=""
		;;
	*"Connecting"*) icon=" "
		;;
	*) icon=""
esac

echo " $icon "


# \033]01;31\] # pink
# \033]00m\]   # white
# \033]01;36\] # bold green
# \033]02;36\] # green
# \033]01;34\] # blue
# \033]01;33\] # bold yellow
# s/onnected\sto\s//;