diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-24 12:22:09 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-24 12:22:09 -0500 |
commit | 2c5a050641d5400843facfc65e58a2bef5d87422 (patch) | |
tree | b9b0f04c256509dc773197c90605f763d51c3400 /.local/bin/dwmbar/dwmb-vpn | |
parent | 61e7324e6692b155b6dd1d450ff431582c1fc57b (diff) |
Multithreaded R package compilation
Diffstat (limited to '.local/bin/dwmbar/dwmb-vpn')
-rwxr-xr-x | .local/bin/dwmbar/dwmb-vpn | 23 |
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 |