1 # This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
2 # This file contains the commands fvwm reads while starting.
10 MenuStyle * fvwm, Foreground white, Background cornflowerblue, Greyed grey40
11 MenuStyle * Font -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*
13 ColormapFocus FollowsMouse
16 # make sure these fonts exist on your system:
17 Style * Font -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
18 Style * IconFont -adobe-times-bold-r-*-*-12-*-*-*-*-*-*-*
19 Style * HilightFore black, HilightBack cornflowerblue
20 Style * BorderWidth 7, HandleWidth 7
21 Style * Icon unknown1.xpm, Color lightgrey/dimgrey
22 Style * MWMFunctions, MWMDecor, HintOverride
23 Style * DecorateTransient, NoPPosition
24 Style * IconBox 0 -10 -280 -1
25 Style * FocusFollowsMouse
26 Style * TileCascadePlacement
28 # Styles for various Fvwm modules:
29 Style Fvwm* NoTitle, Sticky, WindowListSkip
30 Style Fvwm* BorderWidth 2, CirculateSkipIcon, CirculateSkip
31 Style FvwmPager StaysOnTop
32 Style FvwmBanner StaysOnTop
33 Style FvwmButtons Icon toolbox.xpm, ClickToFocus
35 # Styles for your common terminal emulator programs.
36 # xterms and rxvts in a separate icon box:
37 Style XTerm Icon xterm.xpm, SloppyFocus, IconBox -70 1 -1 -140
38 Style rxvt Icon term.xpm, SloppyFocus, IconBox -70 1 -1 -140
39 Style rxvt MWMBorder, MWMButtons
41 # Styles for various common programs:
42 Style *lock NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus
43 Style xbiff NoTitle, Sticky, WindowListSkip, ClickToFocus
44 Style xcalc Icon xcalc.xpm, NoButton 2,ClickToFocus
45 Style xmh Icon mail1.xpm, NoIconTitle,StickyIcon
47 Style xman Icon xman.xpm, ClickToFocus
48 Style xmag Icon mag_glass.xpm, ClickToFocus
49 Style xgraph Icon graphs.xpm, ClickToFocus
50 Style xmosaic Color Green/Yellow, ClickToFocus
53 # some simple default key bindings:
54 Key Next A SCM Next [*] Focus
55 Key Prior A SCM Prev [*] Focus
57 # some simple default mouse bindings:
58 # for the root window:
59 Mouse 1 R A Menu MenuFvwmRoot Nop
60 Mouse 2 R A Menu MenuFvwmWindowOps Nop
61 Mouse 3 R A WindowList
63 # for the title bar buttons:
64 Mouse 0 1 A Menu MenuFvwmWindowOps2 Close
65 Mouse 0 2 A FuncFvwmMaximize
68 # for other parts of the window/borders/icons:
69 Mouse 1 F A FuncFvwmResizeOrRaise
70 Mouse 1 TS A FuncFvwmMoveOrRaise
71 Mouse 1 I A FuncFvwmMoveOrIconify
73 Mouse 2 FST A Menu MenuFvwmWindowOps2 Nop
74 Mouse 3 TSIF A RaiseLower
76 ######################## Initialization Functions ############################
77 AddToFunc StartFunction
78 + I Module FvwmAnimate
80 + I Module FvwmButtons
82 AddToFunc InitFunction
83 + I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70
85 # For some SM-s (like gnome-session) there is an internal background setter.
86 AddToFunc SessionInitFunction
89 ######################## Menus ###################
90 DestroyMenu MenuFvwmRoot
91 AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title
92 + "&1. XTerm" Exec exec xterm
93 + "&2. Rxvt" Exec exec rxvt
95 + "&R. $[gt.Remote Logins]" Popup MenuFvwmLogins
97 + "&U. $[gt.Utilities]" Popup MenuFvwmUtilities
99 + "&M. $[gt.Fvwm Modules]" Popup MenuFvwmModules
100 + "&W. $[gt.Fvwm Window Ops]" Popup MenuFvwmWindowOps
101 + "&S. $[gt.Fvwm Config Ops]" Popup MenuFvwmConfig
103 + "&F. $[gt.Refresh Screen]" Refresh
104 + "&C. $[gt.Recapture Screen]" Recapture
106 + "&X. $[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
108 DestroyMenu MenuFvwmUtilities
109 AddToMenu MenuFvwmUtilities "$[gt.Utilities]" Title
110 + "&T. Top" Exec exec xterm -T Top -n Top -e top
111 + "&C. Calculator" Exec exec xcalc
112 + "&M. Xman" Exec exec xman
113 + "&G. Xmag" Exec exec xmag
114 + "&R. Editres" Exec exec editres
116 + "&E. XEmacs" Exec exec xemacs
117 + "&A. Xmh Mail" FuncFvwmMailXmh xmh "-font fixed"
119 + "&L. XLock" Exec exec xlock -mode random
121 + "&D. $[gt.Reset X defaults]" Exec xrdb -load $HOME/.Xdefaults
123 DestroyMenu MenuFvwmConfig
124 AddToMenu MenuFvwmConfig "$[gt.Fvwm Config Ops]" Title
125 + "&S. $[gt.Sloppy Focus]" FuncFvwmFocusPolicyChange SloppyFocus
126 + "&C. $[gt.Click To Focus]" FuncFvwmFocusPolicyChange ClickToFocus
127 + "&F. $[gt.Focus Follows Mouse]" FuncFvwmFocusPolicyChange FocusFollowsMouse
129 + "&1. $[gt.Colormap Follows Mouse]" ColormapFocus FollowsMouse
130 + "&2. $[gt.Colormap Follows Focus]" ColormapFocus FollowsFocus
132 + "&3. $[gt.Full Paging ON]" EdgeScroll 100 100
133 + "&4. $[gt.All Paging OFF]" EdgeScroll 0 0
134 + "&5. $[gt.Horizontal Paging Only]" EdgeScroll 100 0
135 + "&6. $[gt.Vertical Paging Only]" EdgeScroll 0 100
136 + "&7. $[gt.Partial Paging]" EdgeScroll 50 50
137 + "&8. $[gt.Full Paging && Edge Wrap]" EdgeScroll 100000 100000
139 # The window Ops menus exhibit a different HotKey style.
140 # There are 2 versions of the WindowOps Menu, meant to be bound to different
141 # things. Here is the "common" part:
142 DestroyFunc FuncFvwmWindowCommon
143 AddToFunc FuncFvwmWindowCommon
144 + I AddToMenu $0 "$[gt.&Move]" Move
145 + I AddToMenu $0 "$[gt.&Resize]" Resize
146 + I AddToMenu $0 "$[gt.R&aise]" Raise
147 + I AddToMenu $0 "$[gt.&Lower]" Lower
148 + I AddToMenu $0 "$[gt.(De)&Iconify]" Iconify
149 + I AddToMenu $0 "$[gt.(Un)&Stick]" Stick
150 + I AddToMenu $0 "$[gt.(Un)Ma&ximize]" Maximize
151 + I AddToMenu $0 "" Nop
152 + I AddToMenu $0 "$[gt.&Delete]" Delete
153 + I AddToMenu $0 "$[gt.&Close]" Close
154 + I AddToMenu $0 "$[gt.Destroy]" Destroy
155 + I AddToMenu $0 "" Nop
157 # First windowops menu, bound to:
160 DestroyMenu MenuFvwmWindowOps
161 AddToMenu MenuFvwmWindowOps "$[gt.Window Ops]" Title
162 FuncFvwmWindowCommon MenuFvwmWindowOps
163 + "$[gt.Re&fresh Window]" RefreshWindow
165 # Second windowops menu, bound to:
166 # any mouse on titlebar button 1
167 # mouse 2 on frame, side or titlebar
168 DestroyMenu MenuFvwmWindowOps2
169 AddToMenu MenuFvwmWindowOps2
170 FuncFvwmWindowCommon MenuFvwmWindowOps2
171 + Scroll&Bar Module FvwmScroll 2 2
172 + "&$[gt.Print]" FuncFvwmPrint
173 + "$[gt.Print Re&verse]" FuncFvwmPrintReverse
175 # 3 different ways to log on, take your pick:
176 DestroyFunc FuncFvwmRloginXterm
177 AddToFunc FuncFvwmRloginXterm \
178 I Exec xterm -name $0 -title "$USER @ $0" -e rlogin $0
179 DestroyFunc FuncFvwmRloginRxvt
180 AddToFunc FuncFvwmRloginRxvt \
181 I Exec rxvt -name $0 -n $0 -title $USER@$0 -e rlogin $0
182 DestroyFunc FuncFvwmRloginSshRxvt
183 AddToFunc FuncFvwmRloginSshRxvt \
184 I Exec Exec ssh $0 rxvt -display $HOSTDISPLAY
186 # be sure to fill these in with your correct machine names:
187 DestroyMenu MenuFvwmLogins
188 AddToMenu MenuFvwmLogins
189 + &dopey FuncFvwmRloginXterm dopey
190 + &snoopy FuncFvwmRloginXterm snoopy
191 + s&ignal Exec rxterm signal
193 DestroyMenu MenuFvwmModules
194 AddToMenu MenuFvwmModules "$[gt.Fvwm Modules]" Title
195 + "&1. $[gt.Control Animation]" Popup MenuFvwmAnimate
196 + "&B. Button-Bar" Module FvwmButtons
197 + "&O. IconBox" FuncFvwmConfigureIconBox
198 + "&F. Forms" Popup MenuFvwmForms
199 + "&I. Identify" Module FvwmIdent
200 + "&M. IconMan" Module FvwmIconMan
201 + "&N. Banner" Module FvwmBanner
202 + "&C. Console" Module FvwmConsole
203 + "&P. Pager" Module FvwmPager 0 0
204 + "&2. Pager (2 $[gt.desks])" Module FvwmPager 0 1
205 + "&R. Backer" Module FvwmBacker
206 + "&S. ScrollBar" Module FvwmScroll 50 50
207 + "&T. FvwmTaskBar" Module FvwmTaskBar
208 + "&U. AutoRaise" Module FvwmAuto 200 Raise Nop
209 + "&W. WinList" Module FvwmWinList
210 + "&X. $[gt.Stop Module Menu]" Popup MenuFvwmStopModule
212 DestroyMenu MenuFvwmStopModule
213 AddToMenu MenuFvwmStopModule "$[gt.Stop Fvwm Modules]" Title
214 + "&B. $[gt.Stop] Button-Bar" KillModule FvwmButtons
215 + "&O. $[gt.Stop] IconBox" KillModule FvwmIconBox
216 + "&M. $[gt.Stop] IconMan" KillModule FvwmIconMan
217 + "&P. $[gt.Stop] Pager" KillModule FvwmPager
218 + "&R. $[gt.Stop] Backer" KillModule FvwmBacker
219 + "&S. $[gt.Stop] ScrollBar" KillModule FvwmScroll
220 + "&T. $[gt.Stop] FvwmTaskBar" KillModule FvwmTaskBar
221 + "&U. $[gt.Stop] AutoRaise" KillModule FvwmAuto
222 + "&W. $[gt.Stop] WinList" KillModule FvwmWinList
224 DestroyMenu MenuFvwmForms
225 AddToMenu MenuFvwmForms
226 + "&C. Capture" Module FvwmForm FvwmForm-Capture
227 + "&D. Form Defaults" Module FvwmForm FvwmForm-Form
228 + "&R. Rlogin" Module FvwmForm FvwmForm-Rlogin
229 + "&P. RootCursor" Module FvwmForm FvwmForm-RootCursor
230 + "&S. Setup" Module FvwmForm FvwmForm-Setup
231 + "&T. Talk Form" Module FvwmForm FvwmForm-Talk
232 + "&Q. QuitVerify" Module FvwmForm FvwmForm-QuitVerify
234 # Configure and start using an iconbox on the fly
235 DestroyFunc FuncFvwmConfigureIconBox
236 AddToFunc FuncFvwmConfigureIconBox
237 + I Module FvwmIconBox
240 DestroyMenu MenuFvwmQuitVerify
241 AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title
242 + "&Q. $[gt.Yes, Really Quit]" Quit
244 + "&R. $[gt.Restart]" Restart
246 + "&T. $[gt.Start] twm" Restart twm
247 + "&C. $[gt.Start] ctwm" Restart ctwm
248 + "&2. $[gt.Start] tvtwm" Restart tvtwm
249 + "&V. $[gt.Start] vtwm" Restart vtwm
250 + "&M. $[gt.Start] mwm" Restart mwm
251 + "&O. $[gt.Start] olwm" Restart /usr/openwin/bin/olwm
253 + "&X. $[gt.Just an Xterm]" Restart xterm -n '"X Console"' -T '"X Console"'
255 + "&N. $[gt.No, Don't Quit]" Nop
257 ######################## Sample Functions ##########################
259 DestroyFunc FuncFvwmMailXmh
260 AddToFunc FuncFvwmMailXmh
261 + I Next [$0] Iconify false
263 + I None [$0] Exec $0 $1
265 DestroyFunc FuncFvwmMoveOrRaise
266 AddToFunc FuncFvwmMoveOrRaise
271 DestroyFunc FuncFvwmMaximize
272 AddToFunc FuncFvwmMaximize
278 DestroyFunc FuncFvwmMoveOrIconify
279 AddToFunc FuncFvwmMoveOrIconify
284 DestroyFunc FuncFvwmResizeOrRaise
285 AddToFunc FuncFvwmResizeOrRaise
290 DestroyFunc FuncFvwmPrint
291 AddToFunc FuncFvwmPrint
295 DestroyFunc FuncFvwmPrintReverse
296 AddToFunc FuncFvwmPrintReverse
298 + I Exec xdpr 1/2 -h -rv -id $w
300 DestroyFunc FuncFvwmFocusPolicyChange
301 AddToFunc FuncFvwmFocusPolicyChange
305 # Read config files for modules:
306 read ConfigFvwmBacker
307 read ConfigFvwmButtons
308 read ConfigFvwmIconBox
309 read ConfigFvwmIconMan
312 read ConfigFvwmScroll
313 read ConfigFvwmTaskBar
314 read ConfigFvwmWinList