4

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?

2

2 Answers 2

5

You can do this using iwgetid from the wireless_tools package:

pacman -S wireless_tools

Then run

iwgetid -r
0
1

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.

1
  • Failed to connect to non-global ctrl_ifname: (nil) error: No such file or directory. The accepted answer worked though.
    – user114651
    Sep 26, 2020 at 17:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .