swww icon indicating copy to clipboard operation
swww copied to clipboard

Wallpaper wont change when an app is in fullscreen

Open jjcortes22 opened this issue 11 months ago • 1 comments

Greetings,

I have this script in my hyprland config file:

#!/bin/sh
cd ~/Wallpapers/.
while true
do
   swww-daemon & 
   file="$(ls *.* | sort -R | tail -1)"
   swww img "$file" --transition-type random  --transition-fps 165
   sleep  1m
done

Whenever I go full screen with an app, like a presentation, a game, youtube video, Chrome remote desktop.. the wallpaper stops changing, As soon as I either get out of full screen or switch to a workspace away from the fullscreen app, all the wallpapers "stuck" will cycle very quickly.

The following video demonstrates the problem, I have been playing Stalker 2 for a few hours, I switched from workspace 4 where the game is, to workspace 6, when doing that all the wallpapers in queue cycle quickly:

https://www.twitch.tv/cheeki________breeki/clip/SplendidFancyPoxSmoocherZ-d1XSCUmkqs2H9Dtx

Eventually I go back to workspace 4 and continue with the game.

Thanks!

jjcortes22 avatar Jan 15 '25 18:01 jjcortes22

You're launching a new swww-daemon instance every minute :-) move it out of the loop:

#!/bin/sh
cd ~/Wallpapers/.
swww-daemon & 
while true
do
   file="$(ls *.* | sort -R | tail -1)"
   swww img "$file" --transition-type random  --transition-fps 165
   sleep  1m
done

theridane avatar Jan 21 '25 13:01 theridane

This is actually a duplicate of the newer #430. I am going to keep track of this over there for now.

LGFae avatar May 30 '25 14:05 LGFae

You're launching a new swww-daemon instance every minute :-) move it out of the loop:

#!/bin/sh
cd ~/Wallpapers/.
swww-daemon & 
while true
do
   file="$(ls *.* | sort -R | tail -1)"
   swww img "$file" --transition-type random  --transition-fps 165
   sleep  1m
done

Have you ever tried to running "swww-daemon & " if swww is already running?. I doubt you have.

jjcortes22 avatar Jun 01 '25 05:06 jjcortes22