summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-vpn
blob: d049f603385117de216be63cd5a9bf20047dc88e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# Outputs if Express VPN is connected or not

vpnstatus="$(piactl get connectionstate)"

case "$vpnstatus" in
Disconnected) icon=" " ;;
Connecting) icon="  " ;;
Connected) icon=" " ;;
Interrupted) icon=" " ;;
Reconnecting) icon="  " ;;
DisconnectingToReconnect) icon="  " ;;
Disconnecting) icon="  " ;;
esac

echo " $icon"