From 2c5a050641d5400843facfc65e58a2bef5d87422 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Wed, 24 Jan 2024 12:22:09 -0500 Subject: Multithreaded R package compilation --- .local/bin/dwmbar/dwmb-vpn | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to '.local/bin/dwmbar') 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 -- cgit v1.2.3