2 .\" @(#)@PACKAGE@-@VERSION@ @RELDATELONG@
3 .TH FvwmTaskBar 1 "@RELDATELONG@ (@VERSION@)" Fvwm "Fvwm Modules"
6 FvwmTaskBar \- the fvwm taskbar module
8 \fBFvwmTaskBar\fP [\fIname\fP]
10 FvwmTaskBar is spawned by fvwm, so no command line invocation will work.
13 The FvwmTaskBar module provides a taskbar made up of buttons arranged by
14 rows, each corresponding to a window that fvwm is managing.
15 Clicking on first button gives focus to the corresponding top level window;
16 clicking on the middle button will hide a top level window; third mouse button
17 is reserved for a future extension (context menu).
18 Like the other modules, FvwmTaskBar only works when fvwm is used as the
21 When started, the taskbar shows up as a single row of buttons filling the
22 full width of the screen, but during the work can be resized to accommodate
23 up to 8 rows. In addition, if the AutoStick option is used, the taskbar
24 will auto position itself at the top or bottom of the screen, and can be
25 dragged from one position to another with a normal move operation.
27 The first button of the taskbar, labelled "Start" sends a "Popup
28 StartMenu" command to the fvwm, which can be used to pop-up a
29 general-purpose menu when the button is pressed.
31 The FvwmTaskBar also displays at the right side a window showing the
32 current time and the built-in incoming mail indicator.
35 The FvwmTaskBar module is derived from Mike Finger's FvwmWinList.
37 Copyright 1994, Mike Finger. The author makes no guarantees or warranties of
38 any kind about the use of this module. Use this module at your own risk.
39 You may freely use this module or any portion of it for any purpose as long
40 as the copyright is kept intact.
43 During initialization, \fIFvwmTaskBar\fP gets configuration information
44 from fvwm to find the options that pertain to it.
45 These options are discussed in a later section.
48 FvwmTaskBar can be invoked by fvwm during initialization by inserting the
49 line 'Module FvwmTaskBar' in the .fvwm2rc file.
51 FvwmTaskBar must reside in a directory that is listed in the ModulePath
52 option of fvwm for it to be executed by fvwm.
54 .SH CONFIGURATION OPTIONS
55 The following options can be placed in the .fvwm2rc file
57 .IP "*FvwmTaskBar: Geometry \fI{+-}<X>{+-}<Y>\fP"
58 Specifies the location and gravity of the FvwmTaskBar window.
59 Currently, this option is scanned as a normal X geometry string.
60 You can include the width and the height in addition to the "x" and
61 "y" offset. However, only the "x" and "y" offset are used.
62 To avoid possible future compatibility problems, only code the "x" and
65 The actual width of the taskbar is always the full width of the screen
66 and the height is controlled by the *FvwmTaskBar: Rows option.
68 If the AutoStick option
69 is specified, the taskbar automatically "sticks" to the top or
70 the bottom of the screen, whichever is closest to the geometry specification.
72 To position the taskbar at the bottom of the screen, use a geometry of
75 .IP "*FvwmTaskBar: Rows r"
76 Specifies the initial number in rows of the FvwmTaskBar window. Default
77 is 1 and the maximum is 8.
79 .IP "*FvwmTaskBar: Font \fIfont\fP"
80 Specifies the default font to be used for labeling the buttons, when they
81 are not depressed. If not specified, fixed font is assumed.
83 .IP "*FvwmTaskBar: SelFont \fIfont\fP"
84 Specifies the font to be used for the depressed buttons. Note that the
85 Start button will always use this font even if is not pressed. If this
86 option is not specified, the default font is used instead.
88 .IP "*FvwmTaskBar: StatusFont \fIfont\fP"
89 Specifies the font to be used for the clock and tip windows. If this
90 option is not specified, fixed font is used.
92 .IP "*FvwmTaskBar: Fore \fIcolor\fP"
93 Specifies the color to use for the button names.
95 .IP "*FvwmTaskBar: Back \fIcolor\fP"
96 Specifies the background color for the bar and buttons.
98 .IP "*FvwmTaskBar: Colorset \fIcolorset\fP"
99 Tells the module to use colorset \fIcolorset\fP for the window
100 background and the foreground color of the buttons. Please refer
101 to the man page of the FvwmTheme module for details about colorsets.
103 .IP "*FvwmTaskBar: IconFore \fIcolor\fP"
104 Specifies the color to use for the button names which represent iconified
107 .IP "*FvwmTaskBar: IconBack \fIcolor\fP"
108 Specifies the color to use for the buttons which represent iconified windows.
110 .IP "*FvwmTaskBar: IconColorset \fIcolorset\fP"
111 Tells the module to use colorset \fIcolorset\fP for the
112 buttons of iconified windows. Please refer to the man page of
113 the FvwmTheme module for details about colorsets.
115 .IP "*FvwmTaskBar: FocusFore \fIcolor\fP"
116 Specifies the color to use for the button which represents the window
117 with the focus. If not specified the color specified by *FvwmTaskBar: Fore or
118 *FvwmTaskBar: Colorset is used.
120 .IP "*FvwmTaskBar: FocusBack \fIcolor\fP"
121 Specifies the color to use for the button which represents the window
122 with the focus. If not specified the color specified by *FvwmTaskBar: Back or
123 *FvwmTaskBar: Colorset is used. Note that the button which represents the window
124 with the focus is also highlighted. See "*FvwmTaskBar: NoBrightFocus".
126 .IP "*FvwmTaskBar: FocusColorset \fIcolorset\fP"
127 Tells the module to use colorset \fIcolorset\fP for the button
128 which represents the window with the focus. Please refer to the man page of
129 the FvwmTheme module for details about colorsets.
131 .IP "*FvwmTaskBar: NoBrightFocus"
132 By default the button which represents the window with the focus is
133 highlighted. This option disables this feature. \fINote:\fP you will
134 want this option if you use a pixmap (via FvwmTheme) for the background.
136 .IP "*FvwmTaskBar: TipsFore \fIcolor\fP"
137 Specifies the color to be used for the text in the tips windows.
139 .IP "*FvwmTaskBar: TipsBack \fIcolor\fP"
140 Specifies the background color for the tips windows.
142 .IP "*FvwmTaskBar: TipsColorset \fIcolorset\fP"
143 Tells the module to use colorset \fIcolorset\fP for the tips windows.
144 Please refer to the man page of the FvwmTheme module for details about
147 .IP "*FvwmTaskBar: AutoStick"
148 This option causes the taskbar to "stick" either to the top or bottom
149 of the screen, whichever is closest to the initial window placement. Any
150 further move operation is also subject to that behavior.
152 .IP "*FvwmTaskBar: AutoFocus"
153 This option causes the taskbar to raise a window if the cursor stays on a
154 button in taskbar and its tip is open.
156 .IP "*FvwmTaskBar: AutoHide [\fIpixels\fP]"
157 This option causes the taskbar to disappear leaving a narrow strip at the
158 bottom of the screen, and reappear only when the mouse is moved to that
159 strip. This option automatically enables AutoStick. The optional
160 \fIpixels\fP parameter specifies thickness of a strip (3 pixels by default).
162 .IP "*FvwmTaskBar: UseSkipList"
163 Tells FvwmTaskBar to not show the windows that are listed on a WindowListSkip
164 line in the configuration file.
166 .IP "*FvwmTaskBar: DeskOnly"
167 Tells FvwmTaskBar to show only windows that are on the current desktop.
168 When desktops are switched, the list of windows changes accordingly.
170 .IP "*FvwmTaskBar: PageOnly"
171 Tells FvwmTaskBar to show only windows that are on the same page
173 When a window enters or leaves the page, the list of windows changes
176 .IP "*FvwmTaskBar: ScreenOnly"
177 Tells FvwmTaskBar to show only windows that are only on the same
178 Xinerama screen as the task bar. When a window enters or leaves the
179 screen, the list of windows changes accordingly.
181 .IP "*FvwmTaskBar: UseIconNames"
182 Tells FvwmTaskBar to use the icon name of the window instead of the full
183 window name. This is useful to keep the width of the buttons small.
185 .IP "*FvwmTaskBar: ShowTransients"
186 Tells FvwmTaskBar to show the application transient windows also. By default
189 .IP "*FvwmTaskBar: Action \fIaction response\fP"
190 Tells FvwmTaskBar to do \fIresponse\fP when \fIaction\fP is done. The
191 currently supported \fIaction\fPs are: Click1, Click2, Click3 and so on.
192 By default the module supports 5 mouse buttons, but it can be compiled
193 to support more. The currently
194 supported \fIresponse\fPs are any fvwm built-in commands, including modules
195 and functions. Warning: Use of the former syntax that allowed to use comma
196 separated lists of commands is strongly discouraged due to synchronization
197 problems with fvwm. Please use complex fvwm functions instead (defined with
198 the AddToFunc command of fvwm).
200 In the \fIresponse\fP part, you can use a number of predefined
201 variables: \fI$left\fP, \fI$right\fP, \fI$top\fP and \fI$bottom\fP
202 are substituted by the left, right, top and bottom coordinates of
203 the button pressed. \fI$-left\fP, \fI$-right\fP, \fI$-top\fP and
204 \fI$-bottom\fP are substituted likewise, but the coordinates are
205 calculated from the bottom or the right edge of the screen instead
206 (for a button that is 5 pixels away from the right screen border,
207 $-right will be 5). \fI$width\fP and \fI$height\fP are replaced by
208 the width or height of the button. All this is done regardless of
209 any quoting characters. To get a literal '$' use the string '$$'.
211 .IP "*FvwmTaskBar: Button Title \fItitle\fP, Icon \fIicon\fP, Action \fIaction\fP"
212 Tells FvwmTaskBar to put a shortcut minibutton in the taskbar that does
213 \fIaction\fP when clicked. The icon can have a caption denoted by \fItitle\fP,
214 an icon denoted by \fIicon\fP, or a combination of the two. The icons will
215 appear to the immediate right of the start button, and will appear in the
216 order that they are declared in the .fvwm2rc file.
218 To invoke different commands for different mouse clicks, use this syntax:
222 *FvwmTaskBar: Button Title \fItitle\fP, Icon \fIicon\fP, \\
223 Action (Mouse 1) \fIaction1\fP, Action (Mouse 2) \fIaction2\fP
227 .IP "*FvwmTaskBar: ButtonWidth \fIwidth\fP"
228 Indicates the maximum width that window buttons should reach.
229 (the minimum is hard coded at 32).
231 .IP "*FvwmTaskBar: Pad \fIwidth\fP"
232 Specifies the space (in pixels) between the window buttons. If this option is
233 not specified, the default space is 3.
235 .IP "*FvwmTaskBar: WindowButtonsLeftMargin \fImargin\fP"
236 Specifies the space (in pixels) between the left side of the left-most window
237 button and the right side of the start button or right-most shortcut
238 minibutton. If this option is not specified, the default margin is 4.
240 .IP "*FvwmTaskBar: WindowButtonsRightMargin \fImargin\fP"
241 Specifies the space (in pixels) between the right side of the right-most
242 window button and the left side of the clock and tip window. If this option
243 is not specified, the default margin is 2.
245 .IP "*FvwmTaskBar: StartButtonRightMargin \fImargin\fP"
246 Specifies the space (in pixels) between the right side of the start button
247 and the left side of the left-most shortcut minibutton. If this option is
248 not specified, the default margin is 0.
250 .IP "*FvwmTaskBar: 3DFvwm"
251 By default the buttons use a special (asymmetric) 3D look. This option enables
252 a more classical 3D look (Ie., a la fvwm).
254 .IP "*FvwmTaskBar: HighlightFocus"
255 If the mouse pointer is over the taskbar, the window under the current
256 button is active. This behavior is like the TVTWM Icon Manager or
257 FvwmIconMan. \fINote:\fP If you use this option combined with FollowMouse
258 focus style, you'll want the taskbar to be ClickToFocus.
260 .IP "*FvwmTaskBar: ShowTips"
261 Enables the tips windows (by default disabled).
263 .IP "*FvwmTaskBar: NoIconAction \fIaction\fP"
264 Tells FvwmTaskBar to do \fIaction\fP is when a NoIcon style window is
265 iconified or de-iconified. Relevant coordinates are appended to \fIaction\fP so
266 that the icon can be traced to an FvwmTaskBar button. An example action
267 is "*FvwmTaskBar: NoIconAction SendToModule FvwmAnimate animate". A blank or
268 null action turns this feature off.
272 The following options deal more specifically with the status indicators
273 displayed at the right of the taskbar.
275 .IP "*FvwmTaskBar: ClockFormat \fIformat-string\fP"
276 This option specifies the time format for the digital clock.
277 It is a \fIstrftime(3)\fP compatible format string.
278 By default it is "%R". There is a 24 character limit for string
279 expansion. The string depends of locale settings.
281 .IP "*FvwmTaskBar: DateFormat \fIformat-string\fP"
282 This option specifies the date and/or time format for clock tip.
283 It is a \fIstrftime(3)\fP compatible format string.
284 By default it is "%A, %B %d, %Y". There is 40 characters limit for
285 string expansion. The string depends of locale settings now.
287 .IP "*FvwmTaskBar: UpdateInterval \fIseconds\fP"
288 Specifies how often the clock display should be refreshed, so that times of
289 the form HH:MM:SS can be used. By default 60 seconds.
291 .IP "*FvwmTaskBar: BellVolume \fIvolume\fP"
292 This sets the volume of the bell when mail is detected.
293 It is a value between 0 (no bell) and 100 (maximum volume).
294 By default it is set to 20.
296 .IP "*FvwmTaskBar: MailBox \fIpath\fP"
297 This option instructs the module to look for mail at the specified place.
298 It is a full pathname to the user's mailbox.
299 By default it is \fI/var/spool/mail/$USER_LOGIN\fP.
300 A value of 'None' instructs the module not to have a mail indicator.
302 .IP "*FvwmTaskBar: MailDir"
303 By default format of the user's mailbox is mbox. If this option is
304 specified, the maildir format is used instead.
306 .IP "*FvwmTaskBar: MailCommand \fIcommand\fP"
307 Specifies a \fIfvwm\fP command to be executed when double-clicking
310 .IP "*FvwmTaskBar: MailCheck \fIseconds\fP"
311 Specifies the interval between checks for new mail. The default is
312 ten seconds. A value of zero or less switches mail checking off.
314 Note, this value is only relable when greater than the \fIUpdateInterval\fP
315 value. The mail check is done either on any redraw (like a focus change)
316 or every nearest factor of the \fIUpdateInterval\fP value.
318 .IP "*FvwmTaskBar: IgnoreOldMail"
319 If set, draw no bitmap if there is no new mail.
322 The following options deal with the Start button at the left of the taskbar:
324 .IP "*FvwmTaskBar: StartCommand \fIcommand\fP"
325 This option specifies a command to run when the start button is
326 pressed. Some strings are replaced in the command when it is
327 executed like for the other buttons. See
329 for details. If both,
330 .BR StartCommand " and " StartMenu
331 have been defined, the command is executed first and the menu is
332 opened afterwards. The
334 can be used to exactly place a menu atop a button.
338 *FvwmTaskBar: StartCommand Popup StartMenu rectangle \\
339 $widthx$height+$left+$top 0 -100m
343 To invoke different commands for different mouse clicks, use this syntax:
347 *FvwmTaskBar: StartCommand (Mouse 1) Popup Mouse1Menu
348 *FvwmTaskBar: StartCommand (Mouse 3) Popup Mouse3Menu
352 .IP "*FvwmTaskBar: StartName \fIstring\fP"
353 This option specifies the string displayed in the Start button.
354 ('Start' by default). If the string is omitted no string is
357 .IP "*FvwmTaskBar: StartMenu \fIstring\fP"
358 This option specifies the pop up menu to invoke when the start button is
359 pressed. ('StartMenu' by default). The module send a 'Popup StartMenu'
360 command to the fvwm window manager.
362 To invoke different menus for different mouse clicks, use this syntax:
366 *FvwmTaskBar: StartMenu (Mouse 1) Mouse1Menu
367 *FvwmTaskBar: StartMenu (Mouse 3) Mouse3Menu
371 .IP "*FvwmTaskBar: StartIcon \fIicon-name\fP"
372 This option specifies the name of the icon to display at the left of the Start
375 .IP "*FvwmTaskBar: NoDefaultStartButton"
376 This option removes the default start button if no start button configuration
377 options are given. It is useful to remove the start button. Note that this is
378 the default if you use the Button configuration option.
380 .SH SAMPLE CONFIGURATION
381 The following are excerpts from a .fvwm2rc file which describe FvwmTaskBar
382 initialization commands:
387 # Start the taskbar on fvwm startup and restart
390 AddToFunc "StartFunction" "I" Module FvwmTaskBar
396 AddToFunc DeiconifyRaiseAndFocus
402 # Set the style for the taskbar window, keep always on top of another
406 Style "FvwmTaskBar" NoTitle,BorderWidth 4, HandleWidth 4,Sticky,\\
407 StaysOnTop,WindowListSkip,CirculateSkip
409 #------------------------------------ taskbar
410 *FvwmTaskBar: Back #c3c3c3
411 *FvwmTaskBar: Fore black
412 *FvwmTaskBar: TipsBack bisque
413 *FvwmTaskBar: TipsFore black
414 *FvwmTaskBar: Geometry +0-0
415 *FvwmTaskBar: Font -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*
416 *FvwmTaskBar: SelFont -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
417 *FvwmTaskBar: StatusFont fixed
419 *FvwmTaskBar: Action Click1 DeiconifyRaiseAndFocus
420 *FvwmTaskBar: Action Click2 Iconify On
421 *FvwmTaskBar: Action Click3 Lower
423 *FvwmTaskBar: UseSkipList
424 *FvwmTaskBar: UseIconNames
425 *FvwmTaskBar: AutoStick
426 *FvwmTaskBar: ShowTips
427 *FvwmTaskBar: NoIconAction SendToModule FvwmAnimate animate
429 *FvwmTaskBar: ButtonWidth 180
430 *FvwmTaskBar: BellVolume 20
431 *FvwmTaskBar: MailBox /var/spool/mail/
432 *FvwmTaskBar: MailCommand Exec xterm -e mail
433 *FvwmTaskBar: ClockFormat %I:%M %p
435 *FvwmTaskBar: StartName Start
436 *FvwmTaskBar: StartMenu StartMenu
437 *FvwmTaskBar: StartIcon mini-exp.xpm
439 *FvwmTaskBar: Button Title Mozilla, Action exec exec /usr/local/mozilla/mozilla
440 *FvwmTaskBar: Button Icon mini.term.xpm, Action exec exec xterm
441 *FvwmTaskBar: Button Title Freeamp, Icon mini.cd.xpm, Action exec exec freeamp
447 There is a bug report that FvwmTaskBar doesn't work well with
451 .IP "\fIDavid Barth\fP <barth@di.epfl.ch>"
454 These people have contributed to \fBFvwmTaskBar\fP:
456 .IP "\fIDanny Dulai\fP <nirva@ishiboo.com>"
457 .IP "\fIfvwm workers\fP <fvwm-workers@fvwm.org>"