summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-vpn
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 02:01:11 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-17 02:01:11 -0400
commitd427693f43ba211e35f18adc877f5df48e4724db (patch)
tree51d25a2b70c14644c1c07a366d5b75740d4017e7 /.local/bin/dwmbar/dwmb-vpn
parenteec12916e3b113825420c3e6731f87b770487245 (diff)
Add clickable elements to dwmblocks scripts
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