summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-vpn
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
commite860d9a8f7ca586fa88ba2f0b1325377ebb14615 (patch)
tree22775fb8343e95ae56b26a8207b6a31c857ee419 /.local/bin/dwmbar/dwmb-vpn
parentc295d8331ff5193cb97b1e3f6b15836654b010cc (diff)
dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar/dwmb-vpn')
-rwxr-xr-x.local/bin/dwmbar/dwmb-vpn25
1 files changed, 25 insertions, 0 deletions
diff --git a/.local/bin/dwmbar/dwmb-vpn b/.local/bin/dwmbar/dwmb-vpn
new file mode 100755
index 0000000..908aa76
--- /dev/null
+++ b/.local/bin/dwmbar/dwmb-vpn
@@ -0,0 +1,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//;