diff --git a/bin/wallpaper-fetcher b/bin/wallpaper-fetcher index 817ecc6..a748816 100755 Binary files a/bin/wallpaper-fetcher and b/bin/wallpaper-fetcher differ diff --git a/config/hypr/sjb/init.lua b/config/hypr/sjb/init.lua index 32b532c..4d402e6 100644 --- a/config/hypr/sjb/init.lua +++ b/config/hypr/sjb/init.lua @@ -477,7 +477,7 @@ hl.bind("mouse:276", hl.dsp.window.cycle_next({ next = false }), { click = true, hl.bind(HYPR .. "V", hl.dsp.exec_cmd("pavucontrol"), { description = "Volume control" }) hl.bind(HYPR .. "B", hl.dsp.exec_cmd("blueberry"), { description = "Bluetooth manager" }) -hl.bind(HYPR .. "semicolon", hl.dsp.exec_cmd("~/.local/bin/set-wallpaper.sh categories/quotes"), +hl.bind(HYPR .. "semicolon", hl.dsp.exec_cmd("~/.local/bin/set-wallpaper.sh categories/technics"), { description = "get new wallpaper" }) hl.bind(HYPR .. "A", hl.dsp.exec_cmd("gtk-launch pi.desktop"), { description = "Open pi tui" }) diff --git a/script/set-wallpaper.sh b/script/set-wallpaper.sh index e7d6e27..72ca0ed 100755 --- a/script/set-wallpaper.sh +++ b/script/set-wallpaper.sh @@ -30,7 +30,7 @@ CURRENT_BACKGROUND_LINK="$HOME/.local/state/omarchy/current/background" [ -d "$BACKGROUNDS_DIR" ] || mkdir -p "$BACKGROUNDS_DIR" # Run wallpaper-fetcher (stdout = bare filename, stderr = log output) -FILENAME=$(wallpaper-fetcher "$BACKIEE_PATH" -o "$BACKGROUNDS_DIR" $RES_ARGS 2>/dev/null) +FILENAME=$(~/.local/bin/wallpaper-fetcher "$BACKIEE_PATH" --output "$BACKGROUNDS_DIR" $RES_ARGS 2>/dev/null) if [[ -z "$FILENAME" ]]; then echo "wallpaper-fetcher failed — no image downloaded" >&2