LinuxQuestions.org
Review your favorite Linux distribution.
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, 04:10 PM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
Rotate backgrounds


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

Thanks.
 
Old 06-25-2014, 08:12 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
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, 10:02 PM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

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

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

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
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, 03:03 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
rwall works great.

http://murga-linux.com/puppy/viewtopic.php?t=37561
 
Old 06-26-2014, 05:53 PM   #6
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
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, 07:41 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
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 07:42 PM.
 
Old 06-28-2014, 10:42 AM   #8
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
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 08:59 PM
Backgrounds helenawahlberg Linux - Newbie 3 10-24-2010 03:18 PM
X and desktop backgrounds garymax Slackware 5 08-15-2009 09:52 PM
Rotate display -- Option "Rotate" "CCW" Brad.Scalio@noaa.gov Linux - General 0 01-27-2009 05:32 AM
Backgrounds and WindowMaker PapaNoHair Linux - General 1 07-19-2003 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

All times are GMT -5. The time now is 04:30 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
Open Source Consulting | Domain Registration