Keyboard Layout Customization: Difference between revisions
→Relevant other options: Update xkb options |
added keyd section |
||
| (One intermediate revision by one other user not shown) | |||
| Line 20: | Line 20: | ||
services.xserver.xkb = { | services.xserver.xkb = { | ||
layout = "us,ru"; | layout = "us,ru"; | ||
# Note that the trailing comma is required: https://github.com/NixOS/nixpkgs/issues/359830 | |||
variant = "workman,"; | variant = "workman,"; | ||
options = "grp:win_space_toggle"; | options = "grp:win_space_toggle"; | ||
| Line 93: | Line 94: | ||
services.xserver.displayManager.sessionCommands = "sleep 5 && ${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 43 = h H Left H' &"; | services.xserver.displayManager.sessionCommands = "sleep 5 && ${pkgs.xorg.xmodmap}/bin/xmodmap -e 'keycode 43 = h H Left H' &"; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Using keyd == | |||
[[keyd]] is another option to customize keyboard behavior, and may be useful when a single keypress should produce multiple characters at once, e.g. a letter with a combining diacritic. | |||
[[Category:Desktop]] | [[Category:Desktop]] | ||
[[Category:Hardware]] | [[Category:Hardware]] | ||