0. Background
I am new to Deepin Linux, and I am a Vim user. The capslock key annoys me, I just learned how to re-map it in the Deepin way.
1. To change mapping of Caps Lock, do this fist:
- gsettings set com.deepin.dde.keybinding.mediakey capslock '[]'
2. Then, you can re-map capslock with prefered layout-options.
Swap Caps Lock and Esc:
- gsettings set com.deepin.dde.keyboard layout-options '["caps:swapescape"]'
Map Caps Lock to Esc:
- gsettings set com.deepin.dde.keyboard layout-options '["caps:escape"]'
Disable Caps Lock:
- gsettings set com.deepin.dde.keyboard layout-options '["caps:none"]'
It works immediately on my Thinkpad X1 Carbon, without logout or restart.If you want to learn more about this topic, keep reading.
3. Get all layout-options:
- localectl list-x11-keymap-options
4. Get all layout-options for capslock only:
- localectl list-x11-keymap-options | grep caps:
List:
- caps:backspace
- caps:capslock
- caps:ctrl_modifier
- caps:escape
- caps:hyper
- caps:internal
- caps:internal_nocancel
- caps:menu
- caps:none
- caps:numlock
- caps:shift
- caps:shift_nocancel
- caps:shiftlock
- caps:super
- caps:swapescape
5. If you mess up, reset each KEY to default:
- gsettings reset com.deepin.dde.keybinding.mediakey capslock
- gsettings reset com.deepin.dde.keyboard layout-options
Or reset each SCHEMA:
- gsettings reset-recursively com.deepin.dde.keybinding.mediakey
- gsettings reset-recursively com.deepin.dde.keyboard
Comments
Post a Comment
https://gengwg.blogspot.com/