Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I start Awesome WM, it works fine but it does not start the daemon/application that searches for and connects to wifi networks.

How to make it do that both on startup as well as on demand since I may want it to do so only on demand?

share|improve this question
Did you resolve your question? – pl1nk Jun 24 '12 at 12:59

I presume you want to start something like nm-applet. To do so "on demand", you would type at the command line: nm-applet &.

If you want to autostart it, you can autostart it like any other app in Awesome. In rc.lua add a new line:

awful.util.spawn_with_shell("nm-applet &")

to the section with your autostart apps; if you don't have such a section, just add it at the end.

If you restart Awesome, it'll run nm-applet again, which is annoying. So I actually suggest using:

awful.util.spawn_with_shell("pgrep -u $USER -x nm-applet > /dev/null || (nm-applet &)")

This will ensure nm-applet has exactly one running instance.

share|improve this answer

Press the Super and Enter key. Check your network-manager service status by typing this commands:

sudo service network-manager status

If it is up and running, check the available wifi networks:

nmcli con list

To connect:

nmcli con up id (the name of your wifi networks)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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