aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-internet
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar/sb-internet')
-rwxr-xr-x.local/bin/statusbar/sb-internet6
1 files changed, 3 insertions, 3 deletions
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