1 # this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2.
2 # It should be customized before install. See other sample .fvwm2rc files
3 # for hints, as well as pointers from the various links on the official
4 # fvwm web page (see the FAQ).
6 # be sure to customize these paths for your installation:
7 #ModulePath /usr/lib/X11/fvwm2
8 #PixmapPath /usr/include/X11/pixmaps
9 #IconPath /usr/include/X11/bitmaps
11 #EdgeResistance 999 999
15 # make sure these fonts exist on your system:
16 WindowFont -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
17 IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
18 ButtonStyle 3 Vector 13 26x29@1 34x21@1 50x35@1 70x21@1 79x29@1 63x48@0 79x65@1 70x75@0 50x61@0 34x75@0 26x65@0 44x48@1 26x29@0
20 HilightColor black palevioletred
22 MenuStyle black bisque grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-14-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-14-*-*-*-*-*-*-* fvwm
26 ColormapFocus FollowsMouse
27 TitleStyle HGradient 256 3 Red 20 Blue 30 Purple 50 Green
32 Style "*" BorderWidth 5, HandleWidth 5
33 Style "*" MWMFunctions, MWMDecor, HintOverride
34 Style "*" DecorateTransient, NoPPosition
35 Style "*" IconBox 0 -50 -1 -1
36 Style "*" FocusFollowsMouse
38 Style "*" RandomPlacement, SmartPlacement, NoIcon
40 # Styles for various Fvwm modules:
41 Style "Fvwm*" NoTitle, Sticky, WindowListSkip
42 Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip
43 Style "FvwmPager" StaysOnTop
44 Style "FvwmBanner" StaysOnTop
45 Style "FvwmButtons" NoButton 1, NoButton 2, NoButton 3, NoButton 4, NoHandles, ClickToFocus
46 Style "*eyes" NoTitle, NoHandles
48 # Styles for various common programs:
49 Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
50 Style "KDE Desktop" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
51 Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus
52 Style "xcalc" NoButton 2,RandomPlacement,ClickToFocus
53 Style "xmh" NoIconTitle,StickyIcon
54 Style "xmh" RandomPlacement, NoButton 2
55 Style "xman" RandomPlacement, ClickToFocus
56 Style "xmag" RandomPlacement, ClickToFocus
57 Style "xgraph" RandomPlacement, ClickToFocus
58 Style "*iconbar" NoTitle, NoHandles, Sticky, WindowListSkip
61 # some simple default key bindings:
62 Key Left A C Scroll -100 0
63 Key Right A C Scroll +100 +0
64 Key Up A C Scroll +0 -100
65 Key Down A C Scroll +0 +100
66 Key Left A M Scroll -10 +0
67 Key Right A M Scroll +10 +0
68 Key Up A M Scroll +0 -10
69 Key Down A M Scroll +0 +10
70 # emergencies, only if no working mouse
71 Key Left A SC CursorMove -1 0
72 Key Right A SC CursorMove +1 +0
73 Key Up A SC CursorMove +0 -1
74 Key Down A SC CursorMove +0 +1
75 Key Left A SM CursorMove -10 +0
76 Key Right A SM CursorMove +10 +0
77 Key Up A SM CursorMove +0 -10
78 Key Down A SM CursorMove +0 +10
90 # On title bar button:
94 # R within root window
95 # W within application window
97 # S window frame, sides
98 # F window frame, corners (e.g. resizing)
99 # I over an icon (but I don't use icons much.. I
100 # use the FvwmIconMan instead)
106 # A any key or no key (no key modifier required for action)
109 Mouse 1 R A Popup Window-Ops Nop
110 Mouse 3 R A Popup RootMenu Nop
111 #Mouse 3 R A WindowList
113 # for the title bar buttons:
118 # 4 second from right
120 Mouse 0 1 A Popup Window-Ops2 Close
122 Mouse 0 2 A Maximize-Func
125 # for other parts of the window/borders/icons:
127 Mouse 1 SF A Resize-or-Raise
128 Mouse 1 T A Move-or-Raise2
130 Mouse 2 I A Move-or-Iconify
131 Mouse 2 FST A WindowShade
132 Mouse 3 TSIF A RaiseLower
133 #Mouse 3 TSWIF A RaiseLower
135 ######################## Initialization Functions ############################
136 AddToFunc InitFunction "I" Module FvwmButtons FvwmButtons1
137 + "I" Module FvwmButtons FvwmButtons2
138 + "I" Module FvwmButtons FvwmButtons3
139 + "I" Module FvwmButtons FvwmButtons4
140 + "I" Module FvwmIconMan
141 + "I" exec xsetroot -solid #001000
142 + "I" exec xterm -geometry +0+50
143 + "I" exec xterm -geometry +600+50
145 AddToFunc RestartFunction "I" Module FvwmButtons FvwmButtons1
146 + "I" Module FvwmButtons FvwmButtons2
147 + "I" Module FvwmButtons FvwmButtons3
148 + "I" Module FvwmButtons FvwmButtons4
149 + "I" Module FvwmIconMan
150 + "I" exec xsetroot -solid #001000
153 ######################## Menus ###################
154 AddToMenu RootMenu "Root Menu" Title
155 + "XTerm" Exec exec xterm
156 + "Rxvt" Exec exec rxvt
158 + "Utilities" Popup Utilities
160 + "Fvwm Modules" Popup Module-Popup
161 + "Fvwm Window Ops" Popup Window-Ops
162 + "Fvwm Simple Config Ops" Popup Misc-Ops
164 + "Refresh Screen" Refresh
165 + "Recapture Screen" Recapture
167 + "Exit Fvwm" Popup Quit-Verify
169 AddToMenu Utilities "Utilities" Title
170 + "Top" Exec exec xterm -T Top -n Top -e top
171 + "Calculator" Exec exec xcalc
172 + "Xman" Exec exec xman
173 + "Xmag" Exec exec xmag
174 + "Editres" Exec exec editres
176 + "XEmacs" Exec exec xemacs
177 + "Mail" MailFunction xmh "-font fixed"
179 + "XLock" Exec exec xlock -mode random
181 + "Reset X defaults" Exec xrdb -load $HOME/.Xdefaults
183 AddToMenu Misc-Ops "Misc Config Opts" Title
184 + "Sloppy Focus" ChangeDefaultFocus SloppyFocus
185 + "Click To Focus" ChangeDefaultFocus ClickToFocus
186 + "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
188 + "Colormap Follows Mouse" ColormapFocus FollowsMouse
189 + "Colormap Follows Focus" ColormapFocus FollowsFocus
191 AddToMenu Window-Ops "Window Ops" Title
196 + "(De)Iconify" Iconify
198 + "(Un)Maximize" Maximize
204 + "Refresh Window" RefreshWindow
206 AddToMenu Window-Ops2 "&Move" Move
210 + "(De)&Iconify" Iconify
212 + "(Un)Ma&ximize" Maximize
218 + "ScrollBar" Module FvwmScroll 2 2
219 + "Print" PrintFunction
220 + "Print Reverse" PrintReverseFunction
222 AddToMenu Module-Popup "FvwmModules" Title
223 + "Identify" Module FvwmIdent
224 + "Talk" Module FvwmTalk
226 + "Button-Bar" Module FvwmButtons
227 + "Pager" Module FvwmPager 0 0
228 + "Pager (2 desks)" Module FvwmPager 0 1
229 + "WinList" Module FvwmWinList
231 + "Banner" Module FvwmBanner
232 + "ScrollBar" Module FvwmScroll 50 50
233 + "Background" Module FvwmBacker
234 + "AutoRaise" Module FvwmAuto 200 Raise Nop
235 + "Stop AutoRaise" KillModule FvwmAuto
237 + "IconBox" Module FvwmIconBox
238 + "IconMan" Module FvwmIconMan
240 + "Form - Rlogin" Module FvwmForm Rlogin
241 + "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk
242 + "Form - QuitVerify" Module FvwmForm QuitVerify
244 AddToMenu Quit-Verify "Really Quit Fvwm?" Title
245 + "Yes, Really Quit" Quit
247 + "Restart Fvwm2" Restart fvwm2
249 + "Restart Fvwm" Restart fvwm
250 + "Start twm" Restart twm
251 + "Start ctwm" Restart ctwm
252 + "Start tvtwm" Restart tvtwm
253 + "Start vtwm" Restart vtwm
254 + "Start mwm" Restart mwm
255 + "Start GNome" Restart gnome-session
256 + "Start wmaker" Restart wmaker
257 + "Start olwm" Restart /usr/openwin/bin/olwm
259 + "Start dummy" Restart xterm
261 + "No, Don't Quit" Nop
263 ######################## Sample Functions ##########################
265 AddToFunc MailFunction "I" Next [$0] Iconify -1
266 + "I" Next [$0] Focus
267 + "I" None [$0] Exec $0 $1
269 # Move-or-Raise seems to be broken, when I click in the title
270 # and try to move the title stays clicked and no move occurs.
271 # Move-or-Raise2 seems to do the right thing.
273 AddToFunc Move-or-Raise "I" Raise
277 AddToFunc Move-or-Raise2 "M" Move
279 AddToFunc Maximize-Func "M" Maximize 0 100
281 + "D" Maximize 100 100
283 AddToFunc Move-or-Iconify "I" Raise
287 AddToFunc Resize-or-Raise "I" Raise
291 AddToFunc Resize-or-Raise2 "M" Raise
295 AddToFunc PrintFunction "I" Raise
296 + "I" Exec xdpr -id $w
298 AddToFunc PrintReverseFunction "I" Raise
299 + "I" Exec xdpr 1/2 -h -rv -id $w
301 AddToFunc Iconify-and-Raise "I" Iconify
304 # RLOGIN machine fg bg
305 AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8
307 # TELNET machine fg bg
308 AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0
310 AddToFunc FocusAndWarp "I" Focus
311 + "I" WarpToWindow 2p 2p
313 AddToFunc DeiconifyFocusAndWarp "I" Iconify -1
316 AddToFunc ChangeDefaultFocus "I" Style "*" $0
319 ################## FvwmButtons button-bar ################################
320 *FvwmButtons1File .fvwm/fvwmbuttons1
321 #*FvwmButtons2File .fvwmbuttons2
322 #*FvwmButtons3File .fvwmbuttons3
323 #*FvwmButtons4File .fvwmbuttons4
326 ########################## Window-Identifier ###############################
327 # Just choose colors and a fonts
328 *FvwmIdentBack MidnightBlue
329 *FvwmIdentFore Yellow
330 *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-12-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-12-*-*-*-*-*-*-*
332 ########################### Pager #########################################
333 *FvwmPagerBack #908090
334 *FvwmPagerFore #484048
335 *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-10-*-*-*-*-*-*-*
336 *FvwmPagerHilight #cab3ca
337 *FvwmPagerGeometry -1-1
338 *FvwmPagerLabel 0 Misc
339 *FvwmPagerLabel 1 Maker
340 *FvwmPagerLabel 2 Mail
341 *FvwmPagerLabel 3 Matlab
342 *FvwmPagerSmallFont 5x8
344 ##########################FvwmWinList##################################
345 *FvwmWinListBack #908090
346 *FvwmWinListFore Black
347 *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*,-*-fixed-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-gothic-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-mincho-medium-r-normal-*-10-*-*-*-*-*-*-*,-*-*-medium-r-normal-*-10-*-*-*-*-*-*-*
348 *FvwmWinListAction Click1 Iconify -1,Focus
349 *FvwmWinListAction Click2 Iconify
350 *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
351 *FvwmWinListUseSkipList
352 *FvwmWinListGeometry +0-1
355 *FvwmBackerDesk 0 -solid steelblue
356 *FvwmBackerDesk 1 -solid midnightblue
358 *FvwmScrollBack grey40
359 *FvwmScrollFore green
364 *FvwmIconMan*format "%t"
365 *FvwmIconMan*managergeometry 1x0-1-1
366 *FvwmIconMan*buttongeometry 200x17
370 # Icon file specifications
372 # Mostly, you don't have to specify icon files, as FvwmIconBox now
373 # reads icon files specified in Style commands.
375 *FvwmIconBox "Fvwm*" -
377 # FvwmForm alias - query exit ala mwm
378 *QuitVerifyGrabServer
379 *QuitVerifyWarpPointer
380 *QuitVerifyFont *helvetica*m*r*n*14*
381 #*QuitVerifyButtonFont *helvetica*m*o*n*14*
382 *QuitVerifyButtonFont 7x13bold
383 *QuitVerifyFore Black
384 *QuitVerifyBack Light Gray
385 *QuitVerifyItemFore Wheat
386 *QuitVerifyItemBack Gray50
388 *QuitVerifyLine center
389 *QuitVerifyText "Do you really want to exit FVWM?"
390 *QuitVerifyLine expand
391 *QuitVerifyButton quit " Exit "
392 *QuitVerifyCommand Quit
393 *QuitVerifyButton quit "Cancel"
394 *QuitVerifyCommand Nop