5. Customize

5.1. Customizing Title font

Title font setup can change fonts to be used for titles. To set up, edit ~/.golem/golemrc with your editor. After the theme setup, [2] as seen in the following,

style {
        title_font      "-alias-fixed-medium-r-normal-*-16-*-*-*-c-*-jisx0208.1983-0";

specify the font you want to use in your environment between double quoatation marks.

5.2. Customizing Menu

On a root window right click will show a menu. As default, you can edit ~/.golem/plugin/simple_menu/rc with your editor. Its format may be comprehensive when you actually see the file.

param "command" "emacs"         {param "dat" "exec emacs";}

First "emacs" is the characters to be displayed in the menu and the latter between the curly brackets {} is the command that will be executed. To add an option, you can write

param "command" "aterm"        { param "dat" "exec aterm-tr -sh 30 -fg pink"; }

to add "aterm" in to the menu. To add a sub menu, you can write

param "submenu" "hoge" {}

to have a sub menu named "hoge" in the menu. Between the curly brackets, specify menus that you want as sub menus.

5.3. Keyboard operation

Like many other window manager, you can allocate key combinations for applications to start. A default setup file is in ~/.golem/golemrc . You can combine mod4 keys, cursor keys (Up, Down, Left, Right) and ordinary character keys to use.

key_command             "q"     (Mod4Mask) "exec Eterm";
key_command             "x"     (Mod4Mask) "exec xmms";
key_command             "up"    (Mod4Mask) "exec gimp";

As above, you can allocate key(s) to start an application. Also you can configure behavior of a window with current focus.

key_zoom                "z"     (Mod4Mask);
key_delete              "e"     (Mod4Mask);

The above can maximize a window and delete a window. With default, pressing Alt key and Tab key will shift the focus to next window.

5.4. Mouse click operation

You can also set up behaviors when an application window is clicked by mouse. Default setting file can be confirmed either ~/.golem/themes/hoge/rc or ~/.golem/themes/hoge/style/common.rc .

Let's take microGUI theme for example. Setup file is ~/.golem/themes/microGUI/rc . In rc you can find the following part.

DT4     dec_near dec_top 22 -55 0 0.3 0.7
        false false
        act_move act_resize act_resize

The third line in the above, act_move act_resize act_resize would be the behavior when white part of a window bar is clicked. Three actions are written for each of three buttons on a mouse. Actions are roughly devided into the following:

Do nothing(act_none)
Move windows(act_move)
Change window size(act_resize)
Delete window(act_delete)
Iconify window(act_iconify)
Maximize window(act_zoom)

and they can be set as required. For a example, setup like

 act_move act_delete act_zoom

will be: left click to move, center click to delete, and right click to maximize. A window bar wouldn't be diplayed when changing a maximized window size. It is recommended to setup a shortcut. Changing the setup for blue parts on the left can be done by changing the third line in DT2.

Once all setup is completed, right click to select restart and see if it works as you configured it.

5.5. Customizing Themes

To create or customize a theme, please refer to /usr/share/doc/golem-0.0.5/THEMES.

[2] As default, next line to .include "themes/microGUI/rc"