Re: Cups/Num Lock change event

2012-04-13 Thread Claudio Roberto França Pereira
Remember that awesome is just a window manager, not a full desktop environment. Controlling input events is not its main purpose. As you've tried, you could set some key bindings using Caps Lock, but reading key states is a little off. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.

Re: Cups/Num Lock change event

2012-04-13 Thread basilio
Thank you, Claudio! Will think about it. Looks like there's no an easy way and rc.lua is not enough for such things and awesome is not so awesome respectively. But it still is awesome though. Thanks again. -- To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Re: Cups/Num Lock change event

2012-04-13 Thread Claudio Roberto França Pereira
On Fri, Apr 13, 2012 at 16:18, basilio wrote: > Hi to all! > > I understand that my question is not as easy as changing background and > all that bells and whistles and really needs an expert. But anyway I > need some help. I believe that this can be done somehow using signals. I > just can't unde

Re: Cups/Num Lock change event

2012-04-13 Thread basilio
Hi to all! I understand that my question is not as easy as changing background and all that bells and whistles and really needs an expert. But anyway I need some help. I believe that this can be done somehow using signals. I just can't understand how to catch the event of pressing Cups/Num Lock bu

Re: How to execute a program when shutting the computer down?

2012-04-13 Thread Bill Sun
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