1 -- data/README.style for Blackbox - an X11 Window manager
4 ------------------------------------------------------------------------------
6 A texture is a description of a particular visual element. It
7 consists of a text description, colors and a border width. Textures
8 are specified as follows:
10 <name>.appearance: description
11 <name>.backgroundColor: background color for solids
12 <name>.color1: initial color for gradients and interlaced solids
13 <name>.color2: target color for gradients and interlaced solids
14 <name>.borderWidth: width of the texture border in pixels
15 <name>.borderColor: color of the texture border
17 The BNF for the appearance is:
19 <appearance> := parentrelative |
20 [<bevel-type>] [<fill-type>] [interlaced] [border]
21 <bevel-type> := sunken | flat | raised
22 <fill-type> := gradient <gradient-type> | solid
23 <gradient-type> := crossdiagonal | rectangle | pyramid | pipecross |
24 elliptic | horizontal | vertical | diagonal
28 ------------------------------------------------------------------------------
30 A color can be specified as one of the X11 color names (e.g.
31 'cornsilk3'), as a device-dependent color specification, or as a
32 device-independent color specification.
34 A device-dependent color specification has the following syntax
36 rgb:<red>/<green>/<blue> where <red>, <green>, <blue> := h | hh |
37 hhh | hhhh, and h := single hexidecimal digits
39 rgbi:<red>/<green>/<blue> where <red>, <green>, and <blue> are
40 floating-point values between 0.0 and 1.0, inclusive.
42 A device-independent color specification has the following syntax:
49 TekHVC:<H>/<V>/<C> where all values are floating-point values in
50 the range 0.0 to 1.0, inclusive.
52 See the XParseColor man page for more information on X11 color names.
56 ------------------------------------------------------------------------------
58 A font is a description of the font. Depending on how Blackbox was
59 configure at build time, this can be a FontConfig font specification
60 (see http://www.fontconfig.org for more information on FontConfig), or
61 an XLFD font specification.
63 Note: If a FontConfig font specification is used, but Blackbox was not
64 built with Xft support, a default XLFD font is used. If an XLFD font
65 specification is used, Blackbox will always use this XLFD, regardless
66 of whether or not if Blackbox was build with Xft support.
70 ------------------------------------------------------------------------------
72 Alignment is one of the following: Left, Center, Right
76 ------------------------------------------------------------------------------
78 All width, height and margin resources are specified in pixels. In
79 general, width and height specify the full extent, where as margin
80 specifies the space around another element.
83 Setting the Background
84 ------------------------------------------------------------------------------
86 You can set the desktop background (i.e. root window) by specifying a
87 command to run in the 'rootCommand' resource. Blackbox includes the
88 'bsetroot' and 'bsetbg' utilities; their use is recommended. Also,
89 you can override the styles 'rootCommand' by putting your own in your
90 ~/.blackboxrc file. This allows you to always use a custom
91 background, regardless of which style you are using.
93 Note: Questions about security have been raised about 'rootCommand.'
94 There is an inherent risk when using styles from 3rd parties; use them
99 ------------------------------------------------------------------------------
101 menu.title - title texture
109 menu.title.foregroundColor - bitmap color for e.g. close button
110 Menu.Title.ForegroundColor
112 menu.title.textColor - title text color
115 menu.title.font - title text font
118 menu.title.alignment - title text alignment
121 menu.title.marginWidth - space around text in title
122 Menu.Title.MarginWidth
124 menu.frame - frame texture
132 menu.frame.foregroundColor - bitmap color for checks and submenu-arrows
133 menu.frame.ForegroundColor
138 menu.frame.disabledColor - disabled text color
139 Menu.Frame.DisabledColor
141 menu.frame.font - item text font
144 menu.frame.alignment - text alignment for all items
147 menu.frame.marginWidth - space around all items in frame
148 Menu.Frame.MarginWidth
150 menu.active - texture for the active menu item
158 menu.active.foregroundColor - bitmap color for checks and submenu-arrows
159 Menu.Active.ForegroundColor
161 menu.active.textColor - menu item text color
162 Menu.Active.TextColor
166 ------------------------------------------------------------------------------
167 slit - the texture of the slit
175 slit.marginWidth - space around and between slit clients
180 ------------------------------------------------------------------------------
182 toolbar - the texture of the toolbar itself
190 toolbar.label - workspace label texture
198 toolbar.windowLabel - window label texture
206 toolbar.clock - clock label texture
214 toolbar.button - button texture
222 toolbar.button.pressed - pressed button texture
223 Toolbar.Button.Pressed
230 toolbar.label.textColor - workspace label text color
231 Toolbar.Label.TextColor
233 toolbar.windowLabel.textColor - window label text color
234 Toolbar.Label.TextColor
236 toolbar.clock.textClolor - clock label text color
237 Toolbar.Label.TextColor
239 toolbar.button.foregroundColor - bitmap color for buttons
240 Toolbar.Button.ForegroundColor
242 toolbar.alignment - text alignment for all labels
245 toolbar.font - text font
248 toolbar.marginWidth - space around and between buttons and labels
251 toolbar.label.marginWidth - space around text in labels
252 Toolbar.Label.MarginWidth
254 toolbar.button.marginWidth - space around bitmaps in buttons
255 Toolbar.Button.MarginWidth
259 ------------------------------------------------------------------------------
261 window.title.focus - focused title texture
269 window.label.focus - focused label texture
277 window.button.focus - focused button texture
285 window.handle.focus - focus handle texture
293 window.grip.focus - focus grip texture
301 window.title.unfocus - unfocused title texture
309 window.label.unfocus - unfocused label texture
317 window.button.unfocus - unfocused button texture
318 Window.Button.Unfocus
325 window.handle.unfocus - unfocused handle texture
326 Window.Handle.Unfocus
333 window.grip.unfocus - unfocused grip texture
341 window.button.pressed - pressed button texture
342 Window.Button.Pressed
349 window.frame.borderColor - color of border around client window
350 Window.Frame.BorderColor
352 window.button.focus.foregroundColor - bitmap color for focused buttons
353 Window.Button.Focus.ForegroundColor
355 window.button.unfocus.foregroundColor - bitmap color for unfocused buttons
356 Window.Button.Unfocus.ForegroundColor
358 window.label.focus.textColor - text color for focused labels
359 Window.Label.Focus.TextColor
361 window.label.unfocus.textColor - text color for unfocused labels
362 Window.Label.Unfocus.TextColor
364 window.font - text font
367 window.alignment - alignment of text in labels
370 window.title.marginWidth - space around and between buttons and labels
371 Window.Title.MarginWidth
373 window.label.marginWidth - space around text in labels
374 Window.Label.MarginWidth
376 window.button.marginWidth - space around bitmaps in buttons
377 Window.Button.MarginWidth
379 window.frame.borderWidth - border width around client window
380 Window.Frame.BorderWidth
382 window.handleHeight - height of the window handle