Rotate backgrounds
I am looking for something that would rotate backgrounds on each bootup. Preferably adjustable time interval.
Thanks. |
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 I haven't tried to do this with desktop environments; it's likely more difficult because they want to control wallpaper themselves. |
fbsetbg -a -R ~/usr/share/backgrounds
is giving me "Invalid directory" ?? |
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.
|
|
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 |
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 |
I went with this. No limit as to how big INT can be.
Quote:
|
All times are GMT -5. The time now is 03:02 PM. |