Hello Luis,
Have you tried running Awesome under Xehpyr or simply looking at tty1
for errors (ctrl+alt+F1)? If either sudo or pm-suspend exit with any
stderr or stdout messages, you should see them there.
On Tue, Nov 13, 2012 at 11:51:39AM -0500, Luis Ramirez wrote:
> 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
--
Daniel Martí - [email protected] - GPG 0x58BF72C3
--
To unsubscribe, send mail to [email protected].