From 4380be310840b1ed3897d048c3585bcbeb387858 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Fri, 9 Oct 2026 12:01:59 -0400 Subject: [PATCH] fix(desktop): prefer omarchy background setter --- desktop/script/set-wallpaper.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/desktop/script/set-wallpaper.sh b/desktop/script/set-wallpaper.sh index 72ca0ed..d8c5ad0 100755 --- a/desktop/script/set-wallpaper.sh +++ b/desktop/script/set-wallpaper.sh @@ -18,11 +18,6 @@ elif [[ "$2" == "-r" ]]; then RES_ARGS="-r $3" fi -if [[ ! -x /usr/bin/awww ]]; then - echo "required awww — please install with yay -S awww" >&2 - exit 0 -fi - # Paths BACKGROUNDS_DIR="$HOME/Sync/Shared/wallpapers" CURRENT_BACKGROUND_LINK="$HOME/.local/state/omarchy/current/background" @@ -46,6 +41,15 @@ if [[ ! -f "$FILE_PATH" ]]; then exit 1 fi +if [[ -x /usr/bin/omarchy-theme-bg-set ]]; then + /usr/bin/omarchy-theme-bg-set $FILE_PATH && exit 0 +fi + +if [[ ! -x /usr/bin/awww ]]; then + echo "required awww — please install with yay -S awww" >&2 + exit 0 +fi + ln -nsf "$FILE_PATH" "$CURRENT_BACKGROUND_LINK" && setsid uwsm app -- awww img "$CURRENT_BACKGROUND_LINK" && exit 0