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 ;;