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-vpn8
1 files changed, 6 insertions, 2 deletions
diff --git a/.local/bin/dwmbar/dwmb-vpn b/.local/bin/dwmbar/dwmb-vpn
index 3004c9d..e08e6d6 100755
--- a/.local/bin/dwmbar/dwmb-vpn
+++ b/.local/bin/dwmbar/dwmb-vpn
@@ -6,9 +6,9 @@ vpnstatus=$(expressvpn status | head -n 1)
case "$vpnstatus" in
*"Not"*) icon=""
;;
- *"Connected"*) icon=""
+ *"Connected"*) icon=""
;;
- *"Connecting"*) icon=" "
+ *"Connecting"*) icon=" "
;;
*) icon=""
esac
@@ -23,3 +23,7 @@ echo " $icon "
# \033]01;34\] # blue
# \033]01;33\] # bold yellow
# s/onnected\sto\s//;
+case $BLOCK_BUTTON in
+ 1) ~/.local/bin/vpnmenu ;;
+ 6) "$TERMINAL" -e "$EDITOR" "$0" ;;
+esac