aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-05-27 22:44:13 -0500
committerJesús <heckyel@hyperbola.info>2020-05-27 22:44:13 -0500
commitef24bb2504554bf1a906bfe8a5f5db3d052495ee (patch)
tree2f9f105fec7a4f754b97c67f1587d4d16bec7b3e
parent418350bcb9d4b6107455719b216f202f151ec5b0 (diff)
downloadi3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.tar.lz
i3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.tar.xz
i3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.zip
Improve iface
-rwxr-xr-xscripts/i3blocks/iface2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/i3blocks/iface b/scripts/i3blocks/iface
index 46e78bc..918d82e 100755
--- a/scripts/i3blocks/iface
+++ b/scripts/i3blocks/iface
@@ -54,7 +54,7 @@ then
fi
# Check local ip address
-IPADDR=$(ip route get 4.2.2.1 | awk '{print $NF;exit}')
+IPADDR=$(ip route get 4.2.2.1 | awk '{print $(NF-2);exit}')
case $BLOCK_BUTTON in
3) echo -n "$IPADDR" | xclip -q -se c ;;