diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-03 19:27:15 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2020-10-03 19:27:15 -0400 |
commit | e371d9edd474bcf89cf5d462eaccb8638900b390 (patch) | |
tree | ed07118f5c514a55f23a779a1507640e46fd9ed2 /.local/bin/vpnstatus |
Initial commit
Diffstat (limited to '.local/bin/vpnstatus')
-rwxr-xr-x | .local/bin/vpnstatus | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.local/bin/vpnstatus b/.local/bin/vpnstatus new file mode 100755 index 0000000..908aa76 --- /dev/null +++ b/.local/bin/vpnstatus @@ -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//; |