Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-08-12 03:22:28

graysky
Member
Registered: 2011-08-14
Posts: 15

Change xfce4 wallpaper in order from a list

What what ever reason, the built-in functionality to change desktop wallpaper from a list does not work for me.  My workaround has been to have a cronjob execute the following, but it has the nasty habit of repeating wallpapers.  I want to have a my desktop wallpaper change at a regular interval and simply go down a list in order.  Thankful for advice.

$ crontab -l
#     *     *   *    *        command to be executed
#-     -     -   -    -
#|     |     |   |    |
#|     |     |   |    +----- day of week (0 - 6) (Sunday=0)
#|     |     |   +------- month (1 - 12)
#|     |     +--------- day of month (1 - 31)
#|     +----------- hour (0 - 23)
#+------------- min (0 - 59)
MAILTO=""

*/20 * * * *  [[ ! -z $(pidof xfdesktop) ]] && DISPLAY=:0.0 /usr/bin/xfdesktop --reload

Offline

#2 2012-08-12 09:05:09

Pindakoe
Member
From: NL
Registered: 2003-11-26
Posts: 110

Re: Change xfce4 wallpaper in order from a list

I think the issue is that xfdesktop will always take a random item from the list defined in the settings. A work-around could be:

  • construct your own list (fot instance using find)

  • Set xfdesktop to display a dummy wallpaper, say dummy.jpg. Don't set xfdesktop to use a list

  • Write a script that at given intervals copies the next file from your list over dummy.jpg and then reloads it (xfdesktop --reload)

Offline

#3 2012-08-12 13:00:07

graysky
Member
Registered: 2011-08-14
Posts: 15

Re: Change xfce4 wallpaper in order from a list

Good idea, Pindakoe.  Seems like this should be a native feature though...

Offline

#4 2012-08-14 03:02:41

Sideburns
Member
From: Camarillo, CA
Registered: 2011-03-30
Posts: 280
Website

Re: Change xfce4 wallpaper in order from a list

Or, of course, you could just install and use wallpapoz.


Registered Linux user #470359
Permanently recovered BOFH
Any advice in this post is worth exactly what you paid for it.

Offline

Board footer

Powered by FluxBB