This repository has been archived on 2024-07-03. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager/programs/desktop/alacritty/default.nix
Evie Litherland-Smith 6ed405d7e2 Squashed commit of the following:
commit 68df6945a2
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Mon Jun 17 08:44:52 2024 +0100

    Remove gnome-themes-extra and adwaita-qt

commit fa7baa7812
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Mon Jun 17 08:37:45 2024 +0100

    Export more rc2 settings for Vanguard

commit 4a101ee77d
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Mon Jun 17 08:27:46 2024 +0100

    Set pinentry package to Qt variant when using plasma6

    Add extra theme/icon packages to installed packages whilst configuring

commit 923adabb28
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Mon Jun 17 08:23:48 2024 +0100

    Add rc2 export for Vanguard as well

    Remove some sway config from Vanguard.nix

    Remove home-manager kdeconnect service, incompatible with
    system/plasma6 enabled service

    Install pinentry-all by default to ensure compatibility

commit dfc1ac3f74
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Mon Jun 17 07:35:31 2024 +0100

    Add plasma6 export using rc2nix

commit eb8bb86c17
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Sun Jun 16 20:44:38 2024 +0100

    Disable/remove more options not needed for plasma6

commit 51171ddb06
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Sun Jun 16 19:31:15 2024 +0100

    Re-enable alacritty decorations, disable translucency for alacritty and emacs

commit 99364c041b
Author: Evie Litherland-Smith <evie@xenia.me.uk>
Date:   Sun Jun 16 12:42:26 2024 +0100

    Disable sway and related modules
2024-06-17 08:47:53 +01:00

72 lines
1.8 KiB
Nix

{
config,
fonts,
...
}: {
programs.alacritty = {
enable = true;
settings = {
font = {
size = fonts.sizes.applications;
normal = {
family = fonts.monospace.name;
style = "Regular";
};
};
window = {
dynamic_title = true;
padding = {
x = 10;
y = 10;
};
# decorations = "none";
# opacity = 0.9;
};
live_config_reload = true;
selection.save_to_clipboard = true;
mouse.hide_when_typing = true;
colors = let
mapColours = isBright: (builtins.listToAttrs (builtins.map (col: {
# Alacritty uses Yellow instead of Orange for BASE09
name =
if col == "orange"
then "yellow"
else col;
value = "0x${config
.scheme
.${
if isBright
then "bright-${col}"
else col
}}";
})
["red" "orange" "green" "cyan" "blue" "magenta"]));
mapNamedColours = mapColours false;
mapNamedBrightColours = mapColours true;
in {
draw_bold_text_with_bright_colors = false;
primary = with config.scheme; {
background = "0x${base00}";
foreground = "0x${base05}";
};
cursor = with config.scheme; {
cursor = "0x${base05}";
text = "0x${base00}";
};
normal = with config.scheme;
{
black = "0x${base00-hex}";
white = "0x${base05-hex}";
}
// mapNamedColours;
bright = with config.scheme;
{
black = "0x${base03-hex}";
white = "0x${base07-hex}";
}
// mapNamedBrightColours;
};
};
};
}