You are not logged in.

#1 2012-11-12 00:09:35

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

backdrop randomizer - rotate wallpaper without repeats!

What is it
Backdrop-randomizer is a companion for xfdesktop which randomly cycles through wallpapers without repeating them until all have been displayed once. I wrote it specifically for xfce4 users displaying desktop pics with xfdesktop. If this is you, read on.

Rationale and Gap
Xfdesktop has a gap currently: it does not keep track of which images in a list are displayed as "backdrops" to the DE.  The result is that some images in a list get displayed frequently while others are rarely displayed.  A more robust implementation of the random background feature should randomly display an image in the list and _not_ repeat it until all list members have been displayed at least once.  This bothered me so much that I opened a bug/enhancement with upstream.

...backdrop-randomizer fills this gap smile

How it works
Each time you or cron calls the script, it will randomly select a picture from your list to display. It will then remove the selection from the list so as not to repeat the same pic twice per cycle. When backdrop-randomizer sees you have only one pic left in your list, it regenerates the list anew and continues to cycle. The net effect is an endless rotation of your pics without a repeat.

Links
AUR: https://aur.archlinux.org/packages/backdrop-randomizer
Github: https://github.com/graysky2/backdrop-randomizer

Feedback is welcomed!

Last edited by graysky (2012-12-01 23:48:16)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-11-12 21:53:10

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: backdrop randomizer - rotate wallpaper without repeats!

Thank you! I could never get xfdesktop to work properly with random pics!
Where is the manpage?

Offline

#3 2012-11-13 16:29:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: backdrop randomizer - rotate wallpaper without repeats!

maggie wrote:

Thank you! I could never get xfdesktop to work properly with random pics!
Where is the manpage?

Glad you like it.  Obvious question for you: are you running the latest version?  I only yesterday wrote a man page which is included in the v2.10-1 release.  Check the AUR and let me know (man page works for me).

Note that I try to always comment when I update one of my packages in the AUR so check there to see what is new.  Example:

Bump to v2.10-1

Changelog: Total re-write of code and added manpage.

Last edited by graysky (2012-11-13 16:30:06)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-11-18 19:11:00

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: backdrop randomizer - rotate wallpaper without repeats!

Thank you. My version was old. I can't believe that other people have not posted here yet. This is a pretty significant program I think.

Offline

#5 2012-12-01 23:48:55

maggie
Member
Registered: 2011-02-12
Posts: 255

Re: backdrop randomizer - rotate wallpaper without repeats!

I see you added colors to this too. All of your scripts are colorful now!

Offline

#6 2013-03-14 06:49:13

farmerdave
Member
Registered: 2011-11-23
Posts: 114

Re: backdrop randomizer - rotate wallpaper without repeats!

Hi, I think this is a great little tool. Just a quick note, when I installed it there was an output in the terminal with a set of instructions. It gave the cronjob entry as

*/20 * * * *  /usr/bin/backdrop-randomizer

whereas the man page has the 'R' at the end. Might I suggest this gets added to the installation output.

Offline

#7 2015-03-09 22:06:07

0strodamus
Member
Registered: 2014-01-22
Posts: 92

Re: backdrop randomizer - rotate wallpaper without repeats!

Anyone else having issues using backdrop-randomizer after the xfdesktop-4.12.0-1 update?


archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

Offline

#8 2015-03-09 22:08:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: backdrop randomizer - rotate wallpaper without repeats!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2015-03-10 21:46:02

0strodamus
Member
Registered: 2014-01-22
Posts: 92

Re: backdrop randomizer - rotate wallpaper without repeats!

Thanks. Good to know I'm not doing something stupid here. smile


archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

Offline

#10 2015-03-10 21:52:58

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: backdrop randomizer - rotate wallpaper without repeats!

Version 4.12 of xfdesktop has a randomize option built in but it doesn't account for repeats nor does it NOT rotate if the screensaver is active.  Two of the key features I wrote into bdr.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#11 2015-03-10 22:39:12

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: backdrop randomizer - rotate wallpaper without repeats!

I believe as a workaround you can use the xfce sequential rotation with the background and a symlink to the background. Then change the imagefile and force xfdesktop to cycle.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 2015-03-16 19:09:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: backdrop randomizer - rotate wallpaper without repeats!

OK!  Eric has fixed this upstream: https://bugzilla.xfce.org/show_bug.cgi?id=11620

Here is a PKGBUILD you may use that patches xfdesktop per his code.  Use it and bdr will "magically" function again: https://gist.github.com/graysky2/d98933bbf3fb03e461da


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2015-03-17 00:26:38

0strodamus
Member
Registered: 2014-01-22
Posts: 92

Re: backdrop randomizer - rotate wallpaper without repeats!

Nice! I can confirm that bdr is working here now. Thanks for bdr and for the updated xfdesktop PKGBUILD!


archlinux | OpenRC | TOMOYO Linux | Xfce

"In his house at R'lyeh dead Cthulhu waits dreaming."

Offline

Board footer

Powered by FluxBB