summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-vpn
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dwmbar/dwmb-vpn')
-rwxr-xr-x.local/bin/dwmbar/dwmb-vpn23
1 files changed, 11 insertions, 12 deletions
diff --git a/.local/bin/dwmbar/dwmb-vpn b/.local/bin/dwmbar/dwmb-vpn
index 9ddb5b5..4ce86f9 100755
--- a/.local/bin/dwmbar/dwmb-vpn
+++ b/.local/bin/dwmbar/dwmb-vpn
@@ -4,13 +4,13 @@
vpnstatus="$(piactl get connectionstate)"
case "$vpnstatus" in
- Disconnected) icon=" " ;;
- Connecting) icon="  " ;;
- Connected) icon=" " ;;
- Interrupted) icon="  " ;;
- Reconnecting) icon="  " ;;
- DisconnectingToReconnect) icon="  ";;
- Disconnecting) icon="  " ;;
+Disconnected) icon=" " ;;
+Connecting) icon="  " ;;
+Connected) icon=" " ;;
+Interrupted) icon=" " ;;
+Reconnecting) icon="  " ;;
+DisconnectingToReconnect) icon="  " ;;
+Disconnecting) icon="  " ;;
esac
# case "$vpnstatus" in
@@ -25,7 +25,6 @@ esac
echo " $icon"
-
# \033]01;31\] # pink
# \033]00m\] # white
# \033]01;36\] # bold green
@@ -34,8 +33,8 @@ echo " $icon"
# \033]01;33\] # bold yellow
# s/onnected\sto\s//;
case $BLOCK_BUTTON in
- 1) piactl connect && notify-send -a "VPN" "Connected" && kill -36 $(pidof dwmblocks);;
- 2) vpnmenu ;;
- 3) piactl disconnect && notify-send -a "VPN" "Disonnected" && kill -36 $(pidof dwmblocks);;
- 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
+1) piactl connect && notify-send -a "VPN" "Connected" && kill -36 "$(pidof dwmblocks)" ;;
+2) vpnmenu ;;
+3) piactl disconnect && notify-send -a "VPN" "Disonnected" && kill -36 "$(pidof dwmblocks)" ;;
+6) "$TERMINAL" -e "$EDITOR" "$0" ;;
esac