Added vpn script

This commit is contained in:
2025-11-16 23:24:13 +01:00
parent 35c6b79229
commit dabafd59c2
2 changed files with 19 additions and 0 deletions
+5
View File
@@ -12,6 +12,11 @@ command=/home/agres/.config/i3/scripts/lab.sh
interval=60
label=LAB:
[homelab]
command=/home/agres/.config/i3/scripts/vpn.sh
interval=10
label=VPN:
[batteries_mouse]
command=/home/agres/.config/i3/scripts/mouse_battery.sh
interval=60
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
STATUS="$(mullvad status 2>/dev/null)"
if echo "$STATUS" | grep -q "^Connected"; then
echo "UP"
echo "UP"
echo "#00b894"
else
echo "DOWN"
echo "DOWN"
echo "#ff0000"
fi