1
0
forked from extern/nix-config

meta: Add dual-function-keys

dual-function-keys is an amazing piece of software that solves many if
not all of the long-lasting issues I had with binding caps lock to ctrl
and escape. I have additionally configured it in a way such that print
screen can double as a right super key, due to it being next to right
alt and right ctrl on the T14.
This commit is contained in:
Donovan Glover 2023-01-04 18:17:42 -05:00
parent c7aca39c84
commit 70596ac7b2
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,10 @@
TIMING:
- TAP_MILLISEC: 1000
- DOUBLE_TAP_MILLISEC: 0
MAPPINGS:
- KEY: KEY_CAPSLOCK
TAP: KEY_ESC
HOLD: KEY_LEFTCTRL
- KEY: KEY_SYSRQ
TAP: KEY_SYSRQ
HOLD: KEY_RIGHTMETA

View File

@ -0,0 +1,17 @@
# dual-function-keys
[dual-function-keys][dual-function-keys] is a way to give your keys multiple functions.
## Use Cases
dual-function-keys can be used to:
- Have a caps lock key that works as ctrl and escape, without having your real ctrl key function as another escape key
- Have one keybinding config that works across Xorg, Wayland, and ttys
- Replace xcape, xmodmap, setxkbmap, keystrings, and similar technologies
You should not use dual-function-keys if:
- You should use dual-function-keys.
[dual-function-keys]: https://gitlab.com/interception/linux/plugins/dual-function-keys