I just get back a script to display the wifi connection on my desktop manager.But this one is using iwgetid :[[ -z $(iwgetid -r) ]] || echo $(iwgetid -r)But iwgetid is depreciated and I didn't even see it inside Gentoo main repository. So I'm searching to replace the line above with iw.
Replace iwgetid with iw
shell;wifi;iw
The iwgetid -r is a powerful command because you don't need to set the interface name, it can be replaced with the following line :iw dev <interface> link | awk '/SSID/{print $2}'