dotfiles/tmux/.tmux/scripts/vpn-status.sh
2025-12-28 12:26:00 -07:00

9 lines
222 B
Bash
Executable file

#!/bin/bash
# VPN status for tmux statusline
# Check WireGuard ProtonVPN connection via ip link (no sudo needed)
if ip link show protonvpn 2>/dev/null | grep -qE "<.*UP.*>"; then
echo "🛡️"
else
echo "❌"
fi