mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
feat(xkeymap): set options in kb-* scripts
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
commaSep = builtins.concatStringsSep ",";
|
commaSep = builtins.concatStringsSep ",";
|
||||||
|
xkbOptions = ["compose:caps" "terminate:ctrl_alt_bksp" "grp:ctrls_toggle"];
|
||||||
languages = {
|
languages = {
|
||||||
de = "T3";
|
de = "T3";
|
||||||
gr = "polytonic";
|
gr = "polytonic";
|
||||||
@@ -19,7 +20,7 @@ in {
|
|||||||
# buckwalter: http://www.qamus.org/transliteration.htm
|
# buckwalter: http://www.qamus.org/transliteration.htm
|
||||||
xkbVariant = "T3";
|
xkbVariant = "T3";
|
||||||
xkbOptions =
|
xkbOptions =
|
||||||
commaSep ["compose:caps" "terminate:ctrl_alt_bksp" "grp:ctrls_toggle"];
|
commaSep xkbOptions;
|
||||||
libinput.enable = true;
|
libinput.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -29,7 +30,7 @@ in {
|
|||||||
lib.mapAttrsToList
|
lib.mapAttrsToList
|
||||||
(language: variant:
|
(language: variant:
|
||||||
pkgs.writers.writeDashBin "kb-${language}" ''
|
pkgs.writers.writeDashBin "kb-${language}" ''
|
||||||
${pkgs.xorg.setxkbmap}/bin/setxkbmap ${defaultLanguage},${language} ${languages.${defaultLanguage}},${variant}
|
${pkgs.xorg.setxkbmap}/bin/setxkbmap ${defaultLanguage},${language} ${languages.${defaultLanguage}},${variant} ${toString (map (option: "-option ${option}") xkbOptions)}
|
||||||
'')
|
'')
|
||||||
languages;
|
languages;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user