Keyboard Layout Customization: Difference between revisions
imported>Erikarvstedt compile the layout to catch errors at build time and to improve x11 startup performance |
imported>Erikarvstedt mNo edit summary |
||
Line 16: | Line 16: | ||
Lots of examples can be found in <code>$(nix-build --no-out-link '<nixpkgs>' -A xorg.xkeyboardconfig)/etc/X11/xkb/</code>. For available key symbols, see <code>$(nix-build --no-out-link '<nixpkgs>' -A xorg.xproto)/include/X11/keysymdef.h</code>. | Lots of examples can be found in <code>$(nix-build --no-out-link '<nixpkgs>' -A xorg.xkeyboardconfig)/etc/X11/xkb/</code>. For available key symbols, see <code>$(nix-build --no-out-link '<nixpkgs>' -A xorg.xproto)/include/X11/keysymdef.h</code>. | ||
To load this file at the start of the X session, add | To load this file at the start of the X session, add the following to your <code>configuration.nix</code>. The extra compilation step <code>xkbcomp</code> helps catching layout errors at build time. | ||
<source lang="nix"> | <source lang="nix"> |