xremap/macOS.yaml

37 lines
805 B
YAML

---
modmap:
- name: non-terminal modmap
application:
not:
- kitty
- gnome-terminal-server
remap:
LeftAlt: LeftCtrl
LeftCtrl: LeftAlt
keymap:
- name: terminal remaps
application:
only:
- kitty
- gnome-terminal-server
remap:
Alt-C: Ctrl-Shift-C
Alt-V: Ctrl-Shift-V
- name: non-terminal remaps
application:
not:
- kitty
- gnome-terminal-server
remap:
# TODO: This is the main flaw of swapping Ctrl and Alt as it makes
# switching windows inconsistent and buggy.
Ctrl-Tab: Alt-Tab
Ctrl-Shift-LeftBrace: Ctrl-PageUp
Ctrl-Shift-RightBrace: Ctrl-PageDown
Ctrl-Alt-Shift-LeftBrace: Ctrl-Shift-PageUp
Ctrl-Alt-Shift-RightBrace: Ctrl-Shift-PageDown