I managed to solve this problem. Here's my solution, which is a
derivative of Uli's solution:
> Let's try something random:
> awful.key({ modkey }, "]", function()
>   awful.util.spawn_with_shell("sleep 1 ; /home/user1/bin/poweroff")
>   awesome.quit()
> end)
I realized that I can save volume level before triggering poweroff via
the same awesome key binding. So, I added
'awful.util.spawn_with_shell('alsactl store -f ~/.asoundrc')' right
above the 'poweroff' line. It works well for me

Thanks to everyone.

-Bill

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

Reply via email to