initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

14
i3blocks/wireguard.bash Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
INSTANCE="${BLOCK_INSTANCE:-}"
# Check VPN status
GET_VPN=$(ip route get 4.2.2.1 | grep -E -- "wg0|$INSTANCE" | awk '{ print $3 }')
# Store status
if [[ $GET_VPN == *"wg0"* || $GET_VPN == "$INSTANCE" ]]
then
echo -e "<span color='#00FF00'>ON</span>\n"
else
echo -e "<span color='#FFDD00'>OFF</span>\n"
fi