Skip to content

Animations Not Applied to Vertical Wallpapers #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
i686-underflow opened this issue Apr 13, 2025 · 3 comments
Open

Animations Not Applied to Vertical Wallpapers #411

i686-underflow opened this issue Apr 13, 2025 · 3 comments

Comments

@i686-underflow
Copy link

Hello! 😁

Title says it all! Using the following, animations are only applied to monitor 1 (landscape, 1440), but not monitor 2 (portrait, 1080):

swww img -t random --transition-fps $FPS --transition-step $STEP -o "$2" "$img"


Expected Behavior:

Animation is applied to both landscape and portrait-oriented wallpapers.

To Reproduce:

  • Build swww from latest(?) master

  • Configure displays in hyprland.conf as follows:

monitor = DP-1, [email protected], 0x0, 1
monitor = HDMI-A-2, [email protected], auto-left, 1, transform, 1
  • Start swww as follows:

in hyprland.conf:

exec-once = path/to/start.sh "path/to/pictures/" "DP-1"
exec-once = path/to/start.sh "path/to/pictures/" "HDMI-A-2"

where start.sh is as follows:

#!/usr/bin/env bash

# If swww-daemon doesn't exist, start it

if ! pidof -qx swww-daemon; then
    swww-daemon &
fi

# This script will randomly go through the files of a directory, setting it
# up as the wallpaper at regular intervals
#
# NOTE: this script is in bash (not posix shell), because the RANDOM variable
# we use is not defined in posix

if [[ $# -lt 1 ]] || [[ ! -d $1   ]]; then
    echo "Usage:
    $0 <dir containing images>"
    exit 1
fi

# Edit below to control the images transition
FPS=30
STEP=2

# This controls (in seconds) when to switch to the next image
INTERVAL=210

while true; do
    find "$1" -type f \
        | while read -r img; do
            echo "$((RANDOM % 1000)):$img"
        done \
        | sort -n | cut -d':' -f2- \
        | while read -r img; do
            swww img -t random --transition-fps $FPS --transition-step $STEP -o "$2" "$img"
            sleep $INTERVAL
        done
done

Environment:

  • OS: NixOS 24.11 (Vicuna) x86_64
  • SWWW Version: swww 0.9.5-masterV3
  • WM: Hyprland 0.45.2 (Wayland)
  • AMD64 Ryzen CPU + Discrete AMD graphics
  • Display: 2560x1440 (Landscape)
  • Display: 1920x1080 (Portrait)
@LGFae
Copy link
Owner

LGFae commented Apr 13, 2025

Thank God, someone who tests on latest master 😅 . Try applying #410, and see if it fixes it. There was a memory leak we have fixed in #410. That's probably what's causing this.


Ah, my bad, PR #410 should actually fix #412, not this. Since you are the one who opened both issues I confused them a bit.

@i686-underflow
Copy link
Author

Haha, not a problem at all! That's what it sounded like to me as well 😅

I'll apply and report back on #412!

@Astyyyyy
Copy link

Astyyyyy commented May 11, 2025

Thank God, someone who tests on latest master 😅 . Try applying #410, and see if it fixes it. There was a memory leak we have fixed in #410. That's probably what's causing this.

Ah, my bad, PR #410 should actually fix #412, not this. Since you are the one who opened both issues I confused them a bit.

PR #410 seems to have fixed a crashing issue i was having (guessing its same one as @i686-underflow ), could get it to trigger within 10-15s by just spamming different wallpapers a lot, but now not crashing at all 👍

i do get 263368ms [ERROR] We failed to find wayland buffer with id: 8. This should be impossible. 263368ms [ERROR] We failed to find wayland buffer with id: 14. This should be impossible. sometimes but doesnt seem to be causing any immediate issues

EDIT
oh just realised i commented this on wrong issue meant to be for #412

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants