From fe00eefdc013d243dc4abbba618738c6dcf1de60 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 30 Aug 2023 20:53:21 +0200 Subject: Feat(sys/locale): Add a keymap with special char support --- sys/locale/default.nix | 8 ++++++++ sys/locale/keymaps/us_modified.xkb | 14 ++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 sys/locale/keymaps/us_modified.xkb (limited to 'sys/locale') diff --git a/sys/locale/default.nix b/sys/locale/default.nix index 1e7786cc..d4a44b6b 100644 --- a/sys/locale/default.nix +++ b/sys/locale/default.nix @@ -32,5 +32,13 @@ in { console = { inherit (cfg) keyMap; }; + + services.xserver.extraLayouts = { + "us-modified" = { + description = "standard us with german and swedish extra chars."; + languages = ["eng" "swe" "deu"]; + symbolsFile = ./keymaps/us_modified.xkb; + }; + }; }; } diff --git a/sys/locale/keymaps/us_modified.xkb b/sys/locale/keymaps/us_modified.xkb new file mode 100644 index 00000000..711f0d0e --- /dev/null +++ b/sys/locale/keymaps/us_modified.xkb @@ -0,0 +1,14 @@ +partial alphanumeric_keys +xkb_symbols "us-modified" { + name[Group1]= "US English with additional keys"; + + key {[ o, O, ö, Ö]}; + key {[ u, U, ü, Ü]}; + key {[ a, A, ä, Ä, å, Å]}; + + + include "us(basic)" + include "level3(caps_switch)" + include "level5(ralt_switch)" +} +// vim: ft=xkb -- cgit 1.4.1