aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-04-13 11:00:04 +0800
committerJesús <heckyel@hyperbola.info>2022-04-13 11:00:04 +0800
commit6993d610908465d6839b9c2b2f51f2a54fd82457 (patch)
tree80df9686dba155250a7268182c2120622d2a022d
parent7396cc709d95755ced7d2fba7d94eece4debfb35 (diff)
downloadi3-config-6993d610908465d6839b9c2b2f51f2a54fd82457.tar.lz
i3-config-6993d610908465d6839b9c2b2f51f2a54fd82457.tar.xz
i3-config-6993d610908465d6839b9c2b2f51f2a54fd82457.zip
i3blocks: script vpn update
-rwxr-xr-xscripts/i3blocks/vpn2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/i3blocks/vpn b/scripts/i3blocks/vpn
index 8bb6a93..a578438 100755
--- a/scripts/i3blocks/vpn
+++ b/scripts/i3blocks/vpn
@@ -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