From e3816a610701660ade0b8804e3bb204701f42c83 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 6 Jun 2024 20:52:08 +0200 Subject: alacritty: modernize config --- configs/alacritty.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'configs') diff --git a/configs/alacritty.nix b/configs/alacritty.nix index 25fb2c3..0e4f42b 100644 --- a/configs/alacritty.nix +++ b/configs/alacritty.nix @@ -24,7 +24,7 @@ let colors.bright.magenta = "#fb53fb"; colors.bright.cyan = "#72fbfb"; colors.bright.white = "#fbfbfb"; - draw_bold_text_with_bright_colors = false; + colors.draw_bold_text_with_bright_colors = false; hints.enabled = [ { regex = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\\u0000-\\u001F\\u007F-\\u009F<>\"\\s{-}\\^⟨⟩`]+"; @@ -51,7 +51,7 @@ let font.bold.family = "iosevka tv 2 Medium"; font.bold_italic.family = "iosevka tv 2 Medium"; font.size = 5; - key_bindings = [ + keyboard.bindings = [ { key = "Up"; mods = "Control"; action = "IncreaseFontSize"; } { key = "Down"; mods = "Control"; action = "DecreaseFontSize"; } { key = "Down"; mods = "Shift|Control"; action = "ResetFontSize"; } @@ -62,7 +62,7 @@ let font.bold.family = "Clean"; font.bold.style = "Regular"; font.size = 10; - key_bindings = let + keyboard.bindings = let font-size = arg: { program = "${pkgs.font-size-alacritty}/bin/font-size-alacritty"; args = [arg]; @@ -80,13 +80,15 @@ let leg = "hidpi"; ru = "hidpi"; }.${config.krebs.build.host.name} or "x220"; + + format = pkgs.formats.toml {}; in { environment.etc = lib.mapAttrs' - (name: config: lib.nameValuePair "alacritty/${name}.json" { - source = pkgs.writeJSON "alacritty-${name}.json" config; + (name: config: lib.nameValuePair "alacritty/${name}.toml" { + source = format.generate "alacritty-${name}.toml" config; }) configs; -- cgit v1.2.3