Added ghostty matugen template

This commit is contained in:
MichaelThomas0721 2025-08-28 16:39:56 -04:00
parent 57a67bf4df
commit cd6a183c28
4 changed files with 41 additions and 0 deletions

View file

@ -46,6 +46,12 @@ Singleton {
lines.push('output_path = "~/.config/kitty/themes/noctalia.conf"')
lines.push("post_hook = 'kitty +kitten themes --reload-in=all noctalia'")
}
if (Settings.data.matugen.ghostty) {
lines.push("\n[templates.ghostty]")
lines.push('input_path = "' + Quickshell.shellDir + '/Assets/Matugen/templates/ghostty.conf"')
lines.push('output_path = "~/.config/ghostty/themes/noctalia"')
lines.push("post_hook = \"grep -q '^theme *= *' ~/.config/ghostty/config; and sed -i 's/^theme *= *.*/theme = noctalia/' ~/.config/ghostty/config; or echo 'theme = noctalia' >> ~/.config/ghostty/config\"")
}
return lines.join("\n") + "\n"
}

View file

@ -0,0 +1,23 @@
palette = 0={{colors.surface.default.hex}}
palette = 1={{colors.error.default.hex}}
palette = 2={{colors.tertiary.default.hex}}
palette = 3={{colors.secondary.default.hex}}
palette = 4={{colors.primary.default.hex}}
palette = 5={{colors.primary.default.hex}}
palette = 6={{colors.secondary.default.hex}}
palette = 7={{colors.on_background.default.hex}}
palette = 8={{colors.outline.default.hex}}
palette = 9={{colors.secondary_fixed_dim.default.hex}}
palette = 10={{colors.tertiary_container.default.hex}}
palette = 11={{colors.surface_container.default.hex}}
palette = 12={{colors.primary_container.default.hex}}
palette = 13={{colors.on_primary_container.default.hex}}
palette = 14={{colors.surface_variant.default.hex}}
palette = 15={{colors.on_background.default.hex}}
cursor-color = {{colors.primary.default.hex}}
cursor-text = {{colors.on_surface.default.hex}}
foreground = {{colors.on_surface.default.hex}}
background = {{colors.surface.default.hex}}
selection-foreground = {{colors.on_secondary.default.hex}}
selection-background = {{colors.secondary_fixed_dim.default.hex}}