Simple Random Wallpaper Changer

Forums for the Fluxbox Edition
Forum rules
Before you post please read this

Simple Random Wallpaper Changer

Postby Locrian on Mon May 18, 2009 2:40 am

Ok! I've been leeching of this forum for quite a bit. So I think I can finally give something back to the community!

After a lot of messing around i found out that if you run the command:
Code: Select all
fbsetbg -r /path to wallpaper folder

It will randomly choose a wallpaper from the folder and make it your background.

There's variables you can add for scaled, centered, titled, etc to get this just type in a terminal:
Code: Select all
fbsetbg -h


So all you need to do is run the command and it will change your background.

I found two simple ways of running the command automatically at a certain interval:
1. Using Ktimer (its a simple countdown app that will run a command after it counts down and it has the loop option)
2. Using Conky:
add this some where in the TEXT area of your .conkyrc
Code: Select all
${execi 60 fbsetbg -r  /path to wallpaper folder -su}

the 60 is the amount of second till it runs the command again.
User avatar
Locrian
Level 2
Level 2
 
Posts: 77
Joined: Mon Oct 15, 2007 4:42 pm

Linux Mint is funded by ads and donations.
 

Re: Simple Random Wallpaper Changer

Postby Locrian on Thu May 28, 2009 10:11 pm

Sorry for the double post but i figured out another handy thing.

If you open thunar and go to
Edit/Configure Custom Actions

then make a new action, i called it Set As Wallpaper, then i used the command
Code: Select all
fbsetbg %f

the %f adds the full path of the file you right clicked on so another thing you could do is add the variable for centered, titled or etc before the %f, if not fbsetbg will go to default which is fullscreen

and make sure you select Image File under Appearance Condition

then when you right click on an image file you can hit "Set As Wallpaper" instead of having to do it on command line or other way.
User avatar
Locrian
Level 2
Level 2
 
Posts: 77
Joined: Mon Oct 15, 2007 4:42 pm

Re: Simple Random Wallpaper Changer

Postby tawan on Mon Jun 01, 2009 12:34 pm

Locrian wrote:Simple Random Wallpaper Changer.

nice. A lot simpler than the one I found before :)
User avatar
tawan
Level 4
Level 4
 
Posts: 405
Joined: Thu Apr 03, 2008 2:45 am


Return to Fluxbox

Who is online

Users browsing this forum: No registered users and 2 guests