feat(alacritty): disable font size key bindings
This commit is contained in:
parent
b5cac99097
commit
69e88cc4e9
|
@ -1,18 +1,17 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with pkgs; with lib;
|
||||
with pkgs;
|
||||
with lib;
|
||||
let
|
||||
yamlToJSON = path: runCommand "yaml.json" { nativeBuildInputs = [ pkgs.ruby ]; } ''
|
||||
ruby -rjson -ryaml -e "puts YAML.load(ARGF).to_json" < ${path} > $out
|
||||
'';
|
||||
in
|
||||
{
|
||||
yamlToJSON = path:
|
||||
runCommand "yaml.json" { nativeBuildInputs = [ pkgs.ruby ]; } ''
|
||||
ruby -rjson -ryaml -e "puts YAML.load(ARGF).to_json" < ${path} > $out
|
||||
'';
|
||||
in {
|
||||
# doesn't yet support font ligatures & undercurls
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
package = runCommand "alacritty" {
|
||||
buildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
package = runCommand "alacritty" { buildInputs = [ makeWrapper ]; } ''
|
||||
mkdir $out
|
||||
ln -s ${alacritty}/* $out
|
||||
rm $out/bin
|
||||
|
@ -21,6 +20,13 @@ in
|
|||
--add-flags "${alacritty}/bin/alacritty --embed"
|
||||
'';
|
||||
settings = recursiveUpdate {
|
||||
key_bindings =
|
||||
# disable font size bindings
|
||||
map (key: {
|
||||
inherit key;
|
||||
mods = "Control";
|
||||
action = "ReceiveChar";
|
||||
}) [ "Key0" "Equals" "Add" "Subtract" "Minus" ];
|
||||
} (trivial.importJSON (yamlToJSON ./alacritty-gruvbox-dark.yml));
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue