Posts: 22
Steve
Joined: 01 Nov 2007
#1
To get rounded corners in your fluxbox menu you will have to build fluxbox from the source code.

You can start out in either fluxbox or icewm.

1. Make sure you have everything for the build.

Code: Select all

# aptitude install build-essential checkinstall xorg-dev 
2. Set up checkinstall so that it prepares the deb but does not do the installation (as root):

Code: Select all

# nano /etc/checkinstallrc

Change INSTALL=1 to INSTALL=0 at the very end of the file.

3. Modify your fluxbox startup file:

Code: Select all

$ nano ~./fluxbox/startup
Find the line that has

exec /usr/bin/fluxbox

and change it to

exec /usr/local/bin/fluxbox

4. Modify your fluxbox menu file so your new styles will appear in the menu:

Code: Select all

$ nano ~/.fluxbox/menu
Find area for the styles and change it to this:

[submenu] (Styles)
[stylesdir] (~/.fluxbox/styles)
[stylesdir] (/usr/share/fluxbox/styles)
[stylesdir] (/usr/local/share/fluxbox/styles)
[end]

5. Get the fluxbox source tarball from


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://fluxbox.sourceforge.net/download.php"
linktext was:"http://fluxbox.sourceforge.net/download.php"
====================================


6. Extract the source code:

Code: Select all

$ tar xvzf fluxbox-1.0.0.tar.gz
7. Change to the source directory:

Code: Select all

$ cd fluxbox-1.0.0
8.

Code: Select all

$ ./configure
9.

Code: Select all

$ make
10. If you are in fluxbox, quit terminal, logout of fluxbox and log into icewm.

11. Use Synaptic to remove the previously installed fluxbox.

12. Start terminal, navigate to the fluxbox source directory, and as
root, type:

Code: Select all

# checkinstall

You will be presented with:

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]:

Answer y

Preparing package documentation...OK

Please write a description for the package.
End your description with an empty line or EOF.

Enter something like:
>> fluxbox 1.0.0 compiled by foo
>>

Then you will see:

*****************************************
**** Debian package creation selected ***
*****************************************

This package will be built according to these values:

0 - Maintainer: [ root@foo-desktop ]
1 - Summary: [ fluxbox 1.0.0 compiled by foo ]
2 - Name: [ fluxbox ]
3 - Version: [ 1.0.0 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ fluxbox-1.0.0 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]

Enter a number to change any of them or press ENTER to continue:

Enter a 3 and change the version to 1.0.999 so Synaptic or aptitude doesn't try to update your installation.

This package will be built according to these values:

0 - Maintainer: [ root@foo-desktop ]
1 - Summary: [ fluxbox 1.0.0 compiled by foo ]
2 - Name: [ fluxbox ]
3 - Version: [ 1.0.999 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ i386 ]
8 - Source location: [ fluxbox-1.0.0 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]


Everything is set now, press return.

You will see:

Done. The new package has been saved to

/home/foo/Desktop/fluxbox-1.0.0/fluxbox_1.0.999-1_i386.deb
You can install it in your system anytime using:

# dpkg -i fluxbox_1.0.999-1_i386.deb

You may see the following errors when you install:

couldn't delete /etc/X11/fluxbox
couldn't delete /usr/share/fluxbox/styles
couldn't delete /usr/share/fluxbox

I ignored these errors and didn't have any problems.

Logout of icewm and into fluxbox, with rounded corners! You can test it out with anti's cool antiX style.

I must give credit to RedSquirrel over at the Ubuntu forum. This was adapted from a portion of his post specifically for use on antiX-M7.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ubuntuforums.org/showthread.php?t=371144"
linktext was:"http://ubuntuforums.org/showthread.php?t=371144"
====================================


Give me feedback and I will edit the post if necessary.
Posts: 319
impuwat
Joined: 13 Sep 2007
#2
Thanks Steve! I will probably be trying this in the next few days. I've been wondering why I could not round the corners in the style. Why do I have to build from source to do this? Are there any other side benefits as well?
Posts: 22
Steve
Joined: 01 Nov 2007
#3
To be honest, I have no idea why the fluxbox from debian doesn't work with respect to rounded corners. So far I haven't noticed any other benefits. So it may seem like a lot of trouble to go to just to get those rounded menu corners. But I can tell you it doesn't take long! The deb you will create is only about 1 Mb. I hope it works well for you.
Posts: 319
impuwat
Joined: 13 Sep 2007
#4
Missed the speed and responsiveness so I went back to Sid. Shortly after upgrading I noticed I had rounded menu corners. So it looks like the debian repo fluxbox has caught up.
Posts: 1,081
OU812
Joined: 29 Sep 2007
#5
I know I can edit fb styles to turn off the rounding effect, but is there an easier way to turn it off? I've looked unsuccessfully through a few files (init, startup, apps), but could not find any entries regarding this. Thanks.

john
Posts: 319
impuwat
Joined: 13 Sep 2007
#6
The easiest way would be to edit the style directly. Just find the line regarding the rounded corners...pretty easy to find, usually on a line by itself...and comment out that line. Save and exit.