dotfiles/root/home/bhasher/.config/waybar/scripts/vpn-toggle

12 lines
252 B
Bash
Executable File

#!/usr/bin/env sh
env SUDO_ASKPASS=/usr/bin/lxqt-openssh-askpass
if nmcli c show --active | grep -q wireguard; then
sudo -A wg-quick down bxl-shp
notify-send "VPN bxl-shp DOWN"
else
sudo -A wg-quick up bxl-shp
notify-send "VPN bxl-shp UP"
fi