diff options
author | Jesús <heckyel@hyperbola.info> | 2020-05-27 22:44:13 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-05-27 22:44:13 -0500 |
commit | ef24bb2504554bf1a906bfe8a5f5db3d052495ee (patch) | |
tree | 2f9f105fec7a4f754b97c67f1587d4d16bec7b3e | |
parent | 418350bcb9d4b6107455719b216f202f151ec5b0 (diff) | |
download | i3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.tar.lz i3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.tar.xz i3-config-ef24bb2504554bf1a906bfe8a5f5db3d052495ee.zip |
Improve iface
-rwxr-xr-x | scripts/i3blocks/iface | 2 |
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 ;; |