Created
June 22, 2024 03:15
-
-
Save garlic0x1/f0901639349e3ea98d620b62e3f58c52 to your computer and use it in GitHub Desktop.
nixos xmodmap
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.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