❦ 13 novembre 2012 17:51 CET, Luis Ramirez <[email protected]> :

>        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?

Is it configured to not ask for a password? If not, you can use gksudo
to get a graphical password prompt.
-- 
#define BB_STAT2_TMP_INTR    0x10    /* My Penguins are burning. 
Are you able to smell it? */
        2.2.16 /usr/src/linux/include/asm-sparc/obio.h

--
To unsubscribe, send mail to [email protected].

Reply via email to