templating: cleaned terminals templating - avoid code duplication and centralize theme apply and hotreload

This commit is contained in:
Lemmy
2026-01-21 19:19:23 -05:00
parent 25a1186b4d
commit 0e93a2fe0d
8 changed files with 26 additions and 27 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ ghostty)
# Add the new theme include line to the end of the file.
echo "theme = noctalia" >>"$CONFIG_FILE"
fi
pkill -SIGUSR2 ghostty
# Only signal if ghostty is running
pgrep -x ghostty >/dev/null && pkill -SIGUSR2 ghostty || true
else
echo "Error: ghostty config file not found at $CONFIG_FILE" >&2
exit 1