Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I would like to setup some Gnome keyboard shortcuts to be a prefix-key, so that I can add several shortcuts with the same prefix. Eg. I'd like to be able to have Super+x be a prefix key, with the next letter determining the application to launch:

  • Super+x f starts firefox
  • Super+x e starts emacs
  • Super+x t starts gnome-terminal

Etc.

Also, something like k as a prefix to workspace manipulation commands:

  • Super+k Left workspace left
  • Super+k 4 go to workspace 4

and so on.

This is a natural analog to what emacs, tmux and other applications do with configurable shortcuts, and I can do this with the stumpwm window manager as well, but I wanted to try Unity on my new laptop and was trying to get the same efficient setup I had with stumpwm.

Is this provided for in Gnome? Do I have to do some trickery to do this? It would be best if I could find a way to do this in gnome's keyboard shortcut editor.

share|improve this question
    
I would be particularly interested in seeing this kind of function available for Gnome3 / Gnome-Shell. The lack of keybinding customizability was shocking to me in something that has obviously been thought about quite a bit. –  Caleb Jun 3 '11 at 10:37
add comment

1 Answer

I don't think this is possible. However, you could workaround that by writing your own program. You would map Super + x to launch your program, then the program grabs keyboard input and listens to whatever you type next, and launches the desired action.

share|improve this answer
add comment

Your Answer

 
discard

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.