summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-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"; }