fix(wallpaper): call fetcher by absolute path in set-wallpaper

Hyprland's exec_cmd does not source the shell PATH, so plain
wallpaper-fetcher failed from the keybinding; use ~/.local/bin. Binary
rebuilt (5.3MB -> 2.6MB) and the keybinding now fetches technics.
This commit is contained in:
2026-09-24 23:44:41 -04:00
parent b9997088c8
commit bf9780345d
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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