diff --git a/.config/i3blocks/wifi b/.config/i3blocks/wifi index 92205c7..ccf768b 100755 --- a/.config/i3blocks/wifi +++ b/.config/i3blocks/wifi @@ -11,12 +11,12 @@ ip=$(ip a show ${interface} | awk '/inet .* scope global/{ print $2 }' | cut -d # We found no ip: Get out here [ -z "${ip}" ] && exit -network=$(iwgetid -r) +network=$(networkctl status -a | awk -F ': ' '/Wi-Fi access point/{ print $2 }' | cut -d ' ' -f 1) # We found no network: Get out here [ -z "${network}" ] && exit -printf "\uf9a1 %s (%s)\n" ${network} ${ip} +printf "\uf1eb %s (%s)\n" ${network} ${ip} # On click copy IP [ -n "${BLOCK_BUTTON:-}" ] && echo -n "${ip}" | tr -d '\n' | xclip -selection c || true