aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/scripts/vpn-toggle
blob: 4b48203ac6dc4401bb2292546221a250a3e11564 (plain)
1
2
3
4
5
6
7
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