diff --git a/config/programs/plover.nix b/config/programs/plover.nix index 17152462..4e9ec266 100644 --- a/config/programs/plover.nix +++ b/config/programs/plover.nix @@ -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