On 24 May 2010 23:55, Fox Mulder <[email protected]> wrote: > Am 24.05.2010 22:18, schrieb Joachim Ott: >> On 24 May 2010 20:45, Fox Mulder <[email protected]> wrote: >>> Am 24.05.2010 15:47, schrieb Tom Hacohen: >>>> IIRC, it maps to an X key, so yeah, just read xmodmap's manual, and you >>>> should be ok. >>>> The idea is the map the keycode to your wanted keysym. I suggest you to >>>> give >>>> "xev" a try, it's a great application for debugging such things. >>> >>> Ok, with xmodmap i could change the binding to the AUX key to anything i >>> like now. :) >>> >>> But the problem with the enlightenment key binding still exist. For >>> example if i bind AUX to the key "1" and press it i got a "1" in my >>> terminal but also the screenlock appears. >> >> This screenlock is controlled in /etc/phonefsod.conf, look for >> idle_screen and remove the aux from it, then restart phonefsod. > > Thanks for the hint but this is not the solution i'm hoping for. I want > to remove and readd the screenlock only temporarily. I only want to > change the aux key function for a program and restore it after exiting > it. So i hope there is any other way without changing the conf and > restart phonefsod.
For this you need to go deeper into xlib and peek at events and remove them from the queue before other programs receive them. Check http://tronche.com/gui/x/xlib/event-handling/manipulating-event-queue/next-event.html for 2 functions that might be helpful. I think your program should be first in list that checks events, i.e. started before phonefsod and such. _______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
