Prevent theme refreshing from changing the background image
This commit is contained in:
@@ -5,5 +5,5 @@
|
|||||||
THEME_NAME_PATH="$HOME/.config/omarchy/current/theme.name"
|
THEME_NAME_PATH="$HOME/.config/omarchy/current/theme.name"
|
||||||
|
|
||||||
if [[ -f $THEME_NAME_PATH ]]; then
|
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
|
fi
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ mv "$NEXT_THEME_PATH" "$CURRENT_THEME_PATH"
|
|||||||
echo "$THEME_NAME" >"$HOME/.config/omarchy/current/theme.name"
|
echo "$THEME_NAME" >"$HOME/.config/omarchy/current/theme.name"
|
||||||
|
|
||||||
# Change background with theme
|
# Change background with theme
|
||||||
omarchy-theme-bg-next
|
if [[ $OMARCHY_THEME_SKIP_BACKGROUND != "1" ]]; then
|
||||||
|
omarchy-theme-bg-next
|
||||||
|
fi
|
||||||
|
|
||||||
# Restart components to apply new theme
|
# Restart components to apply new theme
|
||||||
if pgrep -x waybar >/dev/null; then
|
if pgrep -x waybar >/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user