You are not logged in.
Hi everybody!
I set up my xfce background as an image list that is supposed to change every 15 minutes. My background changes once, but not again. Has anybody else seen this?
Offline
Haven’t tried it; I use my own script to change backgrounds . Much more practical.
Something like:
#!/bin/bash
d=~/images/wallpapers
cd $d
list=($(find . -maxdepth 1 -type f | shuf))
index=0
while true; do
pic=${list[$index]}
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s $d/$pic
sleep 900
index=$((index+1))
if (( index == ${#list[*]} )); then
index=0
fi
done
There’s a small problem with that script: file names with spaces don’t work.
(The full version of my script actually selects pictures based on their brightness, too, which is the main reason why I wrote it.)
Offline
You might want to try 'xfdesktop --reload' after you set the background.
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
The regular method works for me. Are xfconf and xfsettingsd running?
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline
ConnorBehan: xfconfd and xfsettingsd are both running:
bjschuma 1897 0.0 0.0 41188 2664 ? S 08:26 0:00 /usr/lib/xfce4/xfconf/xfconfd
bjschuma 2052 0.0 0.0 151892 6780 ? Ss 08:27 0:00 xfsettingsd
R00KIE: It looks like `xfdesktop --reload` will walk through my image list, so worst case I'll run it in a cron job.
stqn: Thanks for the script, I may play around with it too. At a quick glance, would your xfconf-query line handle spaces better if you put "$d/$pic" in quotes?
Thanks for the replies!
Offline
The full version of my script actually selects pictures based on their brightness, too, which is the main reason why I wrote it.
Very interesting idea
Can you elaborate a little?
Offline
Very interesting idea
Can you elaborate a little?
would your xfconf-query line handle spaces better if you put "$d/$pic" in quotes?
You’re right, however I had another problem with the “identify” call in the full version of the script… (See link above if you’re interested.)
Last edited by stqn (2012-05-04 17:18:59)
Offline