From ArchWiki
Revision as of 02:37, 24 July 2005 by Cactus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Since there is no wiki entry for Fluxbox and I was thinking about starting to use it / play with it. Here's a in-progress page. Since I am no veteran use I can't write it all out right now but can only write as I go.

For questions not answered here, try the iphitus' FAQ or Fluxbox FAQ.

First you should get yourself familiar with what Fluxbox is. There are a couple nice screenshots. There are basically 2 versions of Fluxbox. The stable but OLD Version 0.1.14, and the devel and NEW Version 0.9.13

mith@middleearth||[[~]]:~ > pacman -Ss fluxbox
extra/fluxbox 0.1.14-2
    A lightweight and highly-configurable window manager
unstable/fluxbox-devel 0.9.13-3
    A lightweight and highly-configurable window manager (DEVEL VERSION).

As you can see, the stable version is in extra and the devel version is in the unstable REPO. I encourage everyone to try the devel version. Arch Linux in the end is a bleeding edge experience, right?

Installing the fluxbox-devel version

The next command will install the devel version of Fluxbox + the tool menumaker, which will prove very helpful in getting up our first functional menu

pacman -Sy fluxbox-devel menumaker

For KDM/GDM there is nothing else to do. It is already included in the Sessions section. If anyone please could add the non-KDM/GDM part!!

Log into your Fluxbox and get your menu up

Once Fluxbox comes up there is already a very basic menu running. Right click somewhere and check it out. However that's probably not what you want. In the standard menu there is an entry for xterm. Hopefully you have xterm installed, b/c I have no idea how to get a terminal or konsole up without having some sort of terminal/konsole to start with :)
anyway, once you have a console up, run

mmaker -v Fluxbox

That will create a menu that basically includes all the programs you have installed. Which is a big advantage, you can always customize the menu to your own liking in editing .fluxbox/menu in your home folder

You should have a look at that $HOME/.fluxbox/menu file, it's really not that complicated and you'll have your personal menu in no time. There's really not much more to say to the menu

Running KDE programs in Fluxbox

It is no problem to run KDE programs in Fluxbox. In fact if you used menumaker to create your menu, then all your KDE programs should be in there and you can use them as you usually do. Convenient, isn't it?

Some KDE apps won't start unless you have

kdeinit &

in your autostart.sh file.

Startup script

In KDE all you have to do is put scripts in the ~/.kde/Autostart folder. In fluxbox it is a little bit different. The gentoo wiki does not cover this method. This is how I personally do it. Note that for this to work you must havet fluxbox-devel or fluxbox-svn.

In your ~/.fluxbox/ folder create a file called apps. Edit that file with your preferred editor. If you have told fluxbox to remember window attributes this file will already have data in it. Put this in the file:

[startup]     {~/.fluxbox/autostart.sh}

Then create ~/.fluxbox/autostart.sh and put your startup scripts/apps in there. Make sure it is executable.

chmod 755 ~/.fluxbox/autostart.sh

Here is whatt mine looks like:

fbsetbg -f ~/Documents/Pictures/Backgrounds/sn33z1600.png &
adesklets &
kmix &
gmpc &
xset -b &
xscreensaver &
lineakd &
kdeinit &
xhost +localhost &

Setting background

The Gentoo wiki covers this well but I wanted to note that if your style applies a background your fbsetbg command will not last. You have to comment out the part of the style file that applies the background.

to be continued ...


Fluxbox Homepage
gentoo-wiki Fluxbox HowTo
gentoo Fluxbox Documentation Themes for Fluxbox