Hi,
now I'm totally confused.
On 19.11.2012, 21:37, Uli Schlachter wrote:
> Works for me. I wrote the following into a terminal, pressed "enter" and a new
> space got entered".
>
> $ echo 'root.fake_input("key_press", 65) root.fake_input("key_release", 65)' |
> awesome-client
Thank you, that indeed helped me, because it worked for me too in a
terminal. So I searched somwhere else and found out that my non-working
function works when I bind the function to a mouse-button via the
clientbuttons-table.
But doesn't work when I bind it to modkey+F2 or modkey via the
clientkeys-table. It is exact the same function, it works on a
mouse-button-bind but doesn't on a keybind.
Pressing Modkey+F2 (the same with modkey+z) over a "xev"-window gives me
just
> MappingNotify event, serial 41, synthetic NO, window 0x0,
> request MappingKeyboard, first_keycode 8, count 248
>
> MappingNotify event, serial 42, synthetic NO, window 0x0,
> request MappingKeyboard, first_keycode 8, count 248
instead of the key_press- and key_release-event.
Any ideas why this happens? Even though faking a keypress with another
keypress doesn't make much sense in practice, it should work, shouldn't it?
Cheers,
Manuel
---# attachement (just in case it's interesting for the problem, I don't
think so, but that doesn't mean anything, so just to make sure) #---
I put this into my clientkey-table:
> awful.key({ modkey }, "F2", functions.experiment )
and the functions.experiment is:
> function experiment(c)
> root.fake_input("key_press", 65)
> root.fake_input("key_release", 65)
> throwOut("Done!") --just puts out a message via naughty
> end
Nothing special, I think.
--
To unsubscribe, send mail to [email protected].