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"
}