The key-mapping tag has no wiki summary.
1
vote
1answer
47 views
Change one typed key for another
I have LUbuntu 13.04.
Is it possible to change the keyboard on the operating system, so that when I press k for instance, the system will hear it as I actually typed m?
Or any other key for that ...
3
votes
2answers
47 views
vim shortcut to open a file under cursor in an already opened window
In vim you can open a file under the cursor by using the gf command.
One can also easily open that file in a new split window by hitting <c-w> f. This is a really nice and time saving feature. ...
3
votes
2answers
88 views
Fully Disable PrntScr Key
I recently came across a Linux feature I have never seen before, where pressing the PrntScr button on the keyboard prints a physical piece of paper with the contents of my console.
I really need to ...
9
votes
2answers
147 views
What are the characters printed when Alt+Arrow keys are pressed?
When I press AltUp, A printed to terminal screen. Same thing happened when I pressed AltDown but B is printed instead.
Other characters that I realized;
AltLeft = D and AltRight = C
What is the ...
3
votes
1answer
70 views
How to distinguish input from different keyboards?
I want to write an application in Python that you can use with your default keyboard and a specially designed one for the application. I will design it simply by using a small numerical keyboard with ...
0
votes
0answers
79 views
Chromebook: Map Search Key to ctrl, ubuntu [closed]
I've got ubuntu running on chromebook using crouton.
How do I map the search key to the ctrl action.
Similar to this, swapping the caps lock key and the ctrl key.
/usr/bin/setxkbmap -option ...
2
votes
2answers
34 views
Remapping scancode for Caps Lock
In Windows I was able to set Caps Lock to act as a second Enter, which can be pressed by the left little finger. I added this parameter to the registry to do that:
...
1
vote
1answer
38 views
Remapping keys for workspaces in Xmonad
Xmonad uses
1) Mod+2 for switching to workspace 2
2) Mod+Shift+2 for moving window to workspace 2
How would you remap 1) to Mod+k and 2) to Mod+Shift+k
in ~/xmonad/xmonad.hs?
1
vote
1answer
64 views
Remap altgr key to AC10 in XKB
I'd like to remap the altgr key to AC10 key.
So far, i edited /usr/share/X11/xkb/symbols/us as follows:
// key <AC10> { [ semicolon, colon ] };
key <AC10> { [ Alt_R ]}
After
$ ...
1
vote
1answer
43 views
Key binding of the Menu Key
I have the Menu key that I don't use. It's right under my thumb when I use the arrows... So I wanted to map it to the Insert key. (mostly because of its important use in vim)
I've been looking into ...
0
votes
0answers
24 views
How to remove Gnome's Mod4+P keybinding
Where in gnome's twisty little passages is this key binding hiding, and how do I kill it?
I have the same problem described here, but I don't have the gconf path offered in the solution comment: ...
0
votes
1answer
162 views
Overriding functionality of special keys on CM Storm Trigger keyboard
I have a CM Storm Trigger Keyboard. This has some special keys, which can be programmed to trigger certain macros. There are special "M" keys for macros on the left-hand side, and there are two ...
2
votes
1answer
247 views
Del key in AIX ksh over PuTTY telnet
At the place where I work we're developing under AIX with ksh and connecting to it via telnet. Most people use ArcTel to connect, while I prefer PuTTY. The only problem I have with PuTTY is that the ...
0
votes
1answer
223 views
ksh - map Ctrl-D to exit shell
I would like to know how we can map the keys Ctrl-D in ksh to exit the shell as it does in bash shell.
Not much familiar with key binding in ksh.
Edit
My comments are after the <!-- string ...
1
vote
0answers
59 views
Change behaviour of the modifier keys system-wide
I’d want to make modifier keys (control, alt, shift, meta, super, lv3_switch) to act like usual keys, I mean, without holding one of them to perform associated key combination. Say C-x M-1 can by ...
2
votes
1answer
126 views
bind backslash to a non-standard keyboard key
I am using a swiss apple keyboard at the moment. This keyboard requires some unreasonable finger acrobatics to type a backslash (shift+right alt+7). I'd like to bind the backslash to another key ...
3
votes
1answer
55 views
Mapping keyboard: at most primitive level
When I was using a comfort curve keyboard which had media keys, those keys worked
as media keys in X ( with different users), in single-user mode and in multiuser-mode without X.
Then I switched to ...
2
votes
1answer
69 views
Why does insert-mode map “<F4>” unpredictably inserts itself or executes intended key strokes?
In Vim 7.3.1-762, mintty 1.1.2 (xterm), cygwin, Windows XP, the insert-mode map <F4> executes the intended key strokes at one time but inserts itself at another time. This undeterministic ...
0
votes
0answers
199 views
How to get keyboard input PS/2 scan codes or USB usage codes in a Qt application?
I'm trying to get the PS/2 scan codes or USB usage codes of keyboard keys pressed in a Qt application. I tried overriding QWidget::keyPressEvent() but QKeyEvent::navtiveScanCode() returns a value ...
3
votes
1answer
91 views
Setting Mod4 in awesome
I'm trying to set up awesome. When I start it the Mod4 (Windows) key is not working. So I tried to extent my .Xmodmap
clear Mod4
add Mod4 = Multi_key
When I run xmodmap .Xmodmap the Mod4 works, but ...
1
vote
2answers
383 views
vim how to configure backspace and delete key's both as normal
How to configure following keys in vim?
Backspace key to delete a character backwards.
Delete key to delete a character forwards.
After reading some posts, I got to know that only one of those can ...
2
votes
2answers
98 views
How to consistently start Vim's command line to make a mapping work in any mode?
I try to normalize access to Vim's command line mode from any other mode in order to simplify my actual mappings. For example to make the <f6> key work from anywhere I define the following ...
2
votes
1answer
103 views
How to change Vim's command type mode programmatically?
Is there a simple way to switch from one command type mode to another without loosing the current command line?
In my ~/.vimrc file I remap the <space> and <c-space> character, coming ...
0
votes
3answers
273 views
vim backspace not working normally
The Backspace key is not working as expected in vim and also in vi. It is working as the Delete key, and Delete key is deleting the char, but instead something wierd happens. But, for now, I am trying ...
3
votes
1answer
167 views
Saving with CTRL-s in vim
I have added this line in .vimrc so that pressing control-s saves the current file
:nmap <C-s> :w!<cr>
:imap <C-s> <esc>:w!<cr>
But this is not working. Any ...
1
vote
1answer
85 views
Reassigning Ctrl + Arrow keys in Vim [duplicate]
Possible Duplicate:
How to fix Ctrl + arrows in Vim?
Through the several tutorials and tips and tricks site about Vim, I think I happened to read that one can reassign a combination of keys ...
2
votes
1answer
245 views
How to fix the shifted function keys in vim in xterm in gnome-terminal?
When I hit the <s-f2> key to execute my nnoremap <s-f2> :set number! mapping Vim opens its "Insert" mode above (O) and types the 1;2Q string. In order to see the entire terminal key code – ...
1
vote
1answer
82 views
map “Ñ” to “:” in vim
I want map the key Ñ (Shift+ñ) to : in the normal mode of vim.
I've searched vim configs with Ntilde but I've found nothing. Any idea?.
2
votes
1answer
455 views
Map Control-Shift-Tab in rxvt-unicode
I'd like to map the keybinding
Ctrl+Shift+Tab in rxvt-unicode.
I managed to map Ctrl+Tab as follows. The
corresponding entry in .Xresources is
URxvt.keysym.Control-Tab: \033[27;5;9~
Using cat -v ...
4
votes
0answers
85 views
Can I map a key (caps lock) so it does one thing pressed alone, and another when pressed with a second key? [duplicate]
Possible Duplicate:
Remap CapsLock to Escape and Control System Wide
Just read this seriously obsessive post about customising keyboards and while I'm not going to do everything there, ...
4
votes
2answers
125 views
vim customized with emacs commands (insert mode only)
I was an emacs user, and I have to switch to vim. But I miss some basic emacs commands in vim insert mode:
C-A
C-E
C-K
C-Y
C-x C-s
... and some other
I know that I can press Escape and then press ...
1
vote
1answer
299 views
How to bind “Ctrl-Alt-b” to the prefix of tmux?
Tmux uses Ctrlb as its prefix, but Ctrlb conflict with Emacs.
I want to bind CtrlAltb to tmux's prefix. I guess it may be C-M-b but didn't work...
5
votes
1answer
111 views
Rebinding “clear prompt” in mutt
By default, when entering information at the command prompt in mutt, you can clear the prompt with Ctrlg, as described in the manual:
^G n/a abort
I have been trying to bind ...
3
votes
1answer
177 views
Fn+F2 does not UNMUTE
I am using Lubuntu 11.10 (original, not Ubuntu + LXDE) on a Vaio VPCEG series. After install of some network manager, my key Fn+F2 got a different function.
It's printed on it the blue symbol for ...
2
votes
1answer
305 views
Defining key sequences in Evil-mode Emacs
I couldn't find any instructions on defining key sequences in the Evil doc.
The example given by the developers only covers a single key.
(define-key evil-normal-state "w" 'foo)
What do I need to ...
7
votes
2answers
1k views
How to define a Compose Key in terminal (no desktop environment)?
I would like to define a compose key on my system (Debian Sid "Wheezy"). I have no Xorg (and don't want any desktop environment). Only in terminal.
I would like to set it up on my Alt-Gr key (right ...
1
vote
1answer
140 views
Remap select window 2 in tmux
In tmux you can switch to window 2 with prefix_key + 2. I'd like to press rather prefix_key + u.
I tried in .tmux.conf this:
bind-key u 2
and this:
bind-key u select-window -t 2
Which doesn't ...