Use conditional theme file instead and send correct signal

This commit is contained in:
David Heinemeier Hansson
2025-09-17 20:45:02 +02:00
parent f6383fd3e9
commit 9aef0ffab6
2 changed files with 2 additions and 9 deletions

View File

@@ -3,12 +3,5 @@
case "$TERMINAL" in
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
"kitty") killall -SIGUSR1 kitty ;;
"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
;;
"ghostty") killall -SIGUSR2 ghostty ;;
esac

View File

@@ -1,5 +1,5 @@
# Dynamic theme colors
config-file = "~/.config/omarchy/current/theme/ghostty.conf"
config-file = ?"~/.config/omarchy/current/theme/ghostty.conf"
# Font
font-family = "CaskaydiaMono Nerd Font"