Prevent theme refreshing from changing the background image

This commit is contained in:
David Heinemeier Hansson
2026-05-05 14:22:29 +02:00
parent fcbe63482b
commit 00f822728a
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -5,5 +5,5 @@
THEME_NAME_PATH="$HOME/.config/omarchy/current/theme.name"
if [[ -f $THEME_NAME_PATH ]]; then
omarchy-theme-set "$(cat $THEME_NAME_PATH)"
OMARCHY_THEME_SKIP_BACKGROUND=1 omarchy-theme-set "$(cat $THEME_NAME_PATH)"
fi
+2
View File
@@ -45,7 +45,9 @@ mv "$NEXT_THEME_PATH" "$CURRENT_THEME_PATH"
echo "$THEME_NAME" >"$HOME/.config/omarchy/current/theme.name"
# Change background with theme
if [[ $OMARCHY_THEME_SKIP_BACKGROUND != "1" ]]; then
omarchy-theme-bg-next
fi
# Restart components to apply new theme
if pgrep -x waybar >/dev/null; then