A keyboard shortcut from a sequence of keystrokes for Linux

3

1

I am looking for a way to define an Emacs-style keys sequence as a keyboard shortcut in Linux - Specifically, in Gnome, but more general solutions are also acceptable.

For example, I would like a sequence like "Alt-w t" (that is, first press Alt-w and then t) to open a terminal, "Alt-w c" to close a window, and so on.

The rationale behind this question is twofold:

  1. Make more use of desktop-wide keyboard shortcuts
  2. Make an old keyboard, that has no Win key, usable with desktop-wide keyboard shortcuts, without causing too many collisions with application - Specifically with Emacs.

Thanks!

Little Bobby Tables

Posted 2010-05-03T07:57:49.303

Reputation: 193

Answers

2

xpybind is for binding X commands to Emacs style key sequences.

Ed Clements

Posted 2010-05-03T07:57:49.303

Reputation: 46

2

Nothing to do with Gnome, but have you ever considered Ratpoison? With that you'll make a very great keyboard use!

dag729

Posted 2010-05-03T07:57:49.303

Reputation: 1 894

you are serious to suggest a tiling windowmanager to the op's question? :) – akira – 2010-05-03T10:50:06.140

Yes, also because he mentioned Emacs and Ratpoison is far from being a tiling wm: it's more a buffer window manager, like screen, and has some behaviour comparable to emacs. I switched from gnome to ratpoison on my laptop, hence the suggestion! – dag729 – 2010-05-03T11:02:58.810

I know of lightweight WM such as Ratpoison et al. Unfortunately I don't have much time right now to arrange my desktop from scratch. I was hoping for a more mainstream solution, or, alt., something that works directly on the X server. – Little Bobby Tables – 2010-05-03T11:11:56.120

Fair enough but, if you like to give it a go, I can address you to dotfiles.org, where you'll find some useful and ready to use .ratpoisonrc. Just add .ratpoisonrc after dotfiles.org/; if you want to find other dotfiles use the same pattern, that is appending a .something after dotfiles.org/ – dag729 – 2010-05-03T12:46:32.157

0

with openbox and obkeys you can do that. LUbuntu for example uses openboy, but you can install it yourself. Howevery its a rather heavy modification of your system as

http://openbox.org/

http://code.google.com/p/obkey/

Davoud Taghawi-Nejad

Posted 2010-05-03T07:57:49.303

Reputation: 101