diff options
Diffstat (limited to '.local/bin/vpnmenu')
-rwxr-xr-x | .local/bin/vpnmenu | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/vpnmenu b/.local/bin/vpnmenu index ff584e0..a42d000 100755 --- a/.local/bin/vpnmenu +++ b/.local/bin/vpnmenu @@ -3,8 +3,8 @@ region="$(piactl get regions | dmenu -p "Select Region: ")" update=$(kill -36 $(pidof dwmblocks)) -[ "$region" == "" ] && notify-send -a " VPN" "Operation aborted" -[ "$region" != "" ] && piactl set region "$region" && \ - $update && notify-send -a " VPN" "Changed region to $region" && \ +[ "$region" == "" ] && notify-send -a " VPN" "Operation aborted" +[ "$region" != "" ] && piactl set region "$region" && + $update && notify-send -a " VPN" "Changed region to $region" && sleep 3 && $update # Comment next line if not using the vpn dwmblock |