Skip to content

Instantly share code, notes, and snippets.

@mrioqueiroz
Created August 9, 2021 22:10
Show Gist options
  • Save mrioqueiroz/24af142fd28f094d0a4dce7ce1058294 to your computer and use it in GitHub Desktop.
Save mrioqueiroz/24af142fd28f094d0a4dce7ce1058294 to your computer and use it in GitHub Desktop.
Caps Lock working as Esc and Ctrl on NixOS
{
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