diff options
Diffstat (limited to '.config/waybar/scripts')
-rwxr-xr-x | .config/waybar/scripts/vpn-toggle | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/waybar/scripts/vpn-toggle b/.config/waybar/scripts/vpn-toggle new file mode 100755 index 0000000..4b48203 --- /dev/null +++ b/.config/waybar/scripts/vpn-toggle @@ -0,0 +1,8 @@ +#!/bin/sh +if [ -d /sys/class/net/wg0 ]; then + doas wg-quick down wg0 + hyprctl notify 5 5000 "rgb(ff0000)" " VPN is disabled" +else + doas wg-quick up wg0 + hyprctl notify 5 5000 "rgb(008000)" " VPN is enabled" +fi |