Installing Themes
Creating Themes
Recolorable Themes
The themerc File
Distributing Fonts with Themes
Oroborus is themeable, meaning you can change the appearance of the window decorations. Oroborus themes are usually distributed as .tar.gz files, so installing a theme is simply a case of unpacking the file using tar into a directory of your choice. Once installed you can tell Oroborus to use the theme by setting the pixmaps option in your .oroborusrc file (see Configuring Oroborus).
To create a theme simply create a directory and inside it create .xpm files with the following filenames:
top-left-active.xpm
top-left-inactive.xpm
top-left-active-shaded.xpm
top-left-inactive-shaded.xpm
title-active.xpm
title-inactive.xpm
title-active-shaded.xpm
title-inactive-shaded.xpm
top-right-active.xpm
top-right-inactive.xpm
top-right-active-shaded.xpm
top-right-inactive-shaded.xpm
left-active.xpm
left-inactive.xpm
right-active.xpm
right-inactive.xpm
bottom-left-active.xpm
bottom-left-inactive.xpm
bottom-active.xpm
bottom-inactive.xpm
resize-active.xpm
resize-inactive.xpm
hide-active.xpm
hide-inactive.xpm
hide-pressed.xpm
close-active.xpm
close-inactive.xpm
close-pressed.xpm
You can edit and create .xpm format images using The Gimp or any other graphics package that supports them.
To create a recolorable theme you need to understand a little bit about how .xpm files work. .xpm files are actually ascii text files, so they can be edited and created using a simple text editor such as vi. An example .xpm file is:
/* XPM */
static char *example_xpm[]={/* width height number_of_colors chars_per_pixel*/
"5 5 3 1",/* colors *
"X c none",
". c #ff0000 s active_color_1",
"* c #000000",/* pixels */
"X***X",
"*...*",
"*...*",
"*...*",
"X***X"};
The second line of the colors section has a reference to active_color_1 - this tells Oroborus to use active_color_1 as defined in the configuration file wherever there is a .in the pixels section (see Configuring Oroborus).
Unfortunately, there doesn't seem to be any graphics package which supports the use of color symbols. The easiest way round this is to use The Gimp to create your pixmaps and then edit them afterwards with a text editor to put in the color symbols.
More information on the .xpm format can be found at http://www-sop.inria.fr/koala/lehors/xpm.html.
If you need to set theme specific properties for your theme, such as font, text color or text alignment, you can create a file called themerc in the theme directory. The themerc allows the same options as the main configuration files but it is not a good idea to set anything such as key bindings or focus style as anything set in the themerc will override both the system defaults and your .oroborusrc. Therefore, the only useful options to use are font, active_text_color, inactive_text_color and text_alignment (See Configuring Oroborus). You do not need to create a themerc file.
It is possible with to distribute font files with Oroborus themes and have Oroborus dynamically load them. If Oroborus finds a fonts.dir file in the theme directory it will add that directory to the X server font path. With .pcf fonts the process of creating the fonts.dir file is as simple as copying the font to the theme directory and running mkfontdir. For more information on fonts see the documentation for X (www.xfree86.org).