summaryrefslogtreecommitdiffstats
path: root/configs/alacritty.nix
diff options
context:
space:
mode:
Diffstat (limited to 'configs/alacritty.nix')
-rw-r--r--configs/alacritty.nix12
1 files changed, 7 insertions, 5 deletions
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;