title: How can i3 config execute sudo commands
body: <p>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...</p>
  
  <p>But there are no wifi networks... To solve this I use <code>sudo systemctl restart network-manager</code>. </p>
  
  <p>But I want that every time I start i3, for the icon of wifi networks to be already there. </p>
  
  <p>So in config, I put <code>exec nm-applet</code> and to show me wifi networks, I try to use <code>sudo systemctl restart network-manager</code>. </p>
  
  <p>So, the problem is that: I can't execute commands that need sudo. How can I solve this?</p>
  
  <p>Thanks in advance.</p>