Skip to content

Commit 9aef0ff

Browse files
committed
Use conditional theme file instead and send correct signal
1 parent f6383fd commit 9aef0ff

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

bin/omarchy-theme-set-terminal

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,5 @@
33
case "$TERMINAL" in
44
"alacritty") touch ~/.config/alacritty/alacritty.toml ;;
55
"kitty") killall -SIGUSR1 kitty ;;
6-
"ghostty")
7-
# Use a default theme if none exists
8-
if [[ ! -f ~/.config/omarchy/current/theme/ghostty.conf ]]; then
9-
echo "theme = Spacegray" >~/.config/omarchy/current/theme/ghostty.conf
10-
fi
11-
12-
killall -USRSIG2 ghostty
13-
;;
6+
"ghostty") killall -SIGUSR2 ghostty ;;
147
esac

config/ghostty/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dynamic theme colors
2-
config-file = "~/.config/omarchy/current/theme/ghostty.conf"
2+
config-file = ?"~/.config/omarchy/current/theme/ghostty.conf"
33

44
# Font
55
font-family = "CaskaydiaMono Nerd Font"

0 commit comments

Comments
 (0)