2022-06-21 01:47:36 +02:00
|
|
|
{ pkgs, lib, config, ... }:
|
2022-03-07 16:01:52 +01:00
|
|
|
{
|
|
|
|
programs.alacritty = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
window.padding = { x = 15; y = 15; };
|
|
|
|
|
|
|
|
font = {
|
|
|
|
normal = {
|
|
|
|
family = "Fira Code";
|
|
|
|
style = "Retina";
|
|
|
|
};
|
|
|
|
bold.family = "Fira Code";
|
|
|
|
italic.family = "Fira Code";
|
|
|
|
size = 12.0;
|
|
|
|
};
|
|
|
|
|
|
|
|
colors =
|
|
|
|
let
|
|
|
|
inherit (lib.attrsets) getAttrs filterAttrs;
|
|
|
|
inherit (lib.lists) any;
|
|
|
|
primaryColors = [ "foreground" "background" ];
|
|
|
|
in
|
|
|
|
{
|
2022-06-21 01:47:36 +02:00
|
|
|
primary = getAttrs primaryColors config.colors.defaultColorSet;
|
2022-03-07 16:01:52 +01:00
|
|
|
normal = let
|
|
|
|
removePrimaryColorAttrs = n: v: !(any (pc: n ? pc) primaryColors);
|
2022-06-21 01:47:36 +02:00
|
|
|
in filterAttrs removePrimaryColorAttrs config.colors.defaultColorSet;
|
2022-03-07 16:01:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
background_opacity = 1.0;
|
|
|
|
|
|
|
|
cursor = {
|
|
|
|
style = "Block";
|
|
|
|
blinking = "On";
|
|
|
|
unfocused_hollow = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
bell = {
|
|
|
|
animation = "EaseOutExpo";
|
|
|
|
color = "0xffffff";
|
|
|
|
duration = 20;
|
|
|
|
};
|
|
|
|
|
|
|
|
live_config_reload = true;
|
|
|
|
|
|
|
|
shell = {
|
|
|
|
program = "${pkgs.zsh}/bin/zsh";
|
|
|
|
args = [ "--login" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|