summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-03-18 19:42:11 +0100
committertv <tv@krebsco.de>2024-03-18 19:42:11 +0100
commit97fca3f7718db009a6b3c75792c38d90a413870a (patch)
treebab1418393ef81957a943a2bb79fc54f446d1f1a
parentb69c439bf4f700d92df8eb1c9ec5090bf50cc80c (diff)
alacritty: move font-size closer to caller
-rw-r--r--configs/alacritty.nix11
1 files changed, 6 insertions, 5 deletions
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"; }