1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 02:51:08 +01:00
Files
niveum/configs/keyboard.nix

35 lines
958 B
Nix
Raw Normal View History

2022-03-10 21:52:12 +01:00
{
pkgs,
lib,
...
}: let
commaSep = builtins.concatStringsSep ",";
in {
2022-04-25 11:34:07 +02:00
# man 7 xkeyboard-config
2019-04-19 03:11:51 +02:00
services.xserver = {
2022-04-25 11:34:07 +02:00
layout = commaSep ["de" "gr" "ru" "ara"];
2022-04-25 11:52:27 +02:00
# T3: https://upload.wikimedia.org/wikipedia/commons/a/a9/German-Keyboard-Layout-T3-Version1-large.png
# buckwalter: http://www.qamus.org/transliteration.htm
2022-04-25 11:34:07 +02:00
xkbVariant = commaSep ["T3" "polytonic" "phonetic" "buckwalter"];
2020-06-10 17:37:25 +02:00
xkbOptions =
2022-03-10 21:52:12 +01:00
commaSep ["compose:caps" "terminate:ctrl_alt_bksp" "grp:ctrls_toggle"];
2019-04-19 03:11:51 +02:00
libinput.enable = true;
};
console.keyMap = "de";
2020-05-31 18:24:15 +02:00
# improve held key rate
2022-03-10 21:52:12 +01:00
services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xset}/bin/xset r rate 300 50";
2022-04-25 11:38:10 +02:00
systemd.user.services.gxkb = {
wantedBy = ["graphical-session.target"];
serviceConfig = {
SyslogIdentifier = "gxkb";
ExecStart = "${pkgs.gxkb}/bin/gxkb";
Restart = "always";
RestartSec = "15s";
StartLimitBurst = 0;
};
};
2019-04-19 03:11:51 +02:00
}