Created
August 9, 2021 22:10
-
-
Save mrioqueiroz/24af142fd28f094d0a4dce7ce1058294 to your computer and use it in GitHub Desktop.
Caps Lock working as Esc and Ctrl on NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
services = { | |
xserver = { | |
enable = true; | |
xkbOptions = "caps:ctrl_modifier"; | |
}; | |
}; | |
environment = { | |
shellInit = '' | |
xcape -e "Caps_Lock=Escape" | |
''; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment