From 75f035ddb68c59b58c18a185d5317c4f8f9437ad Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 17 Sep 2025 15:12:17 +0200 Subject: [PATCH] Ensure a default theme is used if none exist --- bin/omarchy-theme-set-terminal | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-theme-set-terminal b/bin/omarchy-theme-set-terminal index c050658..63a30f1 100755 --- a/bin/omarchy-theme-set-terminal +++ b/bin/omarchy-theme-set-terminal @@ -3,5 +3,12 @@ case "$TERMINAL" in "alacritty") touch ~/.config/alacritty/alacritty.toml ;; "kitty") killall -SIGUSR1 kitty ;; -"ghostty") killall -USRSIG2 ghostty ;; +"ghostty") + # Use a default theme if none exists + if [[ ! -f ~/.config/omarchy/current/theme/ghostty.conf ]]; then + echo "theme = Spacegray" >~/.config/omarchy/current/theme/ghostty.conf + fi + + killall -USRSIG2 ghostty + ;; esac