mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
Added vpn script
This commit is contained in:
@@ -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
|
||||
|
||||
Executable
+14
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user