From 85ae348bf3f53125c8281669a32bf007dc0063be Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Sep 2023 12:24:01 +0200 Subject: l alacritty: use precompiled font --- lass/2configs/alacritty.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lass/2configs/alacritty.nix') diff --git a/lass/2configs/alacritty.nix b/lass/2configs/alacritty.nix index e5e001a4c..7f24e4a2e 100644 --- a/lass/2configs/alacritty.nix +++ b/lass/2configs/alacritty.nix @@ -2,7 +2,7 @@ alacritty-cfg = extrVals: builtins.toJSON ({ font = let - family = "Iosevka"; + family = "Iosevka Term SS15"; in { normal = { family = family; @@ -20,13 +20,14 @@ family = family; style = "Bold Italic"; }; - size = 8; + size = 12; }; live_config_reload = true; window.dimensions = { columns = 80; lines = 20; }; + env.WINIT_X11_SCALE_FACTOR = "1.0"; # window.opacity = 0; hints.enabled = [ { -- cgit v1.2.3 From f55307fd73af235069744dd5155fda0bc73fe613 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 7 Sep 2023 12:26:31 +0200 Subject: lass: migrate away --- lass/2configs/alacritty.nix | 134 -------------------------------------------- 1 file changed, 134 deletions(-) delete mode 100644 lass/2configs/alacritty.nix (limited to 'lass/2configs/alacritty.nix') diff --git a/lass/2configs/alacritty.nix b/lass/2configs/alacritty.nix deleted file mode 100644 index 7f24e4a2e..000000000 --- a/lass/2configs/alacritty.nix +++ /dev/null @@ -1,134 +0,0 @@ -{ config, lib, pkgs, ... }: let - - alacritty-cfg = extrVals: builtins.toJSON ({ - font = let - family = "Iosevka Term SS15"; - in { - normal = { - family = family; - style = "Regular"; - }; - bold = { - family = family; - style = "Bold"; - }; - italic = { - family = family; - style = "Italic"; - }; - bold_italic = { - family = family; - style = "Bold Italic"; - }; - size = 12; - }; - live_config_reload = true; - window.dimensions = { - columns = 80; - lines = 20; - }; - env.WINIT_X11_SCALE_FACTOR = "1.0"; - # window.opacity = 0; - hints.enabled = [ - { - regex = ''(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-\u009F<>"\s{-}\^⟨⟩`]+''; - command = "/run/current-system/sw/bin/xdg-open"; - post_processing = true; - mouse.enabled = true; - binding = { - key = "U"; - mods = "Alt"; - }; - } - ]; - } // extrVals); - - alacritty = pkgs.symlinkJoin { - name = "alacritty"; - paths = [ - (pkgs.writeDashBin "alacritty" '' - ${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.yaml msg create-window "$@" || - ${pkgs.alacritty}/bin/alacritty --config-file /var/theme/config/alacritty.yaml "$@" - '') - pkgs.alacritty - ]; - }; - -in { - environment.etc = { - "themes/light/alacritty.yaml".text = alacritty-cfg { - colors = { - # Default colors - primary = { - # hard contrast: background = '#f9f5d7' - # background = "#fbf1c7"; - background = "#f9f5d7"; - # soft contrast: background = '#f2e5bc' - foreground = "#3c3836"; - }; - - # Normal colors - normal = { - black = "#fbf1c7"; - red = "#cc241d"; - green = "#98971a"; - yellow = "#d79921"; - blue = "#458588"; - magenta = "#b16286"; - cyan = "#689d6a"; - white = "#7c6f64"; - }; - - # Bright colors - bright = { - black = "#928374"; - red = "#9d0006"; - green = "#79740e"; - yellow = "#b57614"; - blue = "#076678"; - magenta = "#8f3f71"; - cyan = "#427b58"; - white = "#3c3836"; - }; - }; - }; - "themes/dark/alacritty.yaml".text = alacritty-cfg { - colors = { - # Default colors - primary = { - background = "0x000000"; - foreground = "0xffffff"; - }; - cursor = { - text = "0xF81CE5"; - cursor = "0xffffff"; - }; - - # Normal colors - normal = { - black = "0x000000"; - red = "0xfe0100"; - green = "0x33ff00"; - yellow = "0xfeff00"; - blue = "0x0066ff"; - magenta = "0xcc00ff"; - cyan = "0x00ffff"; - white = "0xd0d0d0"; - }; - - # Bright colors - bright = { - black = "0x808080"; - red = "0xfe0100"; - green = "0x33ff00"; - yellow = "0xfeff00"; - blue = "0x0066ff"; - magenta = "0xcc00ff"; - cyan = "0x00ffff"; - white = "0xFFFFFF"; - }; - }; - }; - }; - environment.systemPackages = [ alacritty ]; -} -- cgit v1.2.3