dotfiles/de/home/.config/waybar/scripts/nmcli_vpn
2024-12-05 14:45:02 -08:00

9 lines
186 B
Bash
Executable file

#!/bin/bash
if $(nmcli -g GENERAL.STATE c s HomeVPN|grep -q '\bactiv'); then
echo "going down"
nmcli connection down HomeVPN
else
echo "going up"
nmcli connection up HomeVPN
fi