Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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.