From ef24bb2504554bf1a906bfe8a5f5db3d052495ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Wed, 27 May 2020 22:44:13 -0500 Subject: [PATCH] Improve iface --- scripts/i3blocks/iface | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ;;