Re: How to properly use XGrabKey to get a program hotkey

2010-10-28 Thread cheshirekow
This will only work if the window manager or the window with focus doesn't already grab the same keys. Does the example work without a window manager running? Thanks for the reply, but I believe libX will generate an error if the keys are already grabbed. In this case there is no error

How to properly use XGrabKey to get a program hotkey

2010-10-27 Thread cheshirekow
Hello, My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the process is

Re: How to properly use XGrabKey to get a program hotkey

2010-10-27 Thread Timo Juhani Lindfors
cheshirekow cheshire...@gmail.com writes: My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib Is this program running as the normal user or is this some privileged service (say switch to another user)?

Re: How to properly use XGrabKey to get a program hotkey

2010-10-27 Thread cheshirekow
My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib Is this program running as the normal user or is this some privileged service (say switch to another user)? Normal user. I don't think

Re: How to properly use XGrabKey to get a program hotkey

2010-10-27 Thread Russell Shaw
cheshirekow wrote: Hello, My goal is to have a program that sleeps in the background but can be activated by the user via some hotkey. From digging around the Xlib manual and the Xlib O'reilly manual, I gather that the correct way to to this is with XGrabKey. However my understanding of the