Just another Perl shrine | |
PerlMonks |
Re^2: Grabbing keyboard in X11by Hue-Bond (Priest) |
on Jun 23, 2008 at 12:21 UTC ( [id://693506]=note: print w/replies, xml ) | Need Help?? |
Thanks for your reply. Unfortunately, a Perl module around XEvIE doesn't seem to exist yet, so I'm stuck with X11::Protocol. On the other hand, I've taken a look into the source code of icewm and I've seen that it uses XGrabKey to grab the key combinations it uses. Something like: $x->GrabKey (52, 'AnyModifier', $x->root, 0, 'Asynchronous', 'Asynchronous');(52 being the keycode for the letter 'z'). The only obstacle I have to overcome is how to translate 'z' to 52 (in this example) but I think X11::Keyboard's KeysymToKeycode will fit this purpose nicely. --
In Section
Seekers of Perl Wisdom
|
|