LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices



Reply
 
Search this Thread
Old 06-25-2014, 05:10 PM   #1
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Rep: Reputation: 1
Rotate backgrounds


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

Thanks.
 
Old 06-25-2014, 09:12 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,243

Rep: Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557
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.
 
Old 06-25-2014, 11:02 PM   #3
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Original Poster
Rep: Reputation: 1
fbsetbg -a -R ~/usr/share/backgrounds

is giving me "Invalid directory" ??
 
Old 06-26-2014, 01:46 AM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,899

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
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.
 
Old 06-26-2014, 04:03 PM   #5
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Original Poster
Rep: Reputation: 1
rwall works great.

http://murga-linux.com/puppy/viewtopic.php?t=37561
 
Old 06-26-2014, 06:53 PM   #6
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Original Poster
Rep: Reputation: 1
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
 
Old 06-26-2014, 08:41 PM   #7
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,243

Rep: Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557Reputation: 1557
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

Last edited by frankbell; 06-26-2014 at 08:42 PM.
 
Old 06-28-2014, 11:42 AM   #8
Fixit7
Member
 
Registered: Mar 2014
Posts: 314

Original Poster
Rep: Reputation: 1
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log rotate not rotate newFreeBSD Linux - Server 13 09-12-2013 09:59 PM
Backgrounds helenawahlberg Linux - Newbie 3 10-24-2010 04:18 PM
X and desktop backgrounds garymax Slackware 5 08-15-2009 10:52 PM
Rotate display -- Option "Rotate" "CCW" Brad.Scalio@noaa.gov Linux - General 0 01-27-2009 06:32 AM
Backgrounds and WindowMaker PapaNoHair Linux - General 1 07-19-2003 09:19 AM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration