.\" AT THE BOTTOM IS ADD ONS TO THE PAGE search /ADDITIONS .\" Manual page for Fluxbox Styles .\" .\" Fluxbox is Copyright (c) 2001-2004 Henrik Kinnunen .\" Fluxstyle(1) is Copyright (c) 2004 Curt Micol .\" .\" This manual page is freely distrubted and modified. .\" Parts of the text are taken from websites and style .\" files on http://www.fluxbox.org and http://www.fluxmod.dk .\" .\" Created and Updated for version 0.9.7 by Curt Micol .\" .\" Define this:
.de EX
.ne 5
.if n .sp 1
.if t .sp .5
.nf
.in +.5i
..
.de EE
.fi
.in -.5i
.if n .sp 1
.if t .sp .5
..
.\" Begin actual page
.\"
.TH fluxstyle 1 "January 7th, 2004" "0.9.8"
.SH NAME
fluxstyle \- all you need to know about Fluxbox styles
.SH DESCRIPTION
.\"
.\" Taken from the documentation
.\"
.SS What is a Style?
A style is basically a theme for the 
.IR Fluxbox(1)
window manager. It is a simple ASCII text file that tells Fluxbox how
to generate the appearance of the different components of the window manager.
The default installation of Fluxbox is shipped with many classic styles that
show the customization of current Fluxbox versions. They are usually located in
.IR ~/.fluxbox/styles
and in the global Fluxbox share directory
.IR /usr/local/share/fluxbox/styles
which may vary depending on the method of installation used. To use one of
the styles shipped with Fluxbox, look in your root menu under the configure
part of the menu for 'System Styles'.
.PP
Fluxbox uses its own graphics class to render its images on the fly.  By using
style files, you can determine at a great level of configurability what your
desktop will look like.  Fluxbox styles are compatible with those of the
Blackbox window manager (where Fluxbox originated).  Users migrating from
Blackbox can use their current favourite themes.

.SH STRUCTURE OF STYLES
The style is made up of a few major components which then have their own
sub-directives. The toolbar, menu, slit and window are the major components.  The
.IR window.*
directives control the appearance of your window frames,
.IR window.tab.*
controls the appearance of the window tabs.
.IR menu.*
controls the appearance of the popup menu that you see when you right click
on the desktop.
.IR toolbar.*
is the bar you will see at the top or bottom of your screen. Finally the
.IR slit.*
has options you can use to customize the appearance of the slit. However
if you don't set the slit directives specifically, the slit's appearance is controlled
by the
.IR toolbar.*
directives instead.
.PP
To understand how the style mechanism works, it is nice to know a litte about how
X11 resources work.
.PP
X11 resources consist of a key and a value.  The key si constructed of several smaller
keys (sometimes referred to as children), delimited by a period (.).  Keys may also
contain a asterisk (*) to serve as a wildcard, which means that one line of typed text
will match several keys.  This is useful for styles that are based on one or two colors.

.SH LOCATION OF STYLES
We'll cover quickly where styles can be found and placed after you create your own.
.PP
There are a number of default styles that come with the installation, while we have already
covered this, we will again just provide a central location for all style locations.  These
default styles are located in
.IR /usr/local/share/fluxbox/styles
providing a default configureation at installation.
.PP
Once you create your own, you can create a directory in
.IR ~/.fluxbox/
called 'styles'.  While there isn't an official structure of how to package your style, one way that is recommended is creating a directory named after your style and placing your pixmaps directory in there along with a theme.cfg.  The theme.cfg file being your created style.  So for example if I created a style called 'MyStyle' I would create the following:
.EX
mkdir -p ~/.fluxbox/styles/MyStyle
cd ~/.fluxbox/styles/MyStyle
mkdir pixmaps
vi theme.cfg (this being where you design your style with
              the necessary components)
.EE
If you follow this, the path to your pixmaps will be:
.IR ~/fluxbox/styles/MyStyle/pixmaps
which makes it a bit easier to setup up and distribute your style.

.SH CREATING STYLES
As discussed in the
.IR STRUCTURE
section of this man page, Fluxbox allows you to configure its four main components: the toolbar, the menus, the
slit and the window decorations.  Remember that you can customize the slit with its own
directives, but if you don't, it will take the appearance of the toolbar.
.PP
Here are some quick examples to illustrate basic syntax:
.EX
toolbar.clock.color: green
.EE
This sets the color resource of the toolbar clock to 'green'.  Another example:
.EX
menu*color:	rgb:3/4/5
.EE
This sets the color resource of the menu
.I and all of its 'children'
to `rgb:3/4/5'.  
(For a description of color names, see
.IR X (1).)
So this one also applies to
.IR menu.title.color " and " menu.frame.color .
And with   
.EX
*font:  -b&h-lucida-medium-r-normal-*-*-140-*
.EE
you set the font resource for all keys to this font name all at once.
(For information about the fonts installed on your system, you can use a program like
.IR xfontsel "(1), " gtkfontsel ", or " xlsfonts "(1).)"
.PP
This last example brings up wildcards and overrides.  In a Fluxbox style you can set a value
with a wild card.  The previous example means that every font in the style will be what is
specified.  You can do this with any value.  For example if you wanted all of the text to be one
color you could do:
.EX
*textColor:  rgb:3/4/5
.EE
This means you can setup a very simple style with very few properties.  See
.IR EXAMPLES
below for an example of this in practice.  You can also override wildcards in the style
file.  Lets take our example above and add an override for the toolbar.clock.textColor:
.EX
*textColor: rgb:3/4/5
toolbar.clock.textColor: rgb:255/0/0
.EE
With that all of the text will be 'rgb:3/4/5' except the toolbar clock text which will be 'rgb:255/0/0'
.PP
Now, what makes Fluxbox just so spectacular, is its ability to render textures
on the fly.
Texture descriptions are specified directly to the key that they
should apply to, e.g.:
.ta \w'toolbar.clock.colorTo:\ 'u
.EX
toolbar.clock:  Raised Gradient Diagonal Bevel1
toolbar.clock.color:    rgb:8/6/4
toolbar.clock.colorTo:  rgb:4/3/2
.EE
Don't worry, we will explain right now!
A texture description consists of up to five fields, which are as follows:
.TP
.B Flat / Raised / Sunken
gives the component either a flat, raised or sunken appearance.
.TP
.B Gradient / Solid
tells Fluxbox to draw either a solid color or a gradient texture.
.TP
.B Horizontal / Vertical / Diagonal / Crossdiagonal / Pipecross / Elliptic / Rectangle / Pyramid
Select one of these texture types. They only work when also
.B Gradient
is specified!
.TP
.B Interlaced
tells Fluxbox to interlace the texture (darken every other line).
This option is most commonly used with gradiented textures, but from Fluxbox
version 0.60.3 on, it also works in solid textures.
.TP
.B Bevel1 / Bevel2
tells Fluxbox which type of bevel to use.
Bevel1 is the default bevel.
The shading is placed on the edge of the image.
Bevel2 is an alternative.
The shading is placed one pixel in from the edge of the image.
.PP
Instead of a texture description, also the option
.B ParentRelative
is available, which makes the component appear as a part of its parent, e.g.
totally transparent.
.PP
Or for even more possibilities
.B Pixmap .
If pixmap texture is specified (it might not be necessary on every occasion)
the pixmap file is specified in a separate pixmap resource.
.EX
toolbar.clock: pixmap
toolbar.clock.pixmap: .fluxbox/styles/mine/clock_background.xpm
.EE
This feature might need some investigation, reports say that sometimes
the resources color and colorTo must be set and then they may not be set.
.PP
All gradiented textures are composed of two color values: the
.IR color " and " colorTo " resources."
When
.B Interlaced
is used in
.B Solid
mode, the
.I colorTo
resource is used to find the interlacing color.
.PP
.SH A WORD ABOUT FONTS
We should comment about fonts before we move on to the complete component
list.  
.PP
Fluxbox supports different options for text.  These options currently include bold and shadow.  To set these do this, fontname-size:options, for any of the font components in the style file.  For example:
.EX
menu.title.font: sans-8:bold,shadow
.EE
If you have problems installing fonts or getting them to work, you should read the docs page at xfree.org.  Here is a link to one of these: http://xfree.org/4.3.0/fonts2.html#3.
.SH FULL COMPONENT LIST
Here is the complete component list, together with which kind of value they take.
Comments are preceded with an exclamation sign (!), which is also used for
comments in Fluxbox style c.q. X resource files.
.PP
.\" The comments also to be translated!
.SS WINDOW OPTIONS
Many, many things you can do with window design in Fluxbox, below are your options.  Have fun.
.EX
window.label.focus: 
window.label.focus.pixmap:  
window.label.focus.color:  
window.label.focus.colorTo: 
window.label.unfocus: 
window.label.unfocus.pixmap:  
window.label.unfocus.color:  
window.label.unfocus.colorTo: 
window.title.focus: 
window.title.focus.pixmap:  
window.title.focus.color:  
window.title.focus.colorTo: 
window.title.unfocus: 
window.title.unfocus.pixmap:  
window.title.unfocus.color:  
window.title.unfocus.colorTo: 
window.handle.focus: 
window.handle.focus.pixmap:  
window.handle.focus.color:  
window.handle.focus.colorTo: 
window.handle.unfocus: 
window.handle.unfocus.pixmap:  
window.handle.unfocus.color:  
window.handle.unfocus.colorTo: 
window.button.focus: 
window.button.focus.pixmap:  
window.button.focus.color:  
window.button.focus.colorTo: 
window.button.unfocus: 
window.button.unfocus.pixmap:  
window.button.unfocus.color:  
window.button.unfocus.colorTo: 
window.button.pressed: 
window.button.pressed.pixmap:  
window.button.pressed.color:  
window.button.pressed.colorTo: 
window.grip.focus: 
window.grip.focus.pixmap:  
window.grip.focus.color:  
window.grip.focus.colorTo: 
window.grip.unfocus: 
window.grip.unfocus.pixmap:  
window.grip.unfocus.color:  
window.grip.unfocus.colorTo: 
window.label.focus.textColor: 
window.label.unfocus.textColor: 
window.frame.focusColor: 
window.frame.unfocusColor: 
window.button.focus.picColor: 
window.button.unfocus.picColor: 
window.font: 
window.justify:
window.roundCorners:
window.alpha: 
window.title.height: 
window.bevelWidth: 
window.handleWidth: 
window.borderWidth: 
window.borderColor: 
window.close.pixmap: 
window.close.unfocus.pixmap: 
window.close.pressed.pixmap: 
window.maximize.pixmap: 
window.maximize.unfocus.pixmap: 
window.maximize.pressed.pixmap: 
window.iconify.pixmap: 
window.iconify.unfocus.pixmap: 
window.iconify.pressed.pixmap: 
window.shade.pixmap: 
window.shade.unfocus.pixmap: 
window.shade.pressed.pixmap: 
window.stick.pixmap: 
window.stick.unfocus.pixmap: 
window.stick.pressed.pixmap: 
window.stuck.pixmap: 
window.stuck.unfocus.pixmap: 
.EE
.SS MENU OPTIONS
Everything you need to make your menu look pretty.
.EX
menu.title.textColor: 
menu.frame.textColor: 
menu.hilite.textColor: 
menu.frame.disableColor: 
menu.title: 
menu.title.pixmap:  
menu.title.color:  
menu.title.colorTo: 
menu.frame: 
menu.frame.pixmap:  
menu.frame.color:  
menu.frame.colorTo: 
menu.hilite: 
menu.hilite.pixmap:  
menu.hilite.color:  
menu.hilite.colorTo: 
menu.title.font: 
menu.frame.font: 
menu.frame.justify:
menu.title.justify:
menu.bullet.position:
menu.bullet:
menu.borderWidth:
menu.bevelWidth:
menu.borderColor: 
menu.submenu.pixmap: 
menu.selected.pixmap: 
menu.unselected.pixmap: 
menu.roundCorners:
.EE
.SS ROOT COMMAND OPTION
This is how you set your background within your style.  Use the official fluxbox background program, fbsetbg.  It is distributed with Fluxbox, and can also be downloaded from here: http://www.xs4all.nl/~hanb/software/fluxbox/fbsetbg.html
.EX
rootCommand: 
.EE
.SS SLIT
Here are all of the options for the slit.
.EX
slit: 
slit.pixmap:  
slit.color:  
slit.colorTo: 
slit.borderWidth: 
slit.bevelWidth: 
slit.borderColor: 
.EE
.SS TOOLBAR OPTIONS
Below you will find all of the configuration possibilities for the toolbar.  The list is pretty extensive and offers you many options to make your toolbar look just the way you want it.
.EX
toolbar: 
toolbar.pixmap:  
toolbar.color:  
toolbar.colorTo: 
toolbar.borderWidth: 
toolbar.borderColor: 
toolbar.bevelWidth: <0-255>
toolbar.shaped: 
toolbar.alpha: 
toolbar.height: 
toolbar.clock.font: 
toolbar.clock.textColor: 
toolbar.clock.justify:
toolbar.clock: 
toolbar.clock.pixmap:  
toolbar.clock.color:  
toolbar.clock.colorTo: 
toolbar.clock.borderWidth: 
toolbar.clock.borderColor: 
toolbar.workspace.font: 
toolbar.workspace.textColor: 
toolbar.workspace.justify:
toolbar.workspace: 
toolbar.workspace.pixmap:  
toolbar.workspace.color:  
toolbar.workspace.colorTo: 
toolbar.workspace.borderWidth: 
toolbar.workspace.borderColor: 
toolbar.iconbar.focused: 
toolbar.iconbar.focused.pixmap:  
toolbar.iconbar.focused.color:  
toolbar.iconbar.focused.colorTo: 
toolbar.iconbar.unfocused: 
toolbar.iconbar.unfocused.pixmap:  
toolbar.iconbar.unfocused.color:  
toolbar.iconbar.unfocused.colorTo: 
toolbar.iconbar.empty: 
toolbar.iconbar.empty.pixmap:  
toolbar.iconbar.empty.color:  
toolbar.iconbar.empty.colorTo: 
toolbar.iconbar.focused.borderWidth: 
toolbar.iconbar.focused.borderColor: 
toolbar.iconbar.unfocused.borderWidth: 
toolbar.iconbar.unfocused.borderColor: 
toolbar.iconbar.borderWidth: 
toolbar.iconbar.borderColor: 
toolbar.iconbar.focused.font: 
toolbar.iconbar.focused.textColor: 
toolbar.iconbar.focused.justify:
toolbar.iconbar.unfocused.font: 
toolbar.iconbar.unfocused.textColor: 
toolbar.iconbar.unfocused.justify:
.EE
.SH EXAMPLES
This may seem like a long list, but remember, when you create your own style, you
can easily set lots of keys with a single command, e.g.
.EX
.ta \w'*unfocus.textColor:\ 'u
*color: slategrey
*colorTo:       darkslategrey
*unfocus.color: darkslategrey
*unfocus.colorTo:       black
*textColor:     white
*unfocus.textColor:     lightgrey
*font:  lucidasans-10
.EE
This sets already nice defaults for many components.

.SH COLOR FORMATS
These are the color formats for styles:
.EX
#000000 (Hexadecimal)
/usr/X11R6/lib/X11/rgb.txt
.EE

.SH AUTHOR and CREDITS
Blackbox was written and maintained by Brad Hughes
.nh \" hyphenation off

.hy \" on again
and Jeff Raven
.nh
,
.hy
.PP
Fluxbox is written and maintained by Henrik Kinnunen
.nh

.hy
with contributions and patches merged from
many individuals around the world.
.PP
The Official Fluxbox website:
.nh
.B http://www.fluxbox.org/
.hy
.PP
Flumod is a Fluxbox community site where you can find many new styles that
work with this version of Fluxbox and take advantage of all the new features.
You can find Fluxmod here:
.nh
.B http://www.fluxmod.dk/
.hy
.PP
You can also find more styles here:
.nh
.B http://themes.freshmeat.net/
.PP
This manpage was composed from various resources including the documentation, fluxbox
man page and numerous other resources by Curt Micol
.nh

.hy 
and using the great contributions of
.hy
.
.nh
Numerous other languages could be available if someone jumps in.
.SH SEE ALSO
.IR fluxbox (1) 
.IR bsetroot (1)

.\" ADDITIONS TO MAKE
.\" Create a font section
.\" Change layout of theme items
.\" Obtain new theme items, grubert just placed in new man page
.\" Become a little more verbose on color usage.
.\"