hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.07k stars 881 forks source link

hyprctl/hyprpaper: monitor wildcard not working #2990

Closed ppenguin closed 2 months ago

ppenguin commented 1 year ago

Hyprland Version

main 4986d74

Bug or Regression?

Bug

Description

When hyprpaper is configured to preload one image like so:

# hyprpaper.conf
preload = ~/.cache/styli.sh/wallpaper.jpg
wallpaper = ,~/.cache/styli.sh/wallpaper.jpg

and two monitors are connected, starting hyprpaper shows the image on both monitors.

However, when the image is replaced and reloaded with

hyprctl hyprpaper unload "~/.cache/styli.sh/wallpaper.jpg" && hyprctl hyprpaper preload "~/.cache/styli.sh/wallpaper.jpg"

the expectation is that executing

hyprctl hyprpaper wallpaper ',~/.cache/styli.sh/wallpaper.jpg'

shows the new image on all monitors.

This is not the case, the only way to refresh the image on both monitors is to explicitly do

hyprctl hyprpaper wallpaper 'DP-1,~/.cache/styli.sh/wallpaper.jpg'
hyprctl hyprpaper wallpaper 'DP-2,~/.cache/styli.sh/wallpaper.jpg'

How to reproduce

see above

Crash reports, logs, images, videos

No response

muni-corn commented 1 year ago

i have this issue too. hyprpaper is clearly receiving the request for a wallpaper, but isn't switching the images.

these are the logs i have:

[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: preload /nix/store/ccrgq3548730k6nirvfzahzjb58wrh9b-muse-matchpal-wallpapers/SaltLake.jpg
[LOG] Preloaded target /nix/store/ccrgq3548730k6nirvfzahzjb58wrh9b-muse-matchpal-wallpapers/SaltLake.jpg in 224.08ms -> Pixel size: [3415, 1920]
[LOG] Buffer created for target /nix/store/ccrgq3548730k6nirvfzahzjb58wrh9b-muse-matchpal-wallpapers/SaltLake.jpg, Shared Memory usage: 8.3MB
[LOG] Total SM usage for all buffers: 41.5MB
[LOG] Accepted incoming socket connection request on fd 5
[LOG] Received a request: wallpaper ,/nix/store/ccrgq3548730k6nirvfzahzjb58wrh9b-muse-matchpal-wallpapers/SaltLake.jpg
izmyname commented 2 months ago

Imho, should be moved to hyprpaper git repo since it's a hyprpaper bug (I guess).

vaxerski commented 2 months ago

IIRC this was even fixed