Re: Invoking GUI for app running in background with a keypress

2005-08-15 Thread Mike Meyer
Mathias Dahl <[EMAIL PROTECTED]> writes: > How does one go about doing this? I found a small program written in C > (xbindkeys) that can do this and understand that it probably involves > a lot of "low-level" stuff in X which feels a bit "scary" :). Any > clues of doing this "easily" in Python + s

Re: Invoking GUI for app running in background with a keypress

2005-08-15 Thread Don
Mathias Dahl wrote: > Jeremy Moles <[EMAIL PROTECTED]> writes: > >> If you want to get crazy you can poll() on one of the evdev nodes >> (/dev/input/event*) and behave accordingly. I do this in a C application >> we use to do the exact same thing you're talking about. >> >> Each successful read

Re: Invoking GUI for app running in background with a keypress

2005-08-15 Thread Mathias Dahl
Jeremy Moles <[EMAIL PROTECTED]> writes: > If you want to get crazy you can poll() on one of the evdev nodes > (/dev/input/event*) and behave accordingly. I do this in a C application > we use to do the exact same thing you're talking about. > > Each successful read from the device returns a 16-

Re: Invoking GUI for app running in background with a keypress

2005-08-15 Thread Jeremy Moles
If you want to get crazy you can poll() on one of the evdev nodes (/dev/input/event*) and behave accordingly. I do this in a C application we use to do the exact same thing you're talking about. Each successful read from the device returns a 16-byte input_event struct (or similar, I'm going from

Invoking GUI for app running in background with a keypress

2005-08-15 Thread Mathias Dahl
I am creating a small app called PyQe (http://klibb.com/cgi-bin/wiki.pl/PyQe) to launch commands and programs quickly. I works more or less as I want it now and I have managed to make my window manager (Metacity) under Mandrake GNU/Linux start my program so that it can be started easily with just a