Gnome sending keyboard shortcuts to an application

1

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?

kindahero

Posted 2013-04-23T04:59:29.053

Reputation: 1 088

Answers

0

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

Inaimathi

Posted 2013-04-23T04:59:29.053

Reputation: 350