Skip to content

Instantly share code, notes, and snippets.

@garlic0x1
Created June 22, 2024 03:15
Show Gist options
  • Save garlic0x1/f0901639349e3ea98d620b62e3f58c52 to your computer and use it in GitHub Desktop.
Save garlic0x1/f0901639349e3ea98d620b62e3f58c52 to your computer and use it in GitHub Desktop.
nixos xmodmap
services.xserver.displayManager.sessionCommands = ''
${pkgs.xorg.xmodmap}/bin/xmodmap -e "remove Lock = Caps_Lock"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "keysym Caps_Lock = Control_L"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "add Control = Control_L"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "remove Shift = Shift_R"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "keysym Shift_R = Caps_Lock"
${pkgs.xorg.xmodmap}/bin/xmodmap -e "add Lock = Caps_Lock"
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment