1 # this is a sample .fvwmrc file for fvwm-2.
2 # Apparantly, you can retrieve sample .fvwmrc's from
3 # ftp://ftp.best.com/pub/tdgilman/Fvwmrcs
4 # you can also submit your favourite .fvwmrc to
10 ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
12 ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
15 Style * Font -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-*
16 Style * IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
20 Menustyle * fvwm, Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
21 MenuStyle * Foreground maroon, Background grey60, Greyed grey40
24 ColormapFocus FollowsMouse
26 Style * HilightFore black, HilightBack palevioletred
27 Style * BorderWidth 5, HandleWidth 5
28 Style * Icon unknown1.xpm, Color Black/#40a0c0
29 Style * TileManualPlacement
30 Style * MWMFunctions,MWMDecor,HintOverride
31 Style * DecorateTransient,IconBox 0 -10 -280 -1
32 Style "Fvwm*" NoTitle, NoHandles, Sticky, WindowListSkip,
33 Style "Fvwm*" BorderWidth 0,CirculateSkipIcon
34 Style "Fvwm Pager" StaysOnTop
35 Style "FvwmPager" StaysOnTop
36 Style "FvwmBanner" StaysOnTop
37 Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip
38 Style "FvwmButtons" BorderWidth 0, CirculateSkip
39 Style "FvwmButtons" Icon toolbox.xpm,ClickToFocus
40 Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip
41 Style "*lock" TileCascadePlacement
42 Style "xbiff" NoTitle, Sticky, WindowListSkip,ClickToFocus
43 Style "Maker" StartsOnDesk 1,TileCascadePlacement,ClickToFocus
44 Style "matlab" StartsOnDesk 3
45 Style "signal" StartsOnDesk 3
46 Style "rxvt" Icon term.xpm,SloppyFocus,IconBox -70 1 -1 -140
47 Style "XTerm" Icon xterm.xpm,IconBox -70 1 -1 -140
48 Style "XTerm" Color black/#aa80aa,MWMBorder,MWMButtons
49 Style "Appointment" Icon datebook.xpm, NoButton 2, NoButton 4,ClickToFocus
50 Style "xcalc" Icon xcalc.xpm, NoButton 2,TileCascadePlacement,ClickToFocus
51 Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon
52 Style "xmh" TileCascadePlacement, StartsOnDesk 2, NoButton 2
53 Style "xman" Icon xman.xpm,TileCascadePlacement,ClickToFocus
54 Style "xvgr" Icon graphs.xpm,TileCascadePlacement,ClickToFocus
55 Style "matlab" Icon math4.xpm,ClickToFocus
56 Style "xmag" Icon mag_glass.xpm,TileCascadePlacement, ClickToFocus
57 Style "xgraph" Icon graphs.xpm,TileCascadePlacement,ClickToFocus
58 Style "sppeed6" Icon math3.xpm,NoTitle,ClickToFocus
59 Style "sppeed6_user" Icon math4.xpm,NoTitle
60 Style "xmosaic" NoPPosition, color Green/Yellow,ClickToFocus
61 Style "MetaCard" TileCascadePlacement, ClickToFocus
63 Key Left A C Scroll -100 0
64 Key Right A C Scroll +100 +0
65 Key Up A C Scroll +0 -100
66 Key Down A C Scroll +0 +100
67 Key Left A M Scroll -10 +0
68 Key Right A M Scroll +10 +0
69 Key Up A M Scroll +0 -10
70 Key Down A M Scroll +0 +10
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
79 Key KP_F1 A M Popup "Utilities"
80 Key KP_F2 A M Popup "Window-Ops"
81 Key KP_F3 A M Module FvwmWinList
83 Key F5 A M Move 100p 100p
84 Key F6 A M Resize 10 10
85 Key F7 A M Next (AcceptsFocus) focus
86 Key F8 A M Prev (AcceptsFocus) focus
87 Key F10 A A Next (AcceptsFocus rxvt) Focus
88 Key F11 A A Prev (AcceptsFocus CurrentDesk rxvt) Focus
91 Mouse 1 R A Menu Utilities Nop
92 Mouse 2 R A Menu Window-Ops Nop
93 Mouse 3 R A WindowList
94 Mouse 0 1 A Menu Window-Ops2 Close
95 Mouse 0 2 A Maximize-Func
97 Mouse 1 F A Resize-or-Raise
98 Mouse 1 TS A Move-or-Raise
99 Mouse 1 I A Move-or-Iconify
101 Mouse 2 FST A Menu Window-Ops2 Nop
102 Mouse 3 TSIF A RaiseLower
104 ########################Initialization Functions ############################
105 AddToFunc StartFunction I Module FvwmButtons
106 + I exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070
108 ########################Menus ########################################
109 AddToMenu Utilities "Utilities" Title
110 + "Xterm" Exec exec xterm -e tcsh &
111 + "Rxvt" Exec exec rxvt &
112 + "Remote Logins" Popup Remote-Logins
113 + "Top" Exec exec rxvt -T Top -n Top -e top &
114 + "Calculator" Exec exec xcalc &
115 + "Xman" Exec exec xman &
116 + "Xmag" Exec exec xmag &
117 + "emacs" Exec exec xemacs &
118 + "Mail" MailFunction xmh "-font fixed"
120 + "Modules" Popup Module-Popup
122 + "Exit Fvwm" Popup Quit-Verify
123 AddToMenu Window-Ops "Window Ops" Title
124 + "Move" Move-or-Raise2
125 + "Resize" Resize-or-Raise2
128 + "(De)Iconify" Iconify
130 + "(Un)Maximize" maximize_func
136 + "Refresh Screen" Refresh
137 AddToMenu Window-Ops2 "Move" Move-or-Raise
138 + "Resize" Resize-or-Raise
148 + "ScrollBar" Module FvwmScroll 2 2
149 + "Print" PrintFunction
151 AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY &
152 + "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY &
153 + "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY &
154 + "happy" Exec rsh happy rxvt -display $HOSTDISPLAY &
155 + "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY &
156 + "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY &
157 + "joker" Exec rsh joker rxvt -display $HOSTDISPLAY &
158 + "signal" Exec rxterm signal
160 AddToMenu Module-Popup "Modules" Title
161 + "Button-Bar" Module FvwmButtons
162 + "Clean-Up" Module FvwmClean
163 + "Identify" Module FvwmIdent
164 + "SaveDesktop" Module FvwmSave
165 + "Debug" Module FvwmDebug
166 + "Pager" Module FvwmPager 0 1
167 + "WinList" Module FvwmWinList
168 + "Background" Module FvwmBacker
169 + "IconBox" Module FvwmIconBox
170 + "Banner" Module FvwmBanner
171 + "Talk" Module FvwmTalk
172 + "Prompt" Module FvwmPrompt "hello" raise
174 AddToMenu Quit-Verify "Really Quit Fvwm?" Title
175 + "Yes, Really Quit" Quit
176 + "Restart Fvwm" Restart
177 + "Restart Fvwm 1.x" Restart fvwm -s
178 + "Start twm" Restart twm
179 + "Start mwm" Restart mwm
180 + "Start olwm" Restart /usr/openwin/bin/olwm
181 + "Start tvtwm" Restart vtwm
182 + "Start dummy" Restart xterm
184 + "No, Don't Quit" Nop
186 ########################Functions ########################################
188 AddToFunc MailFunction I Next (AcceptsFocus $0) Iconify -1
189 + I Next (AcceptsFocus $0) focus
190 + I None (AcceptsFocus $0) Exec $0 $1
192 AddToFunc Move-or-Raise I Raise
196 AddToFunc Move-or-Raise2 M Raise
200 AddToFunc Maximize-Func M Maximize 0 100
204 AddToFunc Move-or-Iconify I Raise
208 AddToFunc Resize-or-Raise I Raise
212 AddToFunc Resize-or-Raise2 M Raise
216 AddToFunc PrintFunction I Raise
219 AddToFunc Iconify-and-Raise I Iconify
222 ################## FvwmButtons button-bar ################################
224 *FvwmButtonsFore Black
225 *FvwmButtonsBack #908090
228 *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
229 # Geometry - really likes to pick its own size, but giving a position is OK
230 *FvwmButtonsGeometry -1-1
232 # Layout: specify rows or columns, not both
235 # xterm or rxvts on remote machines can be done like this
236 # Output re-direction is csh style, not sh style
237 # You will want to substitute your own hosts here!
239 *FvwmButtons Dopey rterm.xpm Exec "XTerm" rsh dopey "exec rxvt -T dopey -display $HOSTDISPLAY </dev/null >&/dev/null & "&
240 *FvwmButtons Grumpy rterm.xpm Exec "XTerm" rsh grumpy "exec rxvt -T grumpy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
241 *FvwmButtons Snoopy rterm.xpm Exec "XTerm" rsh snoopy "exec rxvt -T snoopy -display $HOSTDISPLAY </dev/null >&/dev/null & "&
242 *FvwmButtons signal rterm.xpm Exec "XTerm" rxterm signal &
243 *FvwmButtons mail mail2.xpm Function MailFunction xmh "-font fixed"
245 *FvwmButtons whatever clock.xpm Swallow "Clock" Exec rclock -bg \#908090 -geometry -1500-1500 -font -*-times-*-r-*-*-17-*-*-*-*-*-*-* -mailupdate 10 &
246 *FvwmButtons(4x1) - whatever Swallow "FvwmPager" Module FvwmPager 0 3
248 ########################## Window-Identifier ###############################
249 # Just choose colors and a fonts
250 *FvwmIdentBack MidnightBlue
251 *FvwmIdentFore Yellow
252 *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
254 ########################### Pager #########################################
255 *FvwmPagerBack #908090
256 *FvwmPagerFore #484048
257 *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
258 *FvwmPagerHilight #cab3ca
259 *FvwmPagerGeometry -1-1
260 *FvwmPagerLabel 0 Misc
261 *FvwmPagerLabel 1 Maker
262 *FvwmPagerLabel 2 Mail
263 *FvwmPagerLabel 3 Matlab
264 *FvwmPagerSmallFont 5x8
266 ##########################FvwmWinList##################################
267 *FvwmWinListBack #908090
268 *FvwmWinListFore Black
269 *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
270 *FvwmWinListAction Click1 Iconify -1,Focus
271 *FvwmWinListAction Click2 Iconify
272 *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
273 *FvwmWinListUseSkipList
274 *FvwmWinListGeometry +0-1
277 *FvwmBackerDesk 0 -solid steelblue
278 *FvwmBackerDesk 1 -solid midnightblue
280 *FvwmScrollBack grey40
281 *FvwmScrollFore green
283 ############################################################
284 ############################################################
285 # Note that icons are shown in the module
286 # only if NoIcon commnand is applied.
289 ############################################################
290 *FvwmIconBoxIconBack #cfcfcf
291 *FvwmIconBoxIconHiFore black
292 *FvwmIconBoxIconHiBack LightSkyBlue
293 *FvwmIconBoxBack #5f9ea0
294 #*FvwmIconBoxFore blue
295 *FvwmIconBoxGeometry 5x1+0+0
296 *FvwmIconBoxMaxIconSize 64x38
297 *FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
298 *FvwmIconBoxSortIcons IconName
299 *FvwmIconBoxPadding 4
301 *FvwmIconBoxSBWidth 11
302 *FvwmIconBoxPlacement Left Top
303 *FvwmIconBoxPixmap fvwm.xpm
304 #*FvwmIconBoxHideSC Horizontal
305 *FvwmIconBoxSetWMIconSize
306 *FvwmIconBoxHilightFocusWin
307 #*FvwmIconBoxResolution Desk
308 *FvwmIconBoxMouse 1 Click RaiseLower
309 *FvwmIconBoxMouse 1 DoubleClick Iconify
310 *FvwmIconBoxMouse 2 Click Iconify -1, Focus
311 *FvwmIconBoxMouse 3 Click Module FvwmIdent
312 *FvwmIconBoxKey r RaiseLower
313 *FvwmIconBoxKey space Iconify
314 *FvwmIconBoxKey d Close
315 *FvwmIconBoxKey n Next
316 *FvwmIconBoxKey p Prev
317 *FvwmIconBoxKey h Left
318 *FvwmIconBoxKey j Down
320 *FvwmIconBoxKey l Right
322 # Icon file specifications
324 # Mostly, you don't have to specify icon files, as FvwmIconBox now
325 # reads icon files specified in Style commands.
327 *FvwmIconBox "Fvwm*" -