Debian Codegraph @

default-config/config

raw ◀ ▶
2 Debian patches touch this file
1 ##################################
2 # ____________________________
3 # ( _________________________)
4 # ) (__ _ _ _ _
5 # ( __)( \/ )( \/\/ )/\/\
6 # ) ( \ / \ // \
7 # (___) \/ \/\/(_/\/\_) 2.6
8 #
9 #
10 # This is the default configuration file shipped with fvwm.
11 #
12 # This config file is organized as follows:
13 #
14 # 1: Functions
15 # 2: Styles
16 # 3: Colorsets
17 # 4: Menus
18 # 5: Bindings
19 # 6: Decor
20 # 7: Modules
21 #
22 #################################
23
24 # InfoStoreAdd can be used to store variable data internal to fvwm.
25 # The variable can then be used in the configuration as $[infostore.name].
26 #
27 # You can also use environment variables but for data internal to fvwm
28 # use InfoStore variables instead.
29 #
30 # The following is used in various menus and also sets the terminal
31 # that FvwmConsole uses. Change this to your terminal of choice
•32 InfoStoreAdd terminal x-terminal-emulator
33
34 ###########
35 # 1: Functions
36 #
37 # Fvwm can use custom functions for various tasks.
38 # The syntax for defining a function named FunctionName is:
39 #
40 # DestroyFunc FunctionName
41 # AddToFunc FunctionName
42 # + I [Action to do Immediately]
43 # + C [Action to do on a Mouse Click]
44 # + D [Action to do on a Mouse Double Click]
45 # + H [Action to do on a Mouse Hold]
46 # + M [Action to do on a Mouse Motion]
47 ###########
48
49 # Start Function
50 #
51 # The start function is run right after fvwm is done reading
52 # the config file. This function run after each restart
53 # so using Test (Init) or Test (Restart) can further control
54 # actions that are run during the first time run (Init) or
55 # actions that are run after a restart.
56 DestroyFunc StartFunction
57 AddToFunc StartFunction
58 + I Test (Init) InitBackground
59 + I Test (Init) Module FvwmBanner
60 + I Module FvwmButtons RightPanel
61 + I Module FvwmEvent EventNewDesk
62
63 # Function to set background when fvwm starts
64 DestroyFunc InitBackground
65 AddToFunc InitBackground
66 + I Test (f $[FVWM_USERDIR]/.BGdefault) \
•67 Exec exec fvwm2-root $[FVWM_USERDIR]/.BGdefault
68 + I TestRc (NoMatch) Exec exec fvwm2-root \
69 $[FVWM_DATADIR]/default-config/images/background/bg1.png
70
71 # Mouse Bindings Functions
72 DestroyFunc RaiseMoveX
73 AddToFunc RaiseMoveX
74 + I Raise
75 + M $0
76 + D $1
77
78 DestroyFunc RaiseMove
79 AddToFunc RaiseMove
80 + I Raise
81 + M $0
82
83 DestroyFunc MoveToCurrent
84 AddToFunc MoveToCurrent
85 + I ThisWindow MoveToPage
86 + I ThisWindow MoveToDesk
87
88 # Function: ViewManPage $0
89 #
90 # This function loads the man page $0 in an terminal
91 # and is used with the help menu.
92 DestroyFunc ViewManPage
93 AddToFunc ViewManPage
94 + I Exec exec $[infostore.terminal] -g 80x40 \
95 -n "Manual Page - $0" -T "Manual Page - $0" -e man "$0"
96
97 # Function: SetBG $0
98 #
99 # SetBG is used with the background menu to set the background
100 # image and configure it to be loaded the next time fvwm is run.
101 # Note, fvwm-root can't use .jpeg or resize images. Use something
102 # like display, feh, etc.
103 DestroyFunc SetBG
104 AddToFunc SetBG
105 + I Test (f $[FVWM_USERDIR]/images/background/$0) \
•106 Exec exec fvwm2-root $[FVWM_USERDIR]/images/background/$0
107 + I TestRc (Match) Exec exec ln -fs images/background/$0 \
108 $[FVWM_USERDIR]/.BGdefault
109 + I TestRc (Match) Break
110 + I Test (!f $[FVWM_DATADIR]/default-config/images/background/$0) Break
•111 + I Exec exec fvwm2-root $[FVWM_DATADIR]/default-config/images/background/$0
112 + I Exec exec ln -fs $[FVWM_DATADIR]/default-config/images/background/$0 \
113 $[FVWM_USERDIR]/.BGdefault
114
115
116 # Function: IconManClick
117 #
118 # This function is run from FvwmIconMan when the button is clicked.
119 DestroyFunc IconManClick
120 AddToFunc IconManClick
121 + I ThisWindow (Raised, !Shaded, !Iconic, CurrentPage) Iconify
122 + I TestRc (Match) Break
123 + I ThisWindow WindowShade off
124 + I ThisWindow Iconify off
125 + I ThisWindow Raise
126 + I ThisWindow (AcceptsFocus) FlipFocus
127
128 # Function: ToggleTitle
129 #
130 # This function will toggle if fvwm shows the TitleBar.
131 DestroyFunc ToggleTitle
132 AddToFunc ToggleTitle
133 + I ThisWindow (State 1) WindowStyle Title
134 + I TestRc (Match) State 1 False
135 + I TestRc (Match) Break
136 + I WindowStyle !Title
137 + I State 1 True
138
139 # Function: ChangeDesk
140 #
141 # This function is called by FvwmEvent every time the Desk is changed.
142 DestroyFunc ChangeDesk
143 AddToFunc ChangeDesk
144 + I SendToModule FvwmButtons ChangeButton desk0 Colorset 10
145 + I SendToModule FvwmButtons ChangeButton desk1 Colorset 10
146 + I SendToModule FvwmButtons ChangeButton desk2 Colorset 10
147 + I SendToModule FvwmButtons ChangeButton desk3 Colorset 10
148 + I SendToModule FvwmButtons ChangeButton desk$0 Colorset 11
149
150
151 #############
152 # 2: Styles #
153 #############
154
155 # Desktops and Pages
156 #
157 # Fvwm has both Virtual Desktops and Pages. Each Desktop is built from
158 # a grid of Pages. The following sets the name of four Desktops and then
159 # divides each Desktop into a 2x2 grid of Pages that are positioned as
160 #
161 # +---+---+
162 # | | |
163 # +---+---+
164 # | | |
165 # +---+---+
166 #
167 DesktopName 0 Main
168 DesktopName 1 Desk1
169 DesktopName 2 Desk2
170 DesktopName 3 Desk3
171 DesktopSize 2x2
172
173 # EdgeScroll will move the view port between the Pages when the mouse
174 # moves to the edge of the screen. This set the amount of distance to
175 # scroll at 100% (full page) and the EdgeResistance which is a timer
176 # for how long the mouse as at the edge before it scrolls.
177 #
178 # Set EdgeScroll 0 0 and/or EdgeResistance -1 to disable.
179 EdgeScroll 100 100
180 EdgeResistance 450
181 EdgeThickness 1
182 Style * EdgeMoveDelay 350, EdgeMoveResistance 350
183
184 # EwmhBaseStruts [left] [right] [top] [bottom]
185 # Reserves space along the edge(s) of the Screen that will not
186 # be covered when maximizing or placing windows.
187 EwmhBaseStruts 0 120 0 0
188
189 # This sets the ClickTime and MoveThreshold used to determine
190 # Double Clicks, Hold and Move for the mouse.
191 ClickTime 250
192 MoveThreshold 3
193
194 # Sets the focus style to SloppyFocus and a mouse click
195 # in a window will Raise it.
196 Style * SloppyFocus, MouseFocusClickRaises
197
198 # Default Font
199 DefaultFont "xft:Sans:Bold:size=8:antialias=True"
200
201 # Window Placement
202 Style * MinOverlapPlacement, GrabFocusOff, !UsePPosition
203
204 # Sets all windows to OpaqueMove (vs a wired frame) and windows will
205 # snap to each other and the edge of the screen.
206 OpaqueMoveSize unlimited
207 Style * ResizeOpaque, SnapAttraction 15 SameType ScreenAll, SnapGrid
208
209 # Transient Windows (such as open file windows)
210 Style * DecorateTransient, StackTransientParent
211 Style * !FPGrabFocusTransient, FPReleaseFocusTransient
212
213 # WindowShade
214 Style * WindowShadeScrolls, WindowShadeSteps 10
215
216 # Ignore Numlock and other modifiers for bindings
217 # See http://fvwm.org/documentation/faq/#why-do-numlock-capslock-and-scrolllock-interfere-with-clicktofocus-andor-my-mouse-bindings
218 IgnoreModifiers L25
219
220 # Decor Styles
221 Style * BorderWidth 5, HandleWidth 5, MWMButtons, FvwmBorder, FirmBorder
222 Style * Colorset 1, HilightColorset 2
223 Style * BorderColorset 3, HilightBorderColorset 4
224
225 # Disable Icons from appearing on desktop.
226 # Comment this out or use Style * Icon to get the icons back.
227 Style * !Icon
228
229 # Window Specific Styles
230 Style RightPanel !Title, !Borders, !Handles, Sticky, \
231 WindowListSkip, NeverFocus
232 Style ConfirmQuit !Title, PositionPlacement Center, WindowListSkip, Layer 6
233 Style FvwmIdent WindowListSkip
234
235 #######
236 # 3: Colorsets
237 #
238 # Colorsets can be used to configure the color of the various
239 # parts of fvwm such as window decor, menus, modules, etc.
240 #
241 # Colorset Convention
242 #
243 # 0 - Default
244 # 1 - Inactive Windows
245 # 2 - Active Window
246 # 3 - Inactive Windows Borders
247 # 4 - Active Windows Borders
248 # 5 - Menu - Inactive Item
249 # 6 - Menu - Active Item
250 # 7 - Menu - Grayed Item
251 # 8 - Menu - Title
252 # 9 - Reserved
253 # 10+ Modules
254 # 10 - Module Default
255 # 11 - Module Hilight
256 # 12 - Module ActiveButton (Mouse Hover)
257 # 13 - FvwmPager Active Page
258 # 14 - FvwmIconMan Iconified Button
259 ###########
260 Colorset 0 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
261 Colorset 1 fg #000000, bg #8f9f8f, hi, sh, Plain, NoShape
262 Colorset 2 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
263 Colorset 3 fg black, bg #4d4d4d, hi #676767, sh #303030, Plain, NoShape
264 Colorset 4 fg black, bg #2d2d2d, hi #474747, sh #101010, Plain, NoShape
265 Colorset 5 fg #000000, bg #ffffff, hi, sh, Plain, NoShape
266 Colorset 6 fg #ffffff, bg #2d2d2d, hi, sh, Plain, NoShape
267 Colorset 7 fg grey30, bg #ffffff, hi, sh, Plain, NoShape
268 Colorset 8 fg #ffffff, bg #003c3c, hi, sh, Plain, NoShape
269 Colorset 10 fg #ffffff, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
270 Colorset 11 fg #ffffff, bg #1a6e99, hi #ffffff, sh #ffffff, Plain, NoShape
271 Colorset 12 fg #2d2d2d, bg #ffffff, hi, sh, Plain, NoShape
272 Colorset 13 fg #ffffff, bg #006c6c, hi, sh, Plain, NoShape
273 Colorset 14 fg #555555, bg #003c3c, hi #aaaaaa, sh #999999, Plain, NoShape
274
275 #######
276 # 4: Menus
277 ###########
278 MenuStyle * MenuColorset 5, ActiveColorset 6, GreyedColorset 7, TitleColorset 8
279 MenuStyle * Hilight3DOff, HilightBack, HilightTitleBack, SeparatorsLong
280 MenuStyle * TrianglesSolid, TrianglesUseFore
281 MenuStyle * ItemFormat "%|%3.1i%5.3l%5.3>%|"
282 MenuStyle * Font "xft:Sans:Bold:size=8:antialias=True"
283
284 # Root Menu
285 #
286 # The root menu will PopUp with a click in the root
287 # window or using alt-f1 (or menu).
288 DestroyMenu MenuFvwmRoot
289 AddToMenu MenuFvwmRoot "Fvwm" Title
290 + "&Programs%icons/programs.png%" Popup MenuPrograms
291 + "XDG &Menu%icons/apps.png%" Popup XDGMenu
292 + "&XTerm%icons/terminal.png%" Exec exec $[infostore.terminal]
293 + "" Nop
294 + "Fvwm&Console%icons/terminal.png%" Module FvwmConsole -terminal $[infostore.terminal]
295 + "&Wallpapers%icons/wallpaper.png%" Popup BGMenu
296 + "M&an Pages%icons/help.png%" Popup MenuFvwmManPages
297 + "Copy Config%icons/conf.png%" FvwmScript FvwmScript-ConfirmCopyConfig
298 + "" Nop
299 + "Re&fresh%icons/refresh.png%" Refresh
300 + "&Restart%icons/restart.png%" Restart
301 + "&Quit%icons/quit.png%" Module FvwmScript FvwmScript-ConfirmQuit
302
303 # Generate XDGMenu
•304 PipeRead "fvwm2-menu-desktop -e"
305
306 # Programs Menu
307 #
308 # This test for some common programs and adds them to the menu.
309 # When adding programs you don't need to use the Test (x foo)
310 # lines as this is only to help make this menu portable.
311 DestroyMenu MenuPrograms
312 AddToMenu MenuPrograms "Programs" Title
313 Test (x chromium) + "Chromium" Exec exec chromium
314 Test (x firefox) + "Firefox" Exec exec firefox
315 Test (x google-chrome) + "Google-Chrome" Exec exec google-chrome
316 Test (x gvim) + "gVim" Exec exec gvim
317 Test (x xemacs) + "XEmacs" Exec exec xemacs
318 Test (x gimp) + "Gimp" Exec exec gimp
319 Test (x vlc) + "VLC" Exec exec vlc
320
321 # Background Menu
322 #
323 # Backgrounds are located in ~/.fvwm/images/background/
324 # Menu icons are located in ~/.fvwm/images/bgicons/
325 DestroyMenu BGMenu
326 AddToMenu BGMenu "Wallpapers" Title
327 + "Floral%bgicons/bg1.png%" SetBG bg1.png
328 + "Circles%bgicons/bg2.png%" SetBG bg2.png
329 + "Space%bgicons/bg3.png%" SetBG bg3.png
330
331 # Window Operations Menus
332 DestroyMenu MenuWindowOps
333 AddToMenu MenuWindowOps
334 + "Move" Move
335 + "Resize" Resize
336 + "Iconify" Iconify
337 + "Maximize" Maximize
338 + "Shade" WindowShade
339 + "Stick" Stick
340 + "" Nop
341 + "Close" Close
342 + "More..." Menu MenuWindowOpsLong This 0 0
343
344 DestroyMenu MenuWindowOpsLong
345 AddToMenu MenuWindowOpsLong
346 + "Move" Move
347 + "Resize" Resize
348 + "(De)Iconify" Iconify
349 + "(Un)Maximize" Maximize
350 + "(Un)Shade" WindowShade
351 + "(Un)Sticky" Stick
352 + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
353 + "Send To" Popup MenuSendTo
354 + "" Nop
355 + "Close" Close
356 + "Destroy" Destroy
357 + "" Nop
358 + "Raise" Raise
359 + "Lower" Lower
360 + "" Nop
361 + "StaysOnTop" Pick (CirculateHit) Layer 0 6
362 + "StaysPut" Pick (CirculateHit) Layer 0 4
363 + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
364 + "" Nop
365 + "Identify" Module FvwmIdent
366
367 DestroyMenu MenuIconOps
368 AddToMenu MenuIconOps
369 + "(De)Iconify" Iconify
370 + "(Un)Maximize" Maximize
371 + "(Un)Shade" WindowShade
372 + "(Un)Sticky" Stick
373 + "(No)TitleBar" Pick (CirculateHit) ToggleTitle
374 + "Send To" Popup MenuSendTo
375 + "" Nop
376 + "Close" Close
377 + "Destroy" Destroy
378 + "" Nop
379 + "Raise" Raise
380 + "Lower" Lower
381 + "" Nop
382 + "StaysOnTop" Pick (CirculateHit) Layer 0 6
383 + "StaysPut" Pick (CirculateHit) Layer 0 4
384 + "StaysOnBottom" Pick (CirculateHit) Layer 0 2
385 + "" Nop
386 + "Identify" Module FvwmIdent
387
388 DestroyMenu MenuSendTo
389 AddToMenu MenuSendTo
390 + "Current" MoveToCurrent
391 + "Page" PopUp MenuSendToPage
392 + "Desk" PopUp MenuSendToDesk
393
394 DestroyMenu MenuSendToDesk
395 AddToMenu MenuSendToDesk
396 + "Desk 0" MoveToDesk 0 0
397 + "Desk 1" MoveToDesk 0 1
398 + "Desk 2" MoveToDesk 0 2
399 + "Desk 3" MoveToDesk 0 3
400
401 DestroyMenu MenuSendToPage
402 AddToMenu MenuSendToPage
403 + "Page (0,0)" MoveToPage 0 0
404 + "Page (0,1)" MoveToPage 0 1
405 + "Page (1,0)" MoveToPage 1 0
406 + "Page (1,1)" MoveToPage 1 1
407
408
409 # Fvwm Man Pages (Help) Menu
410 DestroyMenu MenuFvwmManPages
411 AddToMenu MenuFvwmManPages "Help" Title
•412 + "fvwm2" ViewManPage fvwm2
413 + "FvwmAnimate" ViewManPage Fvwm2Animate
414 + "FvwmAuto" ViewManPage Fvwm2Auto
415 + "FvwmBacker" ViewManPage Fvwm2Backer
416 + "FvwmBanner" ViewManPage Fvwm2Banner
417 + "FvwmButtons" ViewManPage Fvwm2Buttons
418 + "FvwmCommand" ViewManPage Fvwm2Command
419 + "FvwmConsole" ViewManPage Fvwm2Console
420 + "FvwmEvent" ViewManPage Fvwm2Event
421 + "FvwmForm" ViewManPage Fvwm2Form
422 + "FvwmIconMan" ViewManPage Fvwm2IconMan
423 + "FvwmIdent" ViewManPage Fvwm2Ident
424 + "FvwmPager" ViewManPage Fvwm2Pager
425 + "FvwmPerl" ViewManPage Fvwm2Perl
426 + "FvwmProxy" ViewManPage Fvwm2Proxy
427 + "FvwmRearrange" ViewManPage Fvwm2Rearrange
428 + "FvwmScript" ViewManPage Fvwm2Script
429 + "" Nop
430 + "fvwm2-root" ViewManPage fvwm2-root
431 + "fvwm2-menu-desktop" ViewManPage fvwm2-menu-desktop
432 + "fvwm2-menu-directory" ViewManPage fvwm2-menu-directory
433 + "fvwm2-menu-headlines" ViewManPage fvwm2-menu-headlines
434 + "fvwm2-menu-xlock" ViewManPage fvwm2-menu-xlock
435 + "fvwm2-config" ViewManPage fvwm2-config
436
437 #######
438 # 5: Mouse and Key bindings
439 #
440 # Contexts:
441 # R = Root Window rrrrrrrrrrrrrrrrrrrrrr
442 # W = Application Window rIrrrr<---------^rrrrr
443 # F = Frame Corners rrrrrr[13TTTT642]rrrrr
444 # S = Frame Sides rIrrrr[wwwwwwwww]rrrrr
445 # T = Title Bar rrrrrr[wwwwwwwww]rrrrr
446 # I = Icon rIrrrrv_________>rrrrr
447 # rrrrrrrrrrrrrrrrrrrrrr
448 #
449 # Numbers are buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
450 #
451 # Modifiers: (A)ny, (C)ontrol, (S)hift, (M)eta, (N)othing
452 #
453 # Format: Key <X> <Context> <Modifier> <Action>
454 # Mouse <X> <Context> <Modifier> <Action>
455 ####################
456
457 # Alt-F1 or Menu to load the root menu and Alt-Tab for a WindowList.
458 # Ctrl-F1/F2/F3/F4 will switch between the Virtual Desktops.
459 # Super_R (windows key) will launch a terminal.
460 #
461 # Silent supresses any errors (such as keyboards with no Menu key).
462 Silent Key F1 A M Menu MenuFvwmRoot
463 Silent Key Menu A A Menu MenuFvwmRoot
464 Silent Key Tab A M WindowList Root c c NoDeskSort, SelectOnRelease Meta_L
465 Silent Key F1 A C GotoDesk 0 0
466 Silent Key F2 A C GotoDesk 0 1
467 Silent Key F3 A C GotoDesk 0 2
468 Silent Key F4 A C GotoDesk 0 3
469 Silent Key Super_R A A Exec exec $[infostore.terminal]
470
471 # Window Buttons: [1 3 5 7 9 TTTTT 0 8 6 4 2]
472 # 1 - Open the WindowOps menu.
473 # 2 - Close on single click, Destroy on double click.
474 # 4 - Maximize (right/middle button will only maximize vertical/horizontal)
475 # 6 - Iconify (minimize)
476 Mouse 1 1 A Menu MenuWindowOps Delete
477 Mouse 1 2 A Close
478 Mouse 1 4 A Maximize 100 100
479 Mouse 2 4 A Maximize 0 100
480 Mouse 3 4 A Maximize 100 0
481 Mouse 1 6 A Iconify
482
483 # TitleBar: Click to Raise, Move, Double Click to Maximize
484 # Mouse Wheel Up/Down to WindowShade On/Off
485 # Borders: Click to raise, Move to Resize
486 # Root Window: Left Click - Main Menu
487 # Right Click - WindowOps Menu
488 # Middle Click - Window List Menu
489 # Right click TitleBar/Borders for WindowOps Menu
490 Mouse 1 T A RaiseMoveX Move Maximize
491 Mouse 1 FS A RaiseMove Resize
492 Mouse 4 T A WindowShade True
493 Mouse 5 T A WindowShade False
494 Mouse 1 R A Menu MenuFvwmRoot
495 Mouse 2 R A WindowList
496 Mouse 3 R A Menu MenuWindowOpsLong
497 Mouse 1 I A RaiseMoveX Move "Iconify off"
498 Mouse 3 T A Menu MenuWindowOps
499 Mouse 3 I A Menu MenuIconOps
500
501 #######
502 # 6: Window Decor
503 #
504 # Buttons Locations: [1 3 5 7 9 TTTTT 0 8 6 4 2]
505 #
506 # 1 - WindowOps Menu
507 # 2 - Close
508 # 4 - Maximize
509 # 6 - Minimize
510 ###########
511 TitleStyle Centered Height 18 -- Flat
512 ButtonStyle All ActiveUp Vector 5 15x15@4 15x85@3 85x85@3 85x15@3 \
513 15x15@3 -- Flat
514 ButtonStyle All ToggledActiveUp Vector 5 15x15@4 15x85@3 85x85@3 \
515 85x15@3 15x15@3 -- Flat
516 ButtonStyle All ActiveDown Vector 5 20x20@4 20x80@3 80x80@3 80x20@3 \
517 20x20@3 -- Flat
518 ButtonStyle All ToggledActiveDown Vector 5 20x20@4 20x80@3 80x80@3 \
519 80x20@3 20x20@3 -- Flat
520 ButtonStyle All ToggledInactive Vector 5 47x47@3 57x53@3 53x53@3 \
521 53x47@3 47x47@3 -- Flat
522 ButtonStyle All Inactive Vector 5 47x47@3 57x53@3 53x53@3 53x47@3 \
523 47x47@3 -- Flat
524 AddButtonStyle 1 Active Vector 5 45x45@3 55x45@3 55x55@3 45x55@3 45x45@3
525 AddButtonStyle 2 Active Vector 4 35x35@3 65x65@3 65x35@4 35x65@3
526 AddButtonStyle 4 Active Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 30x70@3 \
527 30x50@4 50x50@3 50x70@3
528 AddButtonStyle 4 ToggledActiveUp Vector 8 30x70@3 30x30@3 70x30@3 70x70@3 \
529 30x70@3 50x30@4 50x50@3 70x50@3
530 AddButtonStyle 6 Active Vector 5 35x60@3 65x60@3 65x50@3 35x50@3 35x60@3
531 ButtonStyle All - Clear
532 ButtonStyle 1 - MwmDecorMenu
533 ButtonStyle 4 - MwmDecorMax
534 ButtonStyle 6 - MwmDecorMin
535
536 ############
537 # 7: Modules
538 #############
539
540 # FvwmIdent
541 #
542 # FvwmIdent is a module that can be used to get the various info about
543 # a window. One use is getting the class/resource/name of a window.
544 DestroyModuleConfig FvwmIdent:*
545 *FvwmIdent: Colorset 10
546 *FvwmIdent: Font "xft:Sans:size=10:antialias=True"
547
548 # FvwmBanner
549 #
550 # This displays the Fvwm Logo for 5 seconds. This is displayed
551 # when fvwm starts.
552 DestroyModuleConfig FvwmBanner:*
553 *FvwmBanner: NoDecor
554 *FvwmBanner: Timeout 5
555
556 # FvwmScript
557 #
558 # FvwmScript is a module that allows one to write custom desktop
559 # widgets and various other tools. This config uses two FvwmScripts.
560 # - DateTime - uses the output of "date" to display the date/time
561 # on the RightPanel.
562 # - Quit - This is a popup that asks for quit confirmation before
563 # quitting fvwm.
564 DestroyModuleConfig FvwmScript:*
565 *FvwmScript: DefaultColorset 10
566
567 # FvwmButtons - RightPanel
568 #
569 # FvwmButtons is a powerful module that can be used to build custom
570 # panels and docks. This config uses FvwmButtons to build the RightPanel.
571 # The panel contains buttons to switch desks, FvwmPager, a system tray,
572 # FvwmIconMan (list of running windows), and a clock.
573 #
574 # Note - To use the system tray you must have "stalonetray" installed.
575 DestroyModuleConfig RightPanel:*
576 *RightPanel: Geometry 120x$[vp.height]-0+0
577 *RightPanel: Colorset 10
578 *RightPanel: Rows $[vp.height]
579 *RightPanel: Columns 120
580 *RightPanel: Frame 0
581 *RightPanel: Font "xft:Sans:Bold:size=10:antialias=True"
582 *RightPanel: (120x45, Icon "fvwm-logo-small.png", Frame 0)
583 *RightPanel: (120x5, Frame 0)
584 *RightPanel: (10x20, Frame 0)
585 *RightPanel: (25x20, Id desk0, Title "0", Action (Mouse 1) GotoDesk 0 0, Colorset 11, ActiveColorset 12, Frame 0)
586 *RightPanel: (25x20, Id desk1, Title "1", Action (Mouse 1) GotoDesk 0 1, ActiveColorset 12, Frame 0)
587 *RightPanel: (25x20, Id desk2, Title "2", Action (Mouse 1) GotoDesk 0 2, ActiveColorset 12, Frame 0)
588 *RightPanel: (25x20, Id desk3, Title "3", Action (Mouse 1) GotoDesk 0 3, ActiveColorset 12, Frame 0)
589 *RightPanel: (10x20, Frame 0)
590 *RightPanel: (5x80, Frame 0)
591 *RightPanel: (110x80, Swallow FvwmPager 'Module FvwmPager *', Frame 0)
592 *RightPanel: (5x80, Frame 0)
593 *RightPanel: (120x5, Frame 0)
594 Test (x stalonetray) *RightPanel: (120x20, Swallow(NoClose,UseOld) \
595 stalonetray 'Exec exec stalonetray --config \
596 "$[FVWM_DATADIR]/default-config/.stalonetrayrc"', Frame 0)
597 Test (x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-225)), \
598 Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"'
599 Test (!x stalonetray) PipeRead 'echo "*RightPanel: (120x$(($[vp.height]-205)),\
600 Top, Swallow FvwmIconMan \'Module FvwmIconMan\', Frame 0)"'
601 *RightPanel: (120x45, Swallow DateTime 'Module FvwmScript FvwmScript-DateTime',\
602 Frame 0)
603 *RightPanel: (120x5, Frame 0)
604
605 # FvwmPager
606 #
607 # This module displays the location of the windows on the various Pages
608 # and Desks. This is setup to show only the Pages on the current Desk.
609 DestroyModuleConfig FvwmPager:*
610 *FvwmPager: Colorset * 10
611 *FvwmPager: HilightColorset * 13
612 *FvwmPager: BalloonColorset * 10
613 *FvwmPager: WindowColorsets 10 11
614 *FvwmPager: Font None
615 *FvwmPager: Balloons All
616 *FvwmPager: BalloonFont "xft:Sans:Bold:size=8:antialias=True"
617 *FvwmPager: BallonYOffset +2
618 *FvwmPager: Window3dBorders
619 *FvwmPager: MiniIcons
620
621 # FvwmIconMan
622 #
623 # FvwmIconMan is a powerful tool to list and manage windows. This
624 # is used as the window list in the panel or taskbar.
625 DestroyModuleConfig FvwmIconMan:*
626 *FvwmIconMan: UseWinList true
627 *FvwmIconMan: ButtonGeometry 120x20
628 *FvwmIconMan: ManagerGeometry 1x1
629 *FvwmIconMan: Colorset 10
630 *FvwmIconMan: FocusColorset 11
631 *FvwmIconMan: IconColorset 14
632 *FvwmIconMan: FocusAndSelectColorset 12
633 *FvwmIconMan: SelectColorset 12
634 *FvwmIconMan: IconAndSelectColorset 12
635 *FvwmIconMan: DrawIcons always
636 *FvwmIconMan: ReliefThickness 0
637 *FvwmIconMan: Format "%t"
638 *FvwmIconMan: Font "xft:Sans:Bold:size=8:antialias=True"
639 *FvwmIconMan: Action Mouse 0 A ret
640 *FvwmIconMan: Action Mouse 1 A sendcommand IconManClick
641 *FvwmIconMan: Action Mouse 3 A sendcommand "Menu MenuIconOps"
642 *FvwmIconMan: Resolution global
643 *FvwmIconMan: Tips needed
644 *FvwmIconMan: Sort id
645
646 # FvwmEvent
647 #
648 # FvwmEvent is a module that can run an action or function
649 # on specific events. This instance changes which desk number
650 # is highlighted when the desk is changed.
651 DestroyModuleConfig EventNewDesk:*
652 *EventNewDesk: PassID
653 *EventNewDesk: new_desk ChangeDesk
654
655 # FvwmForm
656 #
657 # FvwmForm is a module that can be used to build a GUI
658 # form. Used with fvwm-menu-desktop-config.fpl.
659 # This sets the default colorsets.
660 *FvwmFormDefault: Colorset 10
661 *FvwmFormDefault: ItemColorset 13
662
663 # Local configuration file. For use with the default-config.
664 #
665 # If $FVWMUSER_DIR/local.config ($HOME/.fvwm/local.config by default)
666 # exists, then read it. This allows changes to default-config settings
667 # without needing a full copy of the default-config. This will also allow
668 # default-config changes to get used after upgrades (if applicable).
669 Test (f $[FVWM_USERDIR]/local.config) Read $[FVWM_USERDIR]/local.config