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