Hello all,

       I am trying to run a command with elevated privileges from the
rc.lua. More specifically, I am trying to get my laptop to go into sleep
mode when I hit mod+shift+'s'. Here is the code snippet from my rc.lua.

--sleep mode
awful.key({modkey, "Shift"   }, "s", awful.util.spawn_with_shell("sudo
pm-suspend")),


However, when I hit the keys, nothing happens. I suspect that this happens
because the of the sudo preceding pm-suspend. Does anyone have any
suggestions as to what i should do?

Thank You,

Luis Ramirez

Reply via email to