API for binding and unbinding a key combo?

Tuomo Valkonen tuomov at iki.fi
Sun Mar 30 09:46:43 PDT 2008


On 2008-03-30, Justin Clift <justin at salasaga.org> wrote:
>    http://gentoo-wiki.com/TIP_Make_a_Screenshot_with_PrintScreen_Key

That stuff is for _excecuting_ a program, and listed is 'xbindkeys'
independent of any WM, depending on just that program being running,
just like the previous links require gnome-settings-fuckup-daemon
or some such thing (i.e. a bloated DE) running instead of a WM.
And really how programs are executed should be up to the Operating
Environment (WM, DE, or some such thing) to decide, instead of 
Overstandardisation.

> With a fd.o spec/standard, an application author like myself could 
> feasibly write code to bind a key at app start, then unbind it at app 
> finish.

Since your app is already running, you can just XGrabKey, assuming
nothing else uses the key already.

-- 
Tuomo



More information about the xdg mailing list