Remapping capslock
Tofloor
poster avatar
tachyon
deepin
2015-02-22 14:03
Author
As a programmer who is heavily dependent on vim and who desires to keep his fingers from being mangled, I always remap my capslock to escape. I don't seem to be able to do this by any of the normal mechanisms in Deepin.

I can use:

    setxkbmap -option "caps:none"

And that appears to work, although the caps key causes the block cursor in deepin terminal to respond by becoming and outline. If I try to use "caps:escape" or any other option, I get identical results.

Any ideas?
Reply Favorite View the author
All Replies
oaker
deepin
2015-02-27 18:38
#1
Reply View the author
tachyon
deepin
2015-03-07 11:50
#2
Thank you!
Reply View the author
tachyon
deepin
2015-03-13 18:44
#3
I tried using these commands:
  1. gsettings set com.deepin.dde.keybinding.mediakey capslock ""
  2. gsettings set com.deepin.dde.keyboard layout-options "['caps:escape']"
Copy the Code

That disabled capslock, but did not map it to escape. In deepin-terminal, typing escape causes the cursor to blink, but does not trigger escape.
Reply View the author
tachyon
deepin
2015-03-14 05:48
#4
Never mind! After restarting Xorg, the capslock key is now functioning as escape. Thank you again for your help.
Reply View the author