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?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
I presume you want to start something like
nm-applet. To do so "on demand", you would type at the command line:
If you want to autostart it, you can autostart it like any other app in Awesome. In
rc.lua add a new line:
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.