LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2004, 04:16 PM   #1
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Rep: Reputation: 15
fluxbox


i want to know if one can have diffrent wallpapers in fluxbox like u have in KDE for example ??

or even random ones ??

i only have fluxbox on my distro (my choice, don't want KDE or Gnome)

thanx
 
Old 04-19-2004, 04:33 PM   #2
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Re: fluxbox

Add this to "~/.fluxbox/init":

Quote:
session.screen0.rootCommand: bsetbg -f backgroundimage.ext
 
Old 04-19-2004, 04:40 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
To have a random image put the following in a file and save it as chooser.pl
Code:
#!/usr/bin/perl

@filenames = `ls ./images/*.jpg`;

$size = $#filenames;
$random = rand($size);

print STDOUT $filenames[$random]."\n";

change ./images/*.jpg to point to a directory where you have images stored (but keep the *.jpg bit so it only searches for image files with a .jpg extension)

make it executable by doing
Code:
chmod +x chooser.pl
and then in the ~/.fluxbox/init file change the following line so it reads as follows:
Code:
bsetbg -f `/home/sab300/chooser.pl`
Those are backticks. not apostrophes around /home/sab300 etc....obviously change that line to point to where you stored the chooser.pl file.
 
Old 04-19-2004, 04:45 PM   #4
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Original Poster
Rep: Reputation: 15
rootCommand

sorry for being so slow

but will this command do ??

allow me to have diff background on my desktops ??

thanx for the reply

 
Old 04-19-2004, 04:48 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
[double post - has anyone considered setting this forum up so users can delete their own posts? Might make life easier...]

Last edited by Komakino; 04-19-2004 at 04:50 PM.
 
Old 04-19-2004, 04:49 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
If all you want to do is have an image as your fb background then follow what the first guy said, replacing backgroundimage.ext with the image you want as wallpaper.
There's a hidden folder in your home directory called .fluxbox (hidden files start with a . ) and inside that is a file called init which contains a line
Code:
session.screen0.rootCommand:
to make that set the image, change it to:
Code:
session.screen0.rootCommand: bsetbg -f image.jpg
where image.jpg is your wallpaper. bsetbg is a script to put an image as wallpaper.

If you want a random image then follow the advice I posted earlier.
 
  


Reply



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
Fluxbox: Enabling KDE using package install of fluxbox underline Linux - Software 0 12-27-2003 10:11 AM
fluxbox??? yenonn Linux - Newbie 3 10-02-2003 10:33 AM
FLuxbox help please!!! Devboy Linux - Newbie 9 07-31-2003 08:02 PM
Fluxbox alitrix Linux - Software 1 06-29-2003 12:36 PM
Fluxbox Astro44 Linux - Newbie 4 04-09-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 PM.

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