Next Previous Contents

4. Themes

The IceWM Control Center supports themes. You can set your own image for background and add any tools.

Each theme contains a background image and a file 'theme' which describes positions of hot-spots and tools for runing. A theme file is ini-file with several sections. It must contain section 'General' and sections for each tool. The 'Gneral' contains general information about theme:

  1. name of file for background (key 'image')
  2. number of tools (key 'qtools')
  3. name of author (key 'author')
  4. description of theme (key 'description')

Section for tool have name 'Tool#' where # is a number of tool (started from 0). This section must contain:

  1. left and top position of hot-spot (keys 'left' and 'top' respectively)
  2. width and height of spot (keys 'width' and 'height')
  3. command for runing tool ('command')
  4. menu string for this tool ('menuCommand')
  5. hotkey for menu command ('hotKey')
  6. description of tool which showed in statusbar ('toolTip')

Each theme placed in a personal subdirectory in the directory for themes. By default, themes' directory is the $(prefix)/share/icecc/themes

This is an example of theme designed by Adam Pribyl:

Pic.The background image for Simple theme.

The Theme file:

[General]
image = icecc_desk.png
qtools = 11
author = "Adam Pribyl <covex@ahoj.fsik.cvut.cz>"
description = "A simple theme for IceWM Control Center"

[Tool0]
left = 0
top = 0
width = 490
height = 25
command = "icemc ~/.icewm/toolbar"
menuCommand = "Toolbar editor"
hotKey = "Ctrl+T"
toolTip = "Toolbar editor"

[Tool1]
left = 0
top = 25
width = 165
height = 285
command = "icemc ~/.icewm/menu"
menuCommand = "Menu editor"
hotKey = "Ctrl+M"

[Tool2]
left = 165
top = 25
width = 325
height = 33
command = "gvim ~/.icewm/preferences"
menuCommand = "Preferences editor"
hotKey = "Ctrl+P"

[Tool3]
left = 170
top = 60
width = 265
height = 22
command = "icets"
menuCommand = "Themes' switcher"
hotKey = "Ctrl+H"

[Tool4]
left = 170
top = 83
width = 265
height = 185
command = "icewoed ~/.icewm/winoptions"
menuCommand = "Winoption editor"
hotKey = "Ctrl+W"
toolTip = "Winoption editor"

[Tool5]
left = 435
top = 60
width = 55
height = 55
command = "icesndcfg ~/.icewm/sounds /usr/share/sounds"
menuCommand = "Sound configurator"
hotKey = "Ctrl+S"

[Tool6]
left = 435
top = 115
width = 55
height = 50
command = "iceked ~/.icewm/keys"
menuCommand = "Keys editor"
hotKey = "Ctrl+K"

[Tool7]
left = 435
top = 165
width = 55
height = 50
command = "icecurcfg.py"
menuCommand = "Cursors configurator"
hotKey = "Ctrl+I"

[Tool8]
left = 435
top = 215
width = 55
height = 50
command = "iceiconcvt.py"
menuCommand = "Icons' convertor"
hotKey = "Ctrl+U"

[Tool9]
left = 435
top = 265
width = 55
height = 42
command = "icemergeprefs.py"
menuCommand = "Merge Prefs"
hotKey = "Ctrl+E"

[Tool10]
left = 165
top = 270
width = 270
height = 37
command = "icebgset"
menuCommand = "Background options editor"
hotKey = "Ctrl+B"


Next Previous Contents