Skip to content

Instantly share code, notes, and snippets.

@matsuoshi
Last active September 28, 2024 01:06
Show Gist options
  • Save matsuoshi/933ffd57e22dbbe4b199916fc309b4de to your computer and use it in GitHub Desktop.
Save matsuoshi/933ffd57e22dbbe4b199916fc309b4de to your computer and use it in GitHub Desktop.
xremap config (emacs like control-key)
modmap:
- name: modifiers
remap:
CapsLock: RightCtrl
Muhenkan:
held: LeftCtrl
alone: Muhenkan
keymap:
- name: Terminal
application:
only: gnome-terminal-server
remap:
Ctrl_L-C: Ctrl_L-Shift-C
Ctrl_L-V: Ctrl_L-Shift-V
- name: emacs like ctrl key
application:
not: gnome-terminal-server
remap:
Ctrl_R-B: Left
Ctrl_R-F: Right
Ctrl_R-P: Up
Ctrl_R-N: Down
Ctrl_R-A: Home
Ctrl_R-E: End
Ctrl_R-H: Backspace
Ctrl_R-D: Delete
Ctrl_R-M: Enter
Ctrl_R-K: [Shift-End, Delete]
- name: Activity
remap:
Ctrl_R-Up: Super_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment