I would like to send key board shortcuts from my wm (gnome) to an application (specifically Emacs).

for example If I press Some-prefix-key C-x C-s then I would like C-x C-s to be passed to Emacs irrespective of window that is currently active

Is it possible?


I think you might be able to put something together using xdotool. Specifically, it looks like you'd be able to use command chaining to send a keystroke to a window with a particular name/class, and bind that script to a key combination using Gconf (it's been a while since I used Gnome, so I have no idea how you'd go about doing that these days).

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.