Open Lightgaming opened 7 months ago
Hey, have you configured both of your monitors in monitors.conf
?
also please check if each port is shown in swww cache ~/.cache/swww/
Hi @Lightgaming dunno yet on how to trigger swww for caching a monitor wallpaper but you can add this line
exec-once = Hyprdots run events
this watches hyprland events, when events like plugging of monitor
occurs it automatically loads again the wallpaper
this is the command used to reload the wallpaper
swww img "$(awk -v home=$HOME -F'|' '$1 == 1 {gsub("~", home, $4); print $4}' "$HOME"/.config/hypr/theme.ctl)"
Hey @prasanthrangan
Yes I have configured them in my monitors.conf and they are also in ~/.cache/swww/
@kRHYME7 exec-once = Hyprdots run events
doesn't work for me. When I try to run the sww command you posted I get this error Error: "Socket file not found. Are you sure swww-daemon is running?"
So I guess swww is crashing when I connect/disconnect a monitor. Because when I do swww init
the wallpaper is fixed again.
*Tested: if swww crashes it won't display wallpaper to any monitor.
I cannot reproduce the problem but I will try to fix the Hyprdots run events
. This will rerun swww if monitor is plugged in.
Try this version v0.2.0.17.24011902 of Hyprdots-ctl (update it using the AUR)
You can test the command by executing Hyprdots run events
then try to plug and unplug your monitor.
Here's how to disable the default wallpaper (might conflict? )
disable_hyprland_logo = true
force_hypr_chan = false
======================================================================================
(Did not read again the issue so yeah here is a solution to a non-existent problem)
I have a proposition, this will make all wallpaper identical for all saved monitors. Now if you change wallpapers it will also rewrite the other cached monitors.
How this is done :
Edit ~/.config/hypr/scripts/swwwallpaper.sh
and at the bottom add this function
#? This is a quick script and Tittu might have a way to implement this better, for now, this will do.
# Get the changed file in the ~/.cache/swww/ directory
changed_file=$(ls -Art ~/.cache/swww/* | tail -n 1)
# Loop over each file in the ~/.cache/swww/ directory
for swwwFile in ~/.cache/swww/*; do
# Copy the contents of the oldest file to the current file
cp -f "${changed_file}" "${swwwFile}"
done
@Lightgaming Hello, can you confirm if changing monitors make swww crash? 🙏
Yes, the problem still exists, currently in version 0.9.1. Visit https://github.com/LGFae/swww/issues/196
Hey, I just installed Hyprdots and I have a slight problem when mirroring my Laptop Screen.
I set my monitor config to this
monitor = ,highres,auto,1,mirror,HDMI-A-1
And now when I plug in another Monitor, it displays the default hyprland Wallpaper and not the swww wallpaper. When I use the SUPER+CTRL+W Wallpaper and select it again, it fixes it, but I don't want to do that everytime.
Any ideas what the problem could be?