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 like typical GUI shortcuts:

  • Ctrl-Backspace
  • Ctrl-Del

And other typical shortcuts. Are there any ready .bashrc with all this shortcuts available?

share|improve this question

1 Answer 1

Can you do this in .bashrc? I think xbindkeys is the way to go in X.

Or, to get for example Emacs keybindings (the meta key up and running), scrolling shortcuts, etc., this will depend on your terminal (e.g., urxvt, xterm) - then, a place to look for configuration is ~/.Xresources.

In the console, I found that, I can setup shortcuts in this file:

/etc/console-setup/cached_UTF-8_del.kmap.gz

Just open and edit regardless of the extension. The shortcuts look like this:

alt keycode 36 = Decr_Console
alt keycode 37 = Incr_Console
alt keycode 15 = Incr_Console
alt keycode 39 = Scroll_Forward
alt keycode 25 = Scroll_Backward

(You can get the codes with showkey.)

To make it work, in

/etc/default/keyboard

I put

KMAP=/etc/console-setup/cached_UTF-8_del.kmap.gz

It's not really any and all commands you'd like (check out man keymaps and dumpkeys -l for those I've found). But it is a start.

share|improve this answer

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.