ghostty: themes are supported in home-manager now

This commit is contained in:
Daniel Lundin 2025-01-21 10:29:47 +01:00
parent a07cdcc959
commit 04fea5639d
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -47,59 +47,59 @@
"super+enter=toggle_fullscreen" "super+enter=toggle_fullscreen"
]; ];
}; };
}; themes = {
PatagiaDark = {
xdg.configFile."ghostty/themes/PatagiaDark".text =
let
background = if config.patagia.oled.enable then "#000000" else "#14151a"; background = if config.patagia.oled.enable then "#000000" else "#14151a";
in foreground = "#b7bec7";
'' cursor-color = "#e7e7b7";
background = "${background}" selection-background = "#84979f";
foreground = #b7bec7 selection-foreground = "#000000";
cursor-color = #e7e7b7 palette = [
selection-background = #84979f "#000000"
selection-foreground = #000000 "#ff0035"
palette = 0=#000000 "#85ff00"
palette = 1=#ff0035 "#ffc900"
palette = 2=#85ff00 "#00a7ff"
palette = 3=#ffc900 "#cb01ff"
palette = 4=#00a7ff "#00e0ff"
palette = 5=#cb01ff "#b7bec7"
palette = 6=#00e0ff "#444444"
palette = 7=#b7bec7 "#ff8c88"
palette = 8=#444444 "#baff94"
palette = 9=#ff8c88 "#ffe090"
palette = 10=#baff94 "#88ccff"
palette = 11=#ffe090 "#e38dff"
palette = 12=#88ccff "#97eeff"
palette = 13=#e38dff "#ffffff"
palette = 14=#97eeff ];
palette = 15=#ffffff };
''; PatagiaLight = {
background = "#fefeff";
xdg.configFile."ghostty/themes/PatagiaLight".text = '' foreground = "#222222";
background = #fefeff cursor-color = "#aa0000";
foreground = #222222 selection-background = "#ffe6a4";
cursor-color = #aa0000 selection-foreground = "#483600";
selection-background = #ffe6a4 palette = [
selection-foreground = #483600 "#000000"
palette = 0=#000000 "#9e001d"
palette = 1=#9e001d "#306300"
palette = 2=#306300 "#deae00"
palette = 3=#deae00 "#00669e"
palette = 4=#00669e "#7d009e"
palette = 5=#7d009e "#008a9e"
palette = 6=#008a9e "#f7f7f7"
palette = 7=#f7f7f7 "#b0b0b0"
palette = 8=#b0b0b0 "#ff0035"
palette = 9=#ff0035 "#509e00"
palette = 10=#509e00 "#ffc900"
palette = 11=#ffc900 "#00a7ff"
palette = 12=#00a7ff "#cb01ff"
palette = 13=#cb01ff "#00e0ff"
palette = 14=#00e0ff "#ffffff"
palette = 15=#ffffff ];
''; };
};
};
xdg.desktopEntries = { xdg.desktopEntries = {
ghostty-secondary = { ghostty-secondary = {