Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-04-2006, 04:53 PM
|
#1
|
Member
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146
Rep:
|
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 ...
|
|
|
09-04-2006, 05:01 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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.
|
|
|
09-04-2006, 05:19 PM
|
#3
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300
Rep:
|
fbsetbg ~/.fluxbox/backgrounds/`cat ~/.fluxbox/lastbg` &
Seems like a complicated way of doing fbsetbg -l
|
|
|
09-04-2006, 05:31 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
good call I didn't know about that -l option
Fixing...
Last edited by dive; 09-04-2006 at 05:33 PM.
|
|
|
09-04-2006, 05:39 PM
|
#5
|
Member
Registered: Jul 2005
Location: Iowa
Distribution: Slackware
Posts: 180
Rep:
|
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.
|
|
|
09-04-2006, 05:43 PM
|
#6
|
Member
Registered: Jan 2006
Location: Santa Cruz, CA
Distribution: Slack 10.2 and 11.0
Posts: 102
Rep:
|
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.
|
|
|
09-04-2006, 06:14 PM
|
#7
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
Well you learn something new etc...
|
|
|
09-04-2006, 06:19 PM
|
#8
|
Member
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146
Original Poster
Rep:
|
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 ...
|
|
|
09-07-2006, 11:51 AM
|
#9
|
Member
Registered: Dec 2005
Distribution: Slackware-13
Posts: 146
Original Poster
Rep:
|
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 ...
|
|
|
All times are GMT -5. The time now is 07:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|