You are not logged in.

#1 2012-05-03 12:06:18

bjschuma
Member
From: Ann Arbor
Registered: 2009-03-10
Posts: 15

XFCE 4.10 background not changing

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

#2 2012-05-03 13:25:45

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: XFCE 4.10 background not changing

Haven’t tried it; I use my own script to change backgrounds smile. 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

#3 2012-05-03 17:39:33

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: XFCE 4.10 background not changing

You might want to try 'xfdesktop --reload' after you set the background.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2012-05-03 21:25:34

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: XFCE 4.10 background not changing

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

#5 2012-05-03 23:56:20

bjschuma
Member
From: Ann Arbor
Registered: 2009-03-10
Posts: 15

Re: XFCE 4.10 background not changing

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

#6 2012-05-04 11:24:59

daneel971
Member
Registered: 2008-03-28
Posts: 197

Re: XFCE 4.10 background not changing

stqn wrote:

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 smile
Can you elaborate a little?

Offline

#7 2012-05-04 17:18:22

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: XFCE 4.10 background not changing

daneel971 wrote:

Very interesting idea smile
Can you elaborate a little?

There you go wink.

bjschuma wrote:

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

Board footer

Powered by FluxBB