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

13 lines
305 B
Plaintext
Raw Normal View History

2024-02-17 14:31:00 +01:00
#!/usr/bin/env sh
# Check if wireguard VPN is active
if nmcli c show --active | grep -q wireguard; then
echo ""
# If not, check if the connection named "YapiBiche" is active
elif nmcli c show --active | grep -q "YapiBiche"; then
echo ""
# If neither is active, return "NO"
else
echo ""
fi