From 171cb279b05e639f07162059d1d0f390497e36b6 Mon Sep 17 00:00:00 2001 From: awy Date: Tue, 27 Aug 2024 20:39:10 +0300 Subject: hyprctl dispatch --- .local/bin/statusbar/sb-internet | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/statusbar/sb-internet') diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 8f0a3f6..7ba5a0e 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -6,10 +6,10 @@ togglevpn() { if [ ! -n "$(cat /sys/class/net/wg0/operstate 2>/dev/null)" ];then - doas wg-quick up wg0 + doas wg-quick up wg0 notify-send "🔒 Internet module" "Connected to VPN" else - doas wg-quick down wg0 + doas wg-quick down wg0 notify-send "🔒 Internet module" "Disconnected from VPN" fi } @@ -24,7 +24,7 @@ case $1 in 🌐: ethernet working 🔒: vpn is active " ;; - 6) kitty -e "$EDITOR" "$0" ;; + 6) hyprctl dispatch exec "kitty -e \"$EDITOR\" \"$0\"" ;; esac # Wifi -- cgit v1.2.3