aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-internet
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-27 20:39:10 +0300
committerawy <awy@tutamail.com>2024-08-27 20:39:10 +0300
commit171cb279b05e639f07162059d1d0f390497e36b6 (patch)
tree8a73c16989ac74fe35d40ee0a03f40244dc3e326 /.local/bin/statusbar/sb-internet
parent65e7d90f0dabd1dc9e0fa3680b4d118189b53d01 (diff)
hyprctl dispatch
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