add keyboard-keymap

This commit is contained in:
Charlotte 🦝 Delenk 2022-05-29 20:29:27 +01:00
parent 279f407b9c
commit 44399fa48c
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -19,10 +19,38 @@ let
path = "${plover-src}/plover/assets/main.json";
}
];
keyboard-keymap = [
[ "#" [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "0" "-" "=" "b" ] ]
[ "S-" [ "q" "a" ] ]
[ "T-" [ "w" ] ]
[ "K-" [ "s" ] ]
[ "P-" [ "e" ] ]
[ "W-" [ "d" ] ]
[ "H-" [ "r" ] ]
[ "R-" [ "f" ] ]
[ "A-" [ "c" ] ]
[ "O-" [ "v" ] ]
[ "*" [ "t" "y" "g" "h" ] ]
[ "-E" [ "n" ] ]
[ "-U" [ "m" ] ]
[ "-F" [ "u" ] ]
[ "-R" [ "j" ] ]
[ "-P" [ "i" ] ]
[ "-B" [ "k" ] ]
[ "-L" [ "o" ] ]
[ "-G" [ "l" ] ]
[ "-T" [ "p" ] ]
[ "-S" [ ";" ] ]
[ "-D" [ "[" ] ]
[ "-Z" [ "'" ] ]
[ "arpeggiate" [ "space" ] ]
[ "no-op" [ "\\" "]" "z" "x" "" "." "/" ] ]
];
plover-cfg = pkgs.writeText "plover.cfg" (lib.generators.toINI { } {
"Machine Configuration".machine_type = "Keyboard";
"System: English Stenotype" = {
dictionaries = builtins.toJSON plover-dictionaries;
"keymap[keyboard]" = builtins.toJSON keyboard-keymap;
};
});
in