I ran this as a test to check if feh blocks util the background changes then exits/returns, turns out it doesn't (because only pic2 gets displayed as background, pic1 flashes for milliseconds sometimes before).
feh --bg-scale pic1.jpg && feh --bg-scale pic2.jpeg
is there an (x11?) event for background changed that can be triggered in bash? that can be a solution.
my goal is to show each pic exactly n seconds (using the sleep command) not more or less, which is currently dependent on how much time it takes for the pic to get scaled, set AND displayed as background.
my shell script:
#!/bin/sh ~/.scripts/helpers/killall-other-script-instances while true do for f in ~/Pictures/wallpapers/show/*; do feh --bg-scale $f sleep 3 done done