about summary refs log tree commit diff
path: root/nixos/tests/keymap.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-11-01nixos/x11: move extraLayouts into xkb attrsetPaul Meyer1-1/+1
[Motivation](NixOS#257817 (comment)) `extraLayouts` was missed in #259891, so moving it to the other xkb options with this PR. Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-10-11nixos/x11: refactor XKB options into a single attrsetVictor Engmark1-14/+14
[Motivation](https://github.com/NixOS/nixpkgs/issues/257817#issuecomment-1741705042): - Having all the XKB options in the same attribute set clarifies their relation better than using a common option name prefix ("xkb"). - `services.xserver.layout` is an XKB option, but this is not obvious from its name. Putting it with the other XKB options clarifies this. Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com>
2023-07-18nixos/tests/keymap: add custom layouts testrnhmjoj1-4/+33
2022-12-24nixosTests.keymap: Remove unnecessary sleepRobert Hensing1-1/+0
When test-input-reader runs, it's standard input exists and will be buffered, so by the time the file exists, the standard input can already be written to. I have no reason to believe that a terminal emulator would start accepting input _after_ launching the command. I've tested this for hours in a loop without a single failure or timeout.
2022-12-24nixosTests.keymap: Reorder test cases to make setup more reliableRobert Hensing1-1/+10
I've run this test on repeat for hours, so there's reason to be hopeful.
2021-11-05nixosTests: Redirect stdout to stderr when detachingRobert Hensing1-1/+1
Avoids blocking on stdout.
2021-04-23kbd: add tests and update themdavidak1-3/+24
2020-02-02nixosTests.keymap: Port to pythonJacek Galowicz1-48/+66
2018-11-20nixos.tests.keymap: use new name of the colemak/en-latin9 keymapPierre Bourdon1-1/+1
Commit f1987fb58f57828944ca822bbb39b3de87f01863 renamed colemak/en-latin9 to colemak/colemak, but the keymap test wasn't adjusted to refer to the new path.
2018-11-11tests: refactor to carry the package set as an argumentLéo Gaspard1-2/+5
This way, the package set will be possible to pass without re-importing all the time
2018-04-25nixos/tests/keymap: wait for xdotool to succeedxeji1-5/+7
xdotool failed in rare cases when a window was already created but not yet decorated by the window manager. also prevent a (never observed but possible) race condition
2018-04-24nixos/tests/keymap: improve keymap testsxeji1-53/+43
simplify tests, prevent timeouts and non-deterministic failures
2018-03-06nixos/tests/keymap: Remove OCR-friendly SLiM themeaszlig1-32/+1
The test doesn't use OCR, so we actually don't need an OCR-friendly theme here. Signed-off-by: aszlig <aszlig@nix.build>
2018-01-11nixos/tests/keymap: disable xterm DMSarah Brofeldt1-0/+1
2017-07-22nixos/tests/keymap: use SLIM theme from nixos/tests/slimThomas Tuegel1-0/+32
2016-03-31nixos/tests: Add a test for keyboard layoutsaszlig1-0/+160
I had the basic version of this laying around for some while but didn't continue on it. Originally it was for testing support for the Neo layout introduced back then (8cd6d53). We only test the first three Neo layers, because the last three layers are largely comprised of special characters and in addition to that the support for the VT keymap seems to be limited compared to the Xorg keymap. Yesterday @NicolasPetton on IRC had troubles with the Colemak layout (IRC logs: http://nixos.org/irc/logs/log.20160330, starting at 16:08) and I found that test again, so I went for improving and adding to <nixpkgs>. While the original problem seemed to be related to GDM, we can still add another subtest that checks whether GDM correctly applies the keyboard layout. However I don't have a clue how to properly configure the keyboard layout on GDM, at least not within the NixOS configuration. The main goal of this test is not to test a complete set of all key mappings but to check whether the keymap is loaded and working at all. It also serves as an example for NixOS keyboard configurations. The list of keyboard layouts is by no means complete, so everybody is free to add their own to the test or improve the existing ones. Signed-off-by: aszlig <aszlig@redmoonstudios.org>