From 97fca3f7718db009a6b3c75792c38d90a413870a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 18 Mar 2024 19:42:11 +0100 Subject: alacritty: move font-size closer to caller --- configs/alacritty.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'configs') diff --git a/configs/alacritty.nix b/configs/alacritty.nix index 2d83aee..25fb2c3 100644 --- a/configs/alacritty.nix +++ b/configs/alacritty.nix @@ -1,10 +1,6 @@ { lib, config, pkgs, ... }: let - font-size = arg: { - program = "${pkgs.font-size-alacritty}/bin/font-size-alacritty"; - args = [arg]; - }; configs.default = lib.recursiveUpdate variants.${variant} { bell.animation = "EaseOut"; bell.duration = 50; @@ -66,7 +62,12 @@ let font.bold.family = "Clean"; font.bold.style = "Regular"; font.size = 10; - key_bindings = [ + key_bindings = let + font-size = arg: { + program = "${pkgs.font-size-alacritty}/bin/font-size-alacritty"; + args = [arg]; + }; + in [ { key = "Up"; mods = "Shift|Control"; command = font-size "=14"; } { key = "Up"; mods = "Control"; command = font-size "+1"; } { key = "Down"; mods = "Control"; command = font-size "-1"; } -- cgit v1.2.3