Open marsjane opened 1 month ago
> cat ~/.config/xremap/config.yml
modmap:
- name: CapsLock to RightCtrl/Esc
remap:
CapsLock:
held: Ctrl_R
alone: Esc
alone_timeout_millis: 200
keymap:
- name: RightCtrl+hjkl to Arrows
remap:
Ctrl_R-h: Left
Ctrl_R-l: Right
Ctrl_R-j: Down
Ctrl_R-k: Up
- name: RightCtrl + Esc to "~ and `"
remap:
Ctrl_R-Esc: Grave
Ctrl_R-S-Esc: S-Grave
Ctrl_R-Grave: Grave
Ctrl_R-S-Grave: S-Grave
- name: RightCtrl + n to Fn"
remap:
Ctrl_R-1: F1
Ctrl_R-2: F2
Ctrl_R-3: F3
Ctrl_R-4: F4
Ctrl_R-5: F5
Ctrl_R-6: F6
Ctrl_R-7: F7
Ctrl_R-8: F8
Ctrl_R-9: F9
Ctrl_R-0: F10
Ctrl_R-Minus: F11
Ctrl_R-Equal: F12
- name: RightCtrl + other
remap:
Ctrl_R-P: KEY_PRINT
I use Capslock as virtual-modifiers and it works fine, then I tried to also map it to Esc in modmap, but it seems the virtual-modifiers behaviour of Capslock would then be ineffective. Is there any advice on this?