~heckyel/i3-config

6993d610908465d6839b9c2b2f51f2a54fd82457 — Jesús 1 year, 7 months ago 7396cc7
i3blocks: script vpn update
1 files changed, 1 insertions(+), 1 deletions(-)

M scripts/i3blocks/vpn
M scripts/i3blocks/vpn => scripts/i3blocks/vpn +1 -1
@@ 3,7 3,7 @@
INSTANCE="${BLOCK_INSTANCE:-}"

# Check VPN status
GET_VPN=$(ip route | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }')
GET_VPN=$(ip route get 4.2.2.1 | grep -E -- "tun0|wg0|$INSTANCE" | awk '{ print $3 }')

# Store status
case $GET_VPN in