To be able to connect to wifi, I use nm-applet. When i run nm-applet it puts an icon in the i3 bar where I can select the network to which I want to connect...
But there are no wifi networks... To solve this I use sudo systemctl restart network-manager
.
But I want that every time I start i3, for the icon of wifi networks to be already there.
So in config, I put exec nm-applet
and to show me wifi networks, I try to use sudo systemctl restart network-manager
.
So, the problem is that: I can't execute commands that need sudo. How can I solve this?
Thanks in advance.