LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2006, 04:53 PM   #1
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Rep: Reputation: 15
Fluxbox tweaking and such???


Hello all,
I'm running Slackware-Current (11-rc2), with Fluxbox-1.0rc2 and all is well . However, I'm doing a little bit of tweaking to my desktop and I was wondering if a couple of things were possible...

* First of all, I was wondering if there is a way to change your wallpaper on the fly like from the right click menu???
In other words right now I've got all of my wallpapers saved under "~/.fluxbox/backgrounds". I also have my wallpaper setter set to look in my "~/.fluxbox/init" file under "~/.fluxbox/overlay" as suggested in the latest "How-To's".
I would like to be able to look in my menu and pick from a backgrounds section, so that I can switch backgrounds on the fly sort of like the styles directory.

As always, any ideas or suggestions are always welcome, thanx ...
 
Old 09-04-2006, 05:01 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I don't think it's possible with right-clk menu. But what I do: Download and install xdialog and then put a link to this script in menu:

Code:
 #!/bin/bash
 cd ~/.fluxbox/backgrounds

 while (true)
 do
 let n=1
 clear
 for file in `ls`
 do
 bg[$n]=$file
 filelist=$filelist${bg[n]}" "
 let n=$n+1
 done
 RESULTS=`xdialog --stdout --combobox "Set Background" 10 50 $filelist`

 case $? in
     0) fbsetbg $RESULTS
     ;;
     1) exit 0
     ;;
     255) exit 0
     ;;
 esac
 done
Then also put this in your fluxbox/startup file:

fbsetbg -l &

This will apply your last background on startup.

I've been using this for a few weeks now. When you hit the menu item the script will call up a dialog box listing all your backgrounds, choose one and press ok. Then prog runs in a loop until your press cancel.

Last edited by dive; 09-04-2006 at 05:33 PM.
 
Old 09-04-2006, 05:19 PM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
fbsetbg ~/.fluxbox/backgrounds/`cat ~/.fluxbox/lastbg` &

Seems like a complicated way of doing fbsetbg -l
 
Old 09-04-2006, 05:31 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
good call I didn't know about that -l option

Fixing...

Last edited by dive; 09-04-2006 at 05:33 PM.
 
Old 09-04-2006, 05:39 PM   #5
rigelan
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180

Rep: Reputation: 19
In the file .fluxbox/menu, I have this set up and it works wonderfully:

[submenu] (Wallpaper)
[wallpapers] (path to folder) {fbsetbg -f}
[end]

This creates a menu item that when you roll your mouse over it, opens a list of all the image files in that folder. When you click on one, it makes that the background.

And to keep that wallpaper permanent for the next time I logged in, I used the rootcommand in .fluxbox/init

session.screen0.rootCommand: fbsetbg -l

Meaning, set the background as the last wallpaper you used, which should have been saved in .fluxbox/lastwallpaper

Last edited by rigelan; 09-04-2006 at 05:40 PM.
 
Old 09-04-2006, 05:43 PM   #6
ryanoa
Member
 
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102

Rep: Reputation: 15
EDIT: rigelan beat me to it!!

There is a way to do this in your menu!

My menu config looks like this :
Code:
[submenu] (my backgrounds)
    [wallpapers] (~/.fluxbox/backgrounds) {fbsetbg -f}
[end]
Just put your images in that backgrounds directory and your good to go. You should also add this line to your ~/.fluxbox/init file:
Code:
session.screen0.rootCommand:  fbsetbg -l
That will set your bg to the last one you chose each time you start fluxbox

Last edited by ryanoa; 09-04-2006 at 05:44 PM.
 
Old 09-04-2006, 06:14 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Well you learn something new etc...
 
Old 09-04-2006, 06:19 PM   #8
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Okay, so by going this route Ryanoa, I could comment out the whole "~/.fluxbox/overlay" or "new way" of doing this in favor for what you guys are suggesting???
Sweet, I'll give it a shot and let you know how it works out ...
 
Old 09-07-2006, 11:51 AM   #9
Southpaw76
Member
 
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146

Original Poster
Rep: Reputation: 15
Sorry it too me so long to get back...
However, I'm happy to report that your suggestion rigelan hit the nail on the head, everything works beautifully, thanx guys for all your help ...
 
  


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
tweaking less PingFloyd Linux - Desktop 1 08-30-2006 11:08 PM
Fluxbox error /usr/share/fluxbox/nls/en_GB/fluxbox.cat humbletech99 Debian 2 12-29-2005 11:16 AM
Help tweaking my fonts! calande Linux - General 5 10-26-2005 07:59 PM
um, Tweaking Thom_Redhat Linux - Software 13 06-17-2003 04:10 AM
some X tweaking zeky Linux - Software 3 12-23-2002 03:00 AM

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

All times are GMT -5. The time now is 07:31 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