LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Rotate backgrounds (https://www.linuxquestions.org/questions/puppy-71/rotate-backgrounds-4175509171/)

Fixit7 06-25-2014 04:10 PM

Rotate backgrounds
 
I am looking for something that would rotate backgrounds on each bootup. Preferably adjustable time interval.

Thanks.

frankbell 06-25-2014 08:12 PM

What desktop environment/window manager are you using?

If you are using a window manager, it's fairly easy. In Fluxbox, I use the fbsetbg command to change them every 15 minutes. I adopted this from an old FVWM script and call it when starting Fluxbox. (I change the wallpaper directory in December.)

Code:

#!/bin/sh

while true; do
        fbsetbg -a -R ~/homebackups/frankbell/wallpapers
#        fbsetbg -a -R ~/files/Christmas
        sleep 15m
done

You could also use feh and, with some window managers, wmsetbg (fbsetbg is based on it).

I haven't tried to do this with desktop environments; it's likely more difficult because they want to control wallpaper themselves.

Fixit7 06-25-2014 10:02 PM

fbsetbg -a -R ~/usr/share/backgrounds

is giving me "Invalid directory" ??

k3lt01 06-26-2014 12:46 AM

If you are using Gnome or MATE (and from what I been told it works with KDE as well with some playing around) then take a look at the link "My Tutorials" in my signature.

Fixit7 06-26-2014 03:03 PM

rwall works great.

http://murga-linux.com/puppy/viewtopic.php?t=37561

Fixit7 06-26-2014 05:53 PM

Shorter intervals work, but this does not.

Is there a limit as to the size of the integer ?

# Important: maintain quoting in your variable data
# You can save old data with # comments as in examples below
#JPGDIR="/initrd/mnt/dev_save/jpg_in" # don't use trailing backslashes
#INTERVAL="5000" # in seconds, integers only are allowed

JPGDIR="/usr/share/backgrounds" # don't use trailing backslashes
INTERVAL="5184000" # in seconds, integers only are allowed 5184000 should be 24 hours

frankbell 06-26-2014 07:41 PM

Lose the tilde and it should work if you're running Fluxbox. I haven't tried it with any other window managers. If it doesn't work, dig deeper into /usr/share/backgrounds--there might be subdirectories.

Code:

fbsetbg -a -R /usr/share/backgrounds

Fixit7 06-28-2014 10:42 AM

I went with this. No limit as to how big INT can be.

Quote:

The slideshow that comes with Slacko 5.6 is not good enough? I don't know if it is documented and for sure the interface is poor, but it works.

To cycle through all images in /usr/share/backgrounds
Code:
/usr/local/apps/Wallpaper/slideshow -start /usr/share/backgrounds/default.jpg

To stop:
Code:
/usr/local/apps/Wallpaper/slideshow -stop

To change the default 5 sec interval edit /root/.config/wallpaper/preferences and change INT="5" to a higher value.


All times are GMT -5. The time now is 03:02 PM.