On 10.04.2012 15:27, Bill Sun wrote:
[...]
> If, however, I shut my computer down via
> an awesome key binding (I created a shell script that uses dbus/
> consolekit command to poweroff; then use `awful.key({ modkey }, "]",
> function () awful.util.spawn_with_shell(/home/user1/bin/poweroff)) to
> assign that script to a key), then my current volume level wouldn't be
> saved. The only message I saw is `xinit: connection to X closed` during
> shutting down.
[...]

Let's try something random:

 awful.key({ modkey }, "]", function()
   awful.util.spawn_with_shell("sleep 1 ; /home/user1/bin/poweroff")
   awesome.quit()
 end)

My idea here is that poweroff just shuts down the PC without leaving time for
the various programs to exit.

Uli
-- 
'dubito ergo sum'
-- Elke's whiteboard

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

Reply via email to