Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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).

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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