0

Fluxbox: My new favorite window manager

Linux

I have traditionally used Gnome as my desktop environment of choice, (Ubuntu) with a sprinkling of KDE here and there. I personally enjoy Gnome and KDE equally, they are fantastic collections of software. But, recently I was struck with the desire to find something different.

 

THE QUEST FOR SOMETHING DIFFERENT

 The other day, I downloaded Enlightenment .

What is the Enlightenment project?

Enlightenment began as a window manager for X. Its design goal is to be as configurable as possible - in look AND in feel. Enlightenment's current design aim is to become a desktop shell. That means it will manage your application windows, being able to launch applications, and also manage your files.
My Impressions:

It was very nice to look at, but right off the bat when I changed the theme, it became unusable...like, I couldn't click on anything. Restarting X didn't fix it, rebooting didn't fix it. I had to find the .e directory that Enlightenment writes to store configuration data and delete it, then restart it again. Next thing I did was attempt to change the font. That threw some sort of ABORT error and that was the end of Enlightenment for AJ.


Don't Do It: Next up...Looking Glass 3D. The Sun Java desktop. Not that great, don't even bother.

 

Finally, here comes the Fluxbox

After a quick sudo apt-get install fluxbox, you will notice right away how much smaller this is than anything else so far.

After unpacking 4698kB of additional disk space will be used.

Do you want to continue [Y/n]?


Oh yes, yes I do want to continue.

What is Fluxbox

  • Fluxbox is a lightweight window manager for the X Windowing System.

  • Fluxbox provides configurable window decorations, a root menu to launch applications and a toolbar that shows the current workspace name, a set of application names and the current time. There is also a workspace menu which allows you to add or remove workspaces. The `slit' can be used to dock small applications, e.g. most of the bbtools can use slit.

  • Fluxbox can iconify windows to the toolbar, in addition to adding the window to the Icons submenu of the workspace menu. One click and they reappear. A double-click on the titlebar of the window will shade it, i.e. the window will disappear leaving only the titlebar visible.

  • Fluxbox uses its own graphics class to render its images on the fly. By using style files, you can determine in great detail how your desktop looks. Fluxbox styles are compatible with those of Blackbox 0.65 or earlier versions, so users migrating can still use their favourite themes.

  • Fluxbox supports the majority of the Extended Window Manager Hints (EWMH) specification, as well as numerous other Window Hinting standards. This allows all compliant window managers to provide a common interface to standard features used by applications and desktop utilities.


FLUXBOX IS DIFFERENT

One thing that you will notice is that once you boot into Fluxbox, is that it pretty much is up and running instantly once you have logged in. Username, Password, Done! This is a good sign.

Now, this stripped down window manager takes some getting used to. There is no desktop. You can't drag stuff to a desktop, you can't right click create shortcuts, etc. The most common thing about Fluxbox is that you have to hand write config choices to a file somewhere.

 

 

 

DESKTOP ICONS/SHORTCUTS

So in that fashion, there is a way to roll-your-own desktop icons using idesk (sudo apt-get install idesk). Lets say you want to create a desktop icon to launch gnome-terminal for example.

First, you need to create a folder under /home/yourname/ called .idesktop Now, under that new directory, /home/alynch/.idesktop we need to create a link.

vim ~/.idesktop/terminal.lnk

and write this to the file.

table Icon
Caption: Terminal
Command: gnome-terminal
Icon: /usr/share/pixmaps/gnome-terminal.png
end

 

Ok, so now you restart Fluxbox but still no icon? Thats because you need to start idesk when you start Fluxbox. Enter the “startup” file. (~/.fluxbox/startup)

I personally really like this startup file, it is simple and straightforward.

In order to start idesk on startup, look at the section of your startup file that has

#Applications you want to run with fluxbox and add idesk &

 

 

CHANGING YOUR WALLPAPER

 

There is no graphical interface for changing your wallpaper in fluxbox (that I know of at least). So there, again, is a place (a few actually) for you to write in the path to the image file you would like to use as your wallpaper. I choose to assign my wallpaper path at startup. You can add a line in your startup file like this

fbsetbg -f /home/alynch/Images/wallpaper/cooltuxnotxt5vq.jpg


You may or may not experience this, but I usually have trouble finding wallpapers to fit my resolution (1920x1200) so most wallpapers I have don't fill up the entire screen without a little help. (fbsetbg -f won't do it natively) so I installed a little program called
feh (sudo apt-get install feh). Now, my wallpapers fill the entire screen.


 

EDITING THE FLUX MENU

You could probably guess by now, what it takes to alter the fluxbox menu. Go check out the “stock” menu config at ~/.fluxbox/menu and see what your options are.


Here is some of my personal ~/.fluxbox/menu config file:

[submenu] (AJL Stuff)

[submenu] (Servers)

[submenu] (Apache Web Server)

[exec] (Start) {gksudo /usr/local/apache2/bin/apachectl start}

[exec] (Stop) {gksudo /usr/local/apache2/bin/apachectl stop}

[exec] (Restart) {gksudo /usr/local/apache2/bin/apachectl restart}

[end]

[submenu] (ColdFusion Server)

[exec] (Start) {gksudo /opt/jrun4/bin/jrun start cfusion}

[exec] (Stop) {gksudo /opt/jrun4/bin/jrun stop cfusion}

[exec] (Restart) {gksudo /opt/jrun4/bin/jrun restart cfusion}

[end]

[end]

[exec] (Eclipse) {/home/alynch/apps/eclipse/Eclipse3.2/eclipse}

[exec] (Data Studio) {/home/alynch/apps/datastudio/datastudio-bundled.sh}

[exec] (Filezilla 3) {/home/alynch/apps/FileZilla3/bin/filezilla}

[exec] (Swiftfox) {/opt/swiftfox/swiftfox}

[exec] (Vmware) {vmware}

[exec] (ktorrent) {ktorrent}

[exec] (Nautilus) {nautilus --no-desktop --browser}

[end]

 

 

OTHER COOL STUFF

 

You can see some cool system monitor stuff on my desktop screenshot, this was done using conky. Take some time to check out conky if you want a highly configurable monitor that is really lightweight.

Coming from Gnome, I became really dependent on the fantastic applet for managing my network connections (nm-applet). I added it, along with gnome-keyring, to my startup programs.

I really have gotten used to Nautilus as my filemanager, so in order to launch this app without loading a bunch of gnome stuff with it, you can do this: nautilus --no-desktop --browser


SUMMARY

I really am digging the fluxbox so far, it is different than Gnome or KDE and I think that is what is keeping fluxbox as my default GDM session for now.


tags:
Linux
Vaughn Tolle said:
 
Aaron, I've played with fluxbox a bit with my Ubuntu install. Enjoyed your discussion concerning it. Alas, I'm a bit too busy and too lazy right now to play with it, so am sticking with Gnome for the minute.
 
posted 773 days ago
Add Comment Reply to: this comment OR this thread
 
 
Thanks for the comment Vaughn. I almost didn't give it a chance, as fluxbox is just so stripped down right out of the "box" so to speak.

But after spending a little time making it my own, I am really glad I did. Gnome still has a special place in my list of GDM sessions, but I haven't logged in to Gnome since I made fluxbox my default session.
 
posted 773 days ago
Add Comment Reply to: this comment OR this thread
 
Vaughn Tolle said:
 
Aaron, just a question: had you looked at some of the other "lightweight" GDMs? XFCE, ICE (I think that's the name) come to mind from reading on the Ubuntu Forum. I'm sure there are more that I'm missing. I'm obviously "picking your brain" here.
 
posted 773 days ago
Add Comment Reply to: this comment OR this thread
 
 
I have tried XFCE and found it a little too much like Gnome, but just not as good ;). Didn't seem different enough to me to make me excited about it.

iceWM is a little bit lighter than fluxbox, and a whole lot crappier (in my 5 minutes of used that is). I didn't feel like the smaller footprint was worth the sacrifice.

I have installed openbox, and saw how extremely small that thing is, but haven't spent any time configging it. I might eventually check this out out... we'll see.

Another small one that I have seen reference to, is waimea. I am trying to talk some other linux-heads I know into trying it out and giving me a review, but so far they have been too attached to gnome. I may install waimea soon, as it only uses up about 1.9M of space!
 
posted 773 days ago
Add Comment Reply to: this comment OR this thread
 
Jim Priest said:
 
It's a shame Enlightenment isn't more stable - but I remember trying that a few YEARS ago and noticed it's still at the same version 17. Good ideas but it's taking a looong time :)

I'm been using Gnome forever but am looking forward to the next release of KDE. Fluxbox looks like too much work :)
 
posted 772 days ago
Add Comment Reply to: this comment OR this thread
 
 
Jim, I agree with you about Enlightenment. It seemed very promising at first.

As far as fluxbox taking too much work, its weird. I apt-get'ed it on my desktop and realized how much customization I had done to it (on the laptop).

Just in case you missed it, or are curious here is a screenshot of the laptop as of this afternoon.
http://aaronjlynch.com/blog/index.cfm/2007/5/23/Mo...
 
posted 771 days ago
Add Comment Reply to: this comment OR this thread
 
Ahmad said:
 
Hi,may be you can help me. I'm having a problem with Conky. when load linux it appear and then disappear after the icon and the wallpaper get loaded. Any idea.
Thanks.

 
posted 766 days ago
Add Comment Reply to: this comment OR this thread
 
 
Hi Ahmad, are you sure there are no exceptions in your Conky file (.conkyrc) ?

I had some weird stuff when I used a different Conky theme that was calling some commands that weren't available for my machine.
 
posted 765 days ago
Add Comment Reply to: this comment OR this thread
 
Ahmad said:
 
my conkyrc files is simple is as below:





double_buffer yes

minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0

border_margin 0
border_width 0
alignment top_right
gap_x 20
gap_y 65
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override

#########


#########

TEXT
${font Dungeon:style=Bold:pixelsize=10}
${color #696969}$sysname $kernel on $machine $color$font${time %A %d %B %Y} ${time %H:%M:%S}
${color #696969}Uptime :${color #2F4F4F} $uptime
${color #696969}CPU Usage:${color #2F4F4F} $cpu% ${color #000000}${cpubar}
${color #000000}${cpugraph 25 BC8F8F 8B4513}
${color #696969}RAM Usage:${color #2F4F4F} $mem/$memmax - $memperc% ${color #000000}${membar}
${color #696969}Swap Usage:${color #2F4F4F} $swap/$swapmax - $swapperc% ${color #000000}${swapbar}
${color #696969}Processes:${color #191970} $processes ${color 2F4F4F}Running:$color $running_processes
 
posted 765 days ago
Add Comment Reply to: this comment OR this thread
 
Garfeild said:
 
Hello!
I have question: what have you add to startup to load properly gnome-keyring?
 
posted 759 days ago
Add Comment Reply to: this comment OR this thread
 
 
Just add this to your .fluxbox/startup file

gnome-keyring-daemon &


You can then have it auto-unlock if you like http://ajlcom.instantspot.com/blog/index.cfm/2007/...
 
posted 759 days ago
Add Comment Reply to: this comment OR this thread
 
Ahmad said:
 
Ahmad, I just re-read your conkyrc. Are you sure that double-buffer is working for you? I had to set it to "no" on mine
 
posted 756 days ago
Add Comment Reply to: this comment OR this thread
 
Micah said:
 
What I do for having a gui for wallpaper selection is I use gqview. In gqview, you can create custom commands under the Editors tab of the preferences. I make one called "Fluxbox wallpaper" and then use "fbsetbg -a %f" as the custom command. When right-clicking on images, "in Fluxbox wallpaper..." will appear as an option in the Edit submenu.

Then I set gqview to open up to my wallpaper directory when it opens; under the General tab, check the "Change to folder" checkbox and then enter the correct path in the textbox or browse for it by clicking the "..." button. Then I set a hotkey in the ~/.fluxbox/keys file to open gqview.

And if you're interested, gqview can set the Gnome wallpaper via the custom command "gconftool-2 -t string -s /desktop/gnome/background/picture_filename %f"
 
posted 744 days ago
Add Comment Reply to: this comment OR this thread
 
Frederic said:
 
Wow really good information here, very good summary of things to do post-install but also what a very nice trick given by Micah for changing wallpapers. If you're a newbie and you're reading this, this is the best page to start! Thanks I'll try the "Micah's trick" now!
 
posted 728 days ago
Add Comment Reply to: this comment OR this thread
 
Fred Warren said:
 
Instead of idesk, you can use xtdesk. Found at http://garuda.newmail.ru/xtdesk_e.dhtml

One of the nice things about it is in addition to being able to left click on an icon to start a program. You can right click on an icon and it will bring up a popup menu of other programs you can run. I.E. You can have a firefox icon on your desk that will run firefox. But with a right click you can choose from Mozilla, Oprea, or Konqueror.

On newer systems it complains at compile time in a few places. You just have to delete :: For example

Boolean Desk::isMounted (char *mnt);

would need to be changed to

Boolean isMounted (char *mnt);

It is worth the effort to compile and configure it.
 
posted 628 days ago
Add Comment Reply to: this comment OR this thread
 
Xentalion said:
 
In case you're interested, I've written a program for changing Fluxbox backgrounds with a GUI.
It is here: https://sourceforge.net/projects/cwallpaper/
It's a frontend to fbsetbg, feh, etc.

in case you're interested :)
 
posted 611 days ago
Add Comment Reply to: this comment OR this thread
 
tony said:
 
Fluxbox ROCKS! My first exposure was on a DSL livecd, then I installed it in Ubuntu, and also tried out PCFluxboxOS.
Now, I have used it as the default wm for Linguas OS, too.
Light, fast...nice....
I was always a KDE man before that, and KDE has all kinds of lovely configurability and extra goodies, but, for crynig out loud, why do I have to have PDA tools running in the background just to have a desktop, when I don't even own a PDA? Know what I mean? KDE has gotten slower'n fatter'n Aunt Mildred...
Another lightning fast and extrememly light wm (although very few features), even lighter and faster than flux, that I like is JWM (Jim's WM), which is in the ubuntu repos, too. Try that one.
 
posted 533 days ago
Add Comment Reply to: this comment OR this thread
 
WOW gold said:
 
 
posted 73 days ago
Add Comment Reply to: this comment OR this thread
 

Search