From cd36b6082c0c8310700b73c4013e4dcc7ba31a10 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 6 Feb 2025 14:38:45 +0100 Subject: [PATCH] feat(input-sources): add custom xkb option for ellipsis Introduces a new XKB configuration for typing the ellipsis symbol. Updates dconf settings and XDG config files to enable and map the custom "mod:ellipsis" option. --- homes/x86_64-linux/harald@x1/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homes/x86_64-linux/harald@x1/default.nix b/homes/x86_64-linux/harald@x1/default.nix index 4fd150c..63220e4 100644 --- a/homes/x86_64-linux/harald@x1/default.nix +++ b/homes/x86_64-linux/harald@x1/default.nix @@ -56,6 +56,18 @@ }; }; + dconf.settings."org/gnome/desktop/input-sources".xkb-options = [ "mod:ellipsis" ]; + xdg.configFile."xkb/symbols/mod".text = '' + xkb_symbols "ellipsis" { + key { [ period, greater, ellipsis, division ] }; + }; + ''; + xdg.configFile."xkb/rules/evdev".text = '' + ! option = symbols + mod:ellipsis = +mod(ellipsis) + ! include %S/evdev + ''; + xdg.enable = true; xdg.mime.enable = true; }