Files
hyprdots/config/eww/scripts/vpninfo.sh
2025-05-07 01:56:43 +02:00

9 lines
139 B
Bash
Executable File

#!/bin/sh
if ip --brief addr | grep -q "tun" ; then
echo 1
elif ip --brief addr | grep -q "tail" ; then
echo 2
else
echo 3
fi