I'm using wpa_supplicant to connect to my wifi network. Since I'm using dwm, I want to show the SSID of the connected network in the panel. Is there a way to get the SSID of the connected network in wpa_supplicant?


You can do this using iwgetid from the wireless_tools package:

pacman -S wireless_tools

Then run

iwgetid -r
|improve this answer|||||
  • Working. Please update the package name. It's wireless_tools – s1n7ax Jul 7 '19 at 9:57

You can get the current SSID with wpa_cli which is part of the wpa_supplicant package. No need to install wireless_tools...

wpa_cli status will spew out info of the current network. Just look for the ssid value in the output.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.