I was wondering if there is a way to display the currently connected WiFi and/or ethernet network name in xmobar.

2 Answers 2


You probably want the Wireless plugin which comes with xmobar


In your config file, you'd have something like this in the commands list:

Run Wireless "wlan0" [ "-t", "<essid>" ] 10

If your interface is named wlan0 Then you can add this line

Run Wireless "wlan0" [ "-t", "<essid>" ] 10

to your commands list.

Access it in the template string through %wlan0wi%

You must log in to answer this question.

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