1 ##########################################################################
2 # Fvwm - F? Virtual Window Manager, Version 2.x (fvwm) Configuration File
6 ##########################################################################
9 # Not normally needed; use configure to set defaults at compile time.
11 # IMPORTANT: if you decide to set a ModulePath, please note that modules
12 # are normally installed into a version-dependent
13 # directory. Be sure to update this file after installing
16 # Colon seperated unix directory paths for Modules, and for images
17 #ModulePath /usr/local/libexec/fvwm/2.x.y
18 #ImagePath /usr/include/X11/pixmaps:/usr/local/include/X11/pixmaps
20 ############################################################################
23 # Set the fore and back border colors for the window that has focus
24 Style * HilightFore linen, HilightBack SteelBlue4
26 # Set fore/back border colors for all other windows
27 Style * Color linen/VioletRed4
29 # Set colors/font for pop-up menus
30 Menustyle * fvwm, Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
31 MenuStyle * Foreground maroon, Background grey60, Greyed grey40
32 #Menustyle * fvwm, Font 7x13bold
33 #MenuStyle * Foreground black, Background grey, Greyed slategrey
35 # Set fonts to use on title bar and icon label
37 # Style * Font -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-*
39 # Style * IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
41 ############################################################################
44 # Auto Place Icons is a nice feature (Left Top Right Bottom)
45 Style * IconBox -215 200 -1 -100
47 # If you don't want icons for some or all windows (or all of them!)
50 # If you want ALL icons to follow you around the desktop (Sticky)
53 ############################################################################
56 # Does the window with focus control the colormap, or the one under the mouse
57 # ColormapFocus FollowsFocus
58 # ColormapFocus FollowsMouse
60 # Uncomment this to force you to click in a window to give it focus
63 # default: focus follows mouse
66 # If you knock your mouse out of the xterm, it keeps focus while in root window
67 Style "*term" SloppyFocus
69 ############################################################################
72 # click/release must occur in <n milliseconds to be a "click"
75 # if the window occupies less than n% of the screen, draw it opaque
78 # flip by whole pages on the edge of the screen, but delay for a half second
82 # MWM Emulation: Don't ignore hints for functions and transient decoration
83 Style * MWMFunctions, MWMDecor
85 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
88 ###########################################################################
91 # set the desk top size in units of physical screen size (width x height)
94 ############################################################################
97 # TileCascadePlacement makes new windows pop-up in blank regions of screen,
98 # if this fails, windows are placed randomly
99 Style * TileCascadePlacement
101 ############################################################################
104 # (decorations and window options)
105 # Note: Order is important!! If compatible styles are set, styles are ORed
106 # together. If conflicting styles are set, the last one specified is used.
108 # change the default width, set a global icon, and give borders to popups
109 Style * BorderWidth 7, HandleWidth 7, Icon x.xpm, DecorateTransient
111 Style "Fvwm*" !Title, Sticky, WindowListSkip
112 Style "*lock" !Title, Sticky, WindowListSkip
113 Style "xbiff" !Title, Sticky, WindowListSkip
114 Style "xload" !Title, Sticky, WindowListSkip, ClickToFocus
115 Style "xsession" !Title, Sticky, WindowListSkip, ClickToFocus
116 Style "xconsole" !Title, Sticky, WindowListSkip, ClickToFocus
117 Style "xfsm" !Title, Sticky, WindowListSkip, ClickToFocus
118 Style "xdaliclock" !Title, Sticky, WindowListSkip, ClickToFocus
119 Style "FvwmButtons" ClickToFocus
120 Style "Time 3D" !Title, Sticky
121 Style "*term" Icon NeXT.xpm
122 Style "xcalc" Icon xcalc.xpm
123 Style "xbiff" Icon mail1.xpm
124 Style "xman" Icon xman.xpm
125 Style "Demineur" Icon jolifond.xpm
126 Style "xneko" Icon xnekocat.xpm
127 Style "emacs" !UsePPosition
128 Style "Mosaic" !UsePPosition
129 Style "xmh" Icon mail2.xpm StartsOnDesk 2
131 #############################################################################
134 AddToFunc "StartFunction" I Module FvwmButtons
135 + I Module FvwmPager 0 0
137 + I Next (AcceptsFocus !iconic CurrentScreen xterm) Focus
140 # Uncomment this to make windows auto-raise after [x] milliseconds
141 # AddToFunc "StartFunction" I Module FvwmAuto 0
143 ############################################################################
147 ## Buttons actually being used (duplicated below)
149 ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
150 # small down triangle
151 ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
153 ButtonStyle 3 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
155 ##############################################################################
159 # This defines the most common window operations
160 AddToMenu Window-Ops "Window Ops" Title
161 + "Move" Move-or-Raise2
162 + "Resize" Resize-or-Raise2
165 + "(De)Iconify" Iconify
167 + "(Un)Maximize" maximize_func
173 + "Refresh Screen" Refresh
175 # A trimmed down version of "Window Ops", good for binding to decorations
176 AddToMenu Window-Ops2 "Move" Move-or-Raise
177 + "Resize" Resize-or-Raise
178 + "Raise/Lower" RaiseLower
186 + "ScrollBar" Module FvwmScroll 2 2
187 + "Print" PrintFunction
189 AddToMenu FvwmCommands "Fvwm Commands" Title
190 + "Restart Fvwm" Restart
191 + "Fvwm Setup" Popup FvwmSetup
192 + "Fvwm Modules" Popup FvwmModules
196 AddToMenu FvwmSetup "Fvwm Setup" Title
197 + "Change Scrolling" Popup FvwmScroll
199 AddToMenu FvwmScroll "Change Scroll Behavior" Title
200 + "OFF" EdgeScroll 0 0
201 + "ON" EdgeScroll 100 100
202 + "Horizontal Only" EdgeScroll 100 0
203 + "Vertical Only" EdgeScroll 0 100
204 + "Partial" EdgeScroll 50 50
206 AddToMenu FvwmModules "Fvwm Modules" Title
207 + "Pager" Module FvwmPager 0 0
208 + "Button-Bar" Module FvwmButtons
209 + "WinList" Module FvwmWinList
210 + "Identify" Module FvwmIdent
212 + "Clean-Up" Module FvwmClean
213 + "SaveDesktop" Module FvwmSave
214 + "Debug" Module FvwmDebug
215 + "Background" Module FvwmBacker
216 + "IconBox" Module FvwmIconBox
217 + "Banner" Module FvwmBanner
218 + "Talk" Module FvwmTalk
219 + "Prompt" Module FvwmPrompt "hello" raise
221 # This is the root menu
222 AddToMenu RootMenu "Root Menu" Title
223 + "Xterm" Exec exec xterm -sb -sl 2048 -font 9x15 -geometry =81x35+50+50 -s -rw &
224 + "Csugrad" Exec xterm -sb -sl 2048 -font 8x13 -geometry =80x35+50+50 -n "csugrad" -T "csugrad" -s -rw -e telnet csugrad &
225 + "Netscape" Exec exec Netscape &
227 + "Leisure" Popup Leisure
228 + "Utilities" Popup Utilities
229 + "Lock Screen" Popup XlockMenu
230 + "Fvwm Commands" Popup FvwmCommands
232 # This menu will fire up some often used programs
233 AddToMenu Utilities "Choose one:" Title
234 + "emacs" Exec emacs -geometry 81x35+150+34 -fn 9x15 &
235 + "xv" Function warp-or-run xv "Exec xv -ncols 240 -geometry +0+0 &"
236 + "xfig" Exec exec xfig &
237 + "xpaint" Exec exec xpaint &
238 + "Top" Exec exec rxvt -T Top -n Top -e top &
239 + "xMan" Exec exec xman -notopbox -geometry +150+102 &
240 + "xloaD" Exec exec xload -geometry =136x136+0+0 &
241 + "xcalc" Exec exec xcalc &
242 + "xclipboard" Exec exec xclipboard &
244 # Leisure stuff that doesn't go anywhere else..
245 AddToMenu Leisure "Time for Fun!" Title
246 + "xboing" Exec exec xboing -sound &
247 + "xevil" Exec exec xevil &
248 + "xsnow" Exec exec xsnow &
249 + "xjewel" Exec exec xjewel &
250 + "Minesweeper" Exec exec xdemineur -ouvre &
252 # A wide variety of screenlocking options...
253 AddToMenu XlockMenu "Choose one:" Title
254 + "Flame" Exec xlock -mode flame &
255 + "Pyro" Exec xlock -mode pyro &
256 + "Swarm" Exec xlock -mode swarm &
257 + "Qix" Exec xlock -mode qix &
258 + "Rotor" Exec xlock -mode rotor &
259 + "Worms" Exec xlock -mode worm &
260 + "Blank" Exec xlock -mode blank &
262 + "Just Kidding" Exec /usr/local/bin/mb &
264 ############################################################################
267 AddToFunc warp-or-run I Next (AcceptsFocus CirculateHit $0) Iconify -1
268 + I Next (AcceptsFocus CirculateHit $0) Focus
269 + I None (AcceptsFocus CirculateHit $0) $1
271 AddToFunc MailFunction I Next (AcceptsFocus $0) Iconify -1
272 + I Next (AcceptsFocus $0) focus
273 + I None (AcceptsFocus $0) Exec $0 $1
275 AddToFunc Move-or-Raise I Raise
279 AddToFunc Move-or-Raise2 M Raise
283 AddToFunc Maximize-Func C Maximize 0 100
286 AddToFunc Move-or-Iconify I Raise
290 AddToFunc Resize-or-Raise I Raise
294 AddToFunc Resize-or-Raise2 M Raise
298 AddToFunc PrintFunction I Raise
301 AddToFunc Iconify-and-Raise I Iconify
304 ############################################################################
307 # First, the root window. Button 1 brings up the Main Menu. B2 is the
308 # window operations list, and B3 is the winlist module
309 # Button Context Modifi Function
310 Mouse 1 R A Menu RootMenu Nop
311 Mouse 2 R A Menu Window-Ops Nop
312 Mouse 3 R A WindowList
314 # Now, title bar buttons
315 # Left button is the Window-Ops2 menu, right is iconify, rightmost is maximize
316 # Button Context Modifi Function
317 Mouse 0 1 A Menu Window-Ops2 Close
318 Mouse 0 2 A Maximize-Func
322 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
323 # de-iconify, and on Top does a move-or-raise
324 # Button Context Modifi Function
325 Mouse 1 FS A Resize-or-Raise
326 Mouse 1 I A Move-or-Iconify
327 Mouse 1 T A Move-or-Raise
329 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
330 # Button Context Modifi Function
332 Mouse 2 FST A Menu Window-Ops2 Nop
334 # Button 3 does a raise-lower on anything
335 Mouse 3 TSIF A RaiseLower
337 ############################################################################
340 # press arrow + control anywhere, and scroll by 1 page
341 Key Left A C Scroll -100 +0
342 Key Right A C Scroll +100 +0
343 Key Up A C Scroll +0 -100
344 Key Down A C Scroll +0 +100
346 # press arrow + meta key, and scroll by 1/10 of a page
347 Key Left A M Scroll -10 +0
348 Key Right A M Scroll +10 +0
349 Key Up A M Scroll +0 -10
350 Key Down A M Scroll +0 +10
352 # press shift arrow + control anywhere, and move the pointer by 1% of a page
353 Key Left A SC CursorMove -1 +0
354 Key Right A SC CursorMove +1 +0
355 Key Up A SC CursorMove +0 -1
356 Key Down A SC CursorMove +0 +1
358 # press shift arrow + meta key, and move the pointer by 1/10 of a page
359 Key Left A SM CursorMove -10 +0
360 Key Right A SM CursorMove +10 +0
361 Key Up A SM CursorMove +0 -10
362 Key Down A SM CursorMove +0 +10
364 # Keyboard accelerators
365 Key F1 A MC Popup "RootMenu"
366 Key F2 A MC Popup "Window-Ops"
367 Key F3 A MC Module FvwmWinList
371 Key F7 A MC Next (AcceptsFocus) focus
372 Key F8 A MC Prev (AcceptsFocus) focus
374 ############################################################################
378 *FvwmButtonsFore Black
379 *FvwmButtonsBack #908090
384 # Geometry-- really likes to pick its own size, but giving a position is OK
385 *FvwmButtonsGeometry -0+100
387 # Layout: specify rows or columns, not both
388 #*FvwmButtonsColumns 1
391 # Define the buttons to use.....
392 *FvwmButtons Move arrows2.xpm Move
393 *FvwmButtons Kill skull.xpm Destroy
394 *FvwmButtons Quit nuke.xpm Popup "Quit-Verify"
396 #*FvwmButtons (de)Iconify eyenew.xpm Iconify
397 #*FvwmButtons Restart eye2.xpm Restart
398 #*FvwmButtons Xcalc rcalc.xpm Exec "Calculator" xcalc &
399 #*FvwmButtons junk 3dx.xpm Swallow "xload" xload -bg \#908090
400 #*FvwmButtons xmter x.xpm Swallow "xmter" xmter &
401 #*FvwmButtons "" clock.xpm Swallow "xclock" xclock -bg \#908090 -padding 0 &
402 #*FvwmButtons "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0 &
404 ############################################################################
407 # Give us colors and a fonts
408 *FvwmIdentBack MidnightBlue
409 *FvwmIdentFore Yellow
410 *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
412 ############################################################################
415 *FvwmPagerBack #5c54c0
417 *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
418 *FvwmPagerHilight #6b64b0
419 *FvwmPagerGeometry -0+0
420 *FvwmPagerLabel 0 Aurora
422 # Setting the font to 0x0 or nil2 results in no text
423 #*FvwmPagerSmallFont 0x0
424 *FvwmPagerSmallFont 5x8
426 ############################################################################
429 *FvwmWinListBack #908090
430 *FvwmWinListFore Black
431 *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
432 *FvwmWinListAction Click1 Iconify -1,Focus
433 *FvwmWinListAction Click2 Iconify
434 *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
435 *FvwmWinListUseSkipList
436 *FvwmWinListGeometry +62+176
438 ############################################################################
441 *FvwmBackerDesk 0 -solid steelblue
442 *FvwmBackerDesk 1 -solid midnightblue
444 ############################################################################
447 # NOTE: Icons will only be shown in module if Style "??" !Icon is set
448 *FvwmIconBoxIconBack #cfcfcf
449 *FvwmIconBoxIconHiFore black
450 *FvwmIconBoxIconHiBack LightSkyBlue
451 *FvwmIconBoxBack #5f9ea0
452 #*FvwmIconBoxFore blue
453 *FvwmIconBoxGeometry 5x1+0+0
454 *FvwmIconBoxMaxIconSize 64x38
455 *FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
456 *FvwmIconBoxSortIcons IconName
457 *FvwmIconBoxPadding 4
459 *FvwmIconBoxSBWidth 11
460 *FvwmIconBoxPlacement Left Top
461 *FvwmIconBoxPixmap fvwm.xpm
462 #*FvwmIconBoxHideSC Horizontal
463 *FvwmIconBoxSetWMIconSize
464 *FvwmIconBoxHilightFocusWin
465 #*FvwmIconBoxResolution Desk
466 *FvwmIconBoxMouse 1 Click RaiseLower
467 *FvwmIconBoxMouse 1 DoubleClick Iconify
468 *FvwmIconBoxMouse 2 Click Iconify -1, Focus
469 *FvwmIconBoxMouse 3 Click Module FvwmIdent
470 *FvwmIconBoxKey r RaiseLower
471 *FvwmIconBoxKey space Iconify
472 *FvwmIconBoxKey d Close
473 *FvwmIconBoxKey n Next
474 *FvwmIconBoxKey p Prev
475 *FvwmIconBoxKey h Left
476 *FvwmIconBoxKey j Down
478 *FvwmIconBoxKey l Right
480 ############################################################################
483 *FvwmScrollBack grey40
484 *FvwmScrollFore green
486 ############################################################################
489 *FvwmAudioPlayCmd /usr/local/bin/AF/aplay -d 0 -t -.05
490 *FvwmAudioDir /usr/local/sound/fvwm
491 #*FvwmAudio startup goodmorning.au
492 #*FvwmAudio shutdown destruct.au
493 #*FvwmAudio unknown cat-1.au
494 #*FvwmAudio destroy_window oh_my_god.au
495 *FvwmAudio iconify flush.au
496 *FvwmAudio deiconify eject.au
498 #*FvwmAudio add_window ??
499 #*FvwmAudio toggle_paging ??
503 #*FvwmAudio focus_change goodmorning.au
504 #*FvwmAudio raise_window goodmorning.au
505 #*FvwmAudio lower_window goodmorning.au
507 ############################################################################
510 # FvwmForm alias - rlogin to host via xterm
512 *RloginFont *helvetica*m*r*n*14*
513 *RloginButtonFont *helvetica*m*o*n*14*
514 *RloginInputFont *cour*m*r*n*14*
516 *RloginBack Light Gray
517 *RloginItemFore Wheat
518 *RloginItemBack Gray50
521 *RloginText "Login to Remote Host"
524 *RloginInput HostName 20 ""
526 *RloginSelection UserSel single
527 *RloginChoice Default Default on "same user"
528 *RloginChoice Custom Custom off "user:"
529 *RloginInput UserName 10 ""
531 *RloginButton quit "Login" ^M
532 *RloginCommand Exec xterm -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
533 *RloginButton restart "Clear"
535 *RloginButton quit "Cancel"
538 # FvwmForm alias - query exit ala mwm
539 *QuitVerifyGrabServer
540 *QuitVerifyWarpPointer
541 *QuitVerifyFont *helvetica*m*r*n*14*
542 #*QuitVerifyButtonFont *helvetica*m*o*n*14*
543 *QuitVerifyButtonFont 7x13bold
544 *QuitVerifyFore Black
545 *QuitVerifyBack Light Gray
546 *QuitVerifyItemFore Wheat
547 *QuitVerifyItemBack Gray50
549 *QuitVerifyLine center
550 *QuitVerifyText "Do you really want to exit fvwm?"
551 *QuitVerifyLine expand
552 *QuitVerifyButton quit " Exit "
553 *QuitVerifyCommand Quit
554 *QuitVerifyButton quit "Cancel"
555 *QuitVerifyCommand Nop
558 # MyTalk & MyFvwmTalk from Dave Goldberg
559 # MyTalk Form - dissappears after use
561 *MyTalkFont *helvetica*m*r*n*14*
562 *MyTalkButtonFont *helvetica*m*o*n*14*
563 *MyTalkInputFont *cour*m*r*n*14*
569 *MyTalkText "Fvwm Function"
570 *MyTalkInput Func 40 ""
572 *MyTalkButton quit "Run" ^M
573 *MyTalkCommand $(Func)
574 *MyTalkButton restart "Clear" ^R
575 *MyTalkButton quit "Cancel" ^C
578 # MyFvwmTalk Form - sticks around
579 *MyFvwmTalkWarpPointer
580 *MyFvwmTalkFont *helvetica*m*r*n*14*
581 *MyFvwmTalkButtonFont *helvetica*m*o*n*14*
582 *MyFvwmTalkInputFont *cour*m*r*n*14*
585 *MyFvwmTalkItemFore Blue
586 *MyFvwmTalkItemBack Gray
587 *MyFvwmTalkLine center
588 *MyFvwmTalkText "Fvwm Function"
589 *MyFvwmTalkInput Func 40 ""
590 *MyFvwmTalkLine expand
591 *MyFvwmTalkButton restart "Run" ^M
592 *MyFvwmTalkCommand $(Func)
593 *MyFvwmTalkButton restart "Clear" ^R
594 *MyFvwmTalkCommand Nop
595 *MyFvwmTalkButton restart "Iconify" ^Z
596 *MyFvwmTalkCommand Next [MyFvwmTalk] Iconify
597 *MyFvwmTalkButton quit "Quit" ^C
598 *MyFvwmTalkCommand Nop