cvsimport
[fvwm.git] / modules / FvwmSaveDesk / example / fvwm2rc
blob4515a5f8bc1a4e09705364eb363ccb3b85011251
1 DeskTopSize 1x1
2 EdgeScroll 0 0
3 EdgeResistance 250 50
5 MenuStyle * mwm, Font fixed
6 MenuStyle * Foreground Black, Background DarkTurquoise, Greyed DeepSkyBlue
7 Style "*" HilightFore Black, HilightBack DarkTurquoise
8 Style "*" Font fixed, IconFont fixed
9 Style "*" MWMButtons
10 Style "*" MWMBorders
11 Style "*" MWMDecor
12 Style "*" MWMFunctions
13 Style "*" DecorateTransient
14 # IconBox left screen side top towards down
15 #Style "*" IconBox -80 105 -1 -240
16 # IconBox at the top of pager
17 Style "*" IconBox -385 -240 -1 -140
18 Style "*" TileCascadePlacement
19 Style "*" BorderWidth 4, HandleWidth 7, Icon unknown1.xpm
20 Style "*" ForeColor Black
21 Style "*" BackColor grey
22 Style "*" SloppyFocus
24 # 1 3 5 7 9    0 8 6 4 2
25 # Button 1 is WindowMenu/Close
26 # Button 4 is Iconify Buuton
27 # Button 2 is Maximize/Minimize Button
29 ButtonStyle 1 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1 # Dot
30 ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 # Big Box
31 ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0 # small down triangle
33 #ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1 # Small up Triangle
34 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0 # Small down Triangle
35 #ButtonStyle * 4 50x25@1 75x75@0 25x75@0 50x25@1 # Large up Triangle
36 #ButtonStyle * 4 50x75@1 25x25@1 75x25@1 50x75@0 # Large down Triangle
38 #ButtonStyle * 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 # Big Box
39 #ButtonStyle * 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1 # Little Box
40 #ButtonStyle * 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1 # Tall Box
41 #ButtonStyle * 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1 # Dot
44 Style "Fvwm*"      NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 0
45 Style "Fvwm Pager" BorderWidth 4
46 Style "FvwmPager"  BorderWidth 4
47 Style "FvwmBanner" StaysOnTop
48 Style "FvwmButtons"  NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 4
49 Style "*lock"      NoTitle, NoHandles, Sticky, WindowListSkip
50 Style "xload"      NoTitle, NoHandles, Sticky, WindowListSkip
51 Style "xbiff"      NoTitle,            Sticky, WindowListSkip
52 Style "Maker"      StartsOnDesk 1
53 Style "matlab"     StartsOnDesk 3
54 Style "signal"     StartsOnDesk 3
55 Style "rxvt"       Icon  term.xpm
56 Style "xterm"      Icon xterm.xpm, Color black/grey
57 Style "Appointment" Icon datebook.xpm
58 Style "xcalc"      Icon xcalc.xpm
59 Style "xbiff"      Icon mail1.xpm
60 Style "xmh"        Icon mail1.xpm, StartsOnDesk 2
61 Style "xman"       Icon xman.xpm
62 Style "xvgr"       Icon graphs.xpm
63 Style "matlab"     Icon math4.xpm
64 Style "xmag"       Icon mag_glass.xpm
65 Style "xgraph"     Icon graphs.xpm
66 Style "FvwmButtons"  Icon toolbox.xpm
67 Style "xdos"       Icon dosemu.xpm
68 Style "DOS in a BOX"       Icon dosemu.xpm
71 ##############################################################################
72 #now define the menus - defer bindings until later
74 # This menu is invoked as a sub-menu - it allows you to quit,
75 # restart, or switch to another WM.
76 AddToMenu "Quit-Verify" "Really Quit Fvwm? " Title
77 +              "Yes, Really Quit " Quit
78 +              "Restart" Restart
79 +              "Start mwm " Restart mwm
80 +              "" Nop
81 +              "No, Don't Quit " Nop
83 # Provides a list of modules to fire off
84 AddToMenu "Module-Popup" "Modules" Title
85 +              "FvwmButtons" Module FvwmButtons
86 +              "NoClutter" Module FvwmClean
87 +              "FvwmIdentify" Module FvwmIdent
88 +              "Banner" Module FvwmBanner
89 +              "Debug" Module FvwmDebug
90 +              "SaveDesktop" Module FvwmSaveDesk
91 +              "Pager" Module FvwmPager 0 4
92 +              "FvwmWinList" Module FvwmWinList
95 # This menu will fire up some very common utilities
96 AddToMenu "Utilities" "Utilities " Title
97 +              "Xterm " Exec exec xterm &
98 +              "Calculator " Exec exec xcalc &
99 +              "Xman " Exec exec xman &
100 +              "Xmag " Exec exec xmag &
101 +              "" Nop
102 +              "Modules" Popup Module-Popup
103 +              "" Nop
104 +              "Exit Fvwm " Popup Quit-Verify
106 # This defines the change workspace menu
107 AddToMenu Occupy-Workspace "Occupy Workspace" Title
108 +              "Workspace &1" WindowsDesk 0
109 +              "Workspace &2" WindowsDesk 1
110 +              "Workspace &3" WindowsDesk 2
111 +              "Workspace &4" WindowsDesk 3
112 +              "Workspace &5" WindowsDesk 4
114 # This defines the most common window operations
115 AddToMenu Window-Ops "Window Ops" Title
116 +              "Occupy Workspace" PopUp Occupy-Workspace
117 +              "&Move Alt+F7" Move
118 +              "&Size Alt+F8" Resize
119 +              "&Lower Alt+F3" Lower
120 +              "Raise " Raise
121 +              "(Un)Stick " Stick
122 +              "(Un)Mi&nimize Alt+F9" Iconify
123 +              "(Un)Ma&ximize Alt+F10" Maximize
124 +              "(Un)Maximize Vertical " Maximize 0 100
125 +              "" Nop
126 +              "&Close Alt+F4" Delete
127 +              "&Kill! " Destroy
129 AddToMenu Window-Ops2 "Window Ops2" Title
130 +              "&Move Alt+F7" Move
131 +              "&Size Alt+F8" Resize
132 +              "(Un)Mi&nimize Alt+F9" Iconify
133 +              "(Un)Ma&ximize Alt+F10" Maximize
134 +              "&Lower Alt+F3" Lower
135 +              "" Nop
136 +              "&Close Alt+F4" Delete
137 +              "" Nop
138 +              "&ScrollBar" Module FvwmScroll 2 2
140 ############################################################################
141 # COMPLEX FUNCTIONS
143 AddToFunc warp-or-run           "I" Next [$0 CirculateHit] Iconify -1
144 +                               "I" Next [$0 CirculateHit] Focus
145 +                               "I" None [$0] $1
147 AddToFunc MailFunction          "I" Next [$0] Iconify -1
148 +                               "I" Next [$0] focus
149 +                               "I" None [$0] Exec $0 $1
151 AddToFunc Move-or-Raise         "I" Raise
152 +                               "M" Move
153 +                               "D" Lower
155 AddToFunc Move-or-Raise2        "M" Raise
156 +                               "M" Move
157 +                               "D" Lower
159 AddToFunc Maximize-Func         "C" Maximize     0 100
160 +                               "D" Maximize     100 100
162 AddToFunc Move-or-Iconify       "I" Raise
163 +                               "M" Move
164 +                               "D" Iconify
166 AddToFunc Resize-or-Raise       "I" Raise
167 +                               "M" Resize
168 +                               "D" Lower
170 AddToFunc Resize-or-Raise2      "M" Raise
171 +                               "M" Resize
172 +                               "D" Lower
174 AddToFunc PrintFunction         "I" Raise
175 +                               "I" Exec xdpr -id $w
177 AddToFunc Iconify-and-Raise     "I" Iconify
178 +                               "I" Raise
181 ##############################################################################
182 # This defines the mouse bindings
184 # Buttons:
185 #   0   - Any
186 #   1   - left
187 #   2   - middle
188 #   3   - right
189 # Context:
190 #   R   - Root Window
191 #   W   - Application Window
192 #   T   - Titlebar
193 #   S   - window side, top or bottom bar
194 #   F   - window frame (the  corners)
195 #   I   - for an Icon window
196 #   0-9 - titlebar butttons: 1 3 5 7 9    0 8 6 4 2
197 #                            1 Menu/Close
198 #                                               4 Iconify
199 #                                                 2 Maximize/Minimize
200 # Modifiers:
201 #   N   - no modifiers
202 #   C   - control
203 #   S   - shift
204 #   M   - Meta
205 #   A   - any modifiers
206 #   1   - X11 modifier mod1
207 #   2   - X11 modifier mod1
208 #   3   - X11 modifier mod1
209 #   4   - X11 modifier mod1
210 #   5   - X11 modifier mod1
213 # On Root Window
215 #     Button    Context Modifi  Function
216 Mouse 1         R       A       Menu Utilities Nop
217 Mouse 2         R       A       Menu Window-Ops Nop
218 Mouse 3         R       A       WindowList
221 # On Appilcation Window Decoration
223 #     Button    Context Modifi  Function
224 # the title bar buttons
225 Mouse 0         1       A       Menu Window-Ops Close
226 Mouse 0         2       A       Maximize-Func
227 Mouse 0         4       A       Iconify
228 # titlebar
229 Mouse 1         T       A       Move-or-Raise
230 Mouse 2         T       A       Menu Window-Ops2 Nop
231 # rest of the frame
232 Mouse 1         FS      A       Resize-or-Raise
233 Mouse 2         FS      A       Menu Window-Ops2 Nop
234 # Icon
235 Mouse 1         I       A       Move-or-Iconify
236 Mouse 2         I       A       Menu Window-Ops2 Iconify
237 # anything
238 Mouse 3         TSIF    A       RaiseLower
241 ############################################################################
242 # Now some keyboard shortcuts.
244 # Arrow Keys
245 # press arrow + control anywhere, and move the pointer by 1% of a page
246 Key Left        A       C       CursorMove -1 0
247 Key Right       A       C       CursorMove +1 +0
248 Key Up          A       C       CursorMove +0   -1
249 Key Down        A       C       CursorMove +0   +1
251 # press arrow + control meta key, and move the pointer by 1/10 of a page
252 Key Left        A       CM      CursorMove -10 +0
253 Key Right       A       CM      CursorMove +10 +0
254 Key Up          A       CM      CursorMove +0   -10
255 Key Down        A       CM      CursorMove +0   +10
257 # Keyboard accelerators
258 Key F1          A       M       Popup Window-Ops
259 Key F2          A       M       Popup Utilities
260 Key F3          A       M       Lower
261 Key F4          A       M       Destroy
262 Key F5          A       M       CirculateUp
263 Key F6          A       M       CirculateDown
264 Key F7          A       M       Move
265 Key F8          A       M       Resize
266 Key F9          A       M       Iconify
267 Key F10         A       M       Maximize
269 Key F1          W       C       WindowsDesk 0
270 Key F2          W       C       WindowsDesk 1
271 Key F3          W       C       WindowsDesk 2
272 Key F4          W       C       WindowsDesk 3
273 Key F5          W       C       WindowsDesk 4
275 #Page Up/Dapge Down keys are used to scroll by one desktop page
276 # in any context, press page up/down + control
277 # in root context, just pressing page up/down is OK
279 # I prefer the non-wrapping scroll. These are for example purposes only
280 #Key Next       A       C       Scroll 100000 0
281 #Key Next       R       N       Scroll 100000 0
282 #Key Prior      A       C       Scroll -100000 0
283 #Key Prior      R       N       Scroll -100000 0
286 #############################################################################
287 # Stuff to do at start-up
290 AddToFunc "InitFunction" "I" Exec xearth -pos 'fixed 50.5 13.4' &
291 +              "I" Module FvwmPager 0 4
292 +              "I" Module FvwmButtons
294 #+              "I" Exec "xsetroot" xsetroot -solid steelblue
295 #+              "I" Exec "xv" xv -rmode 0 -perfect -quit /home/calle/model.gif
297 m4_include(`.fvwm2desk')m4_dnl
299 AddToFunc "RestartFunction" "I" Module FvwmButtons
300 +              "I" Module FvwmPager 0 4
304 ############################################################################
305 ############################################################################
307 ## Module Definitions
309 ############################################################################
310 ############################################################################
312 ###################### GoodStuff button-bar ################################
313 # Colors
314 *FvwmButtonsFore Black
315 *FvwmButtonsBack #908090
317 # Font
318 *FvwmButtonsFont fixed
320 # Geometry - really likes to pick its own size, but giving a position is OK
321 #*FvwmButtonsGeometry +5-5
322 #*FvwmButtonsGeometry +0-1
323 #*FvwmButtonsGeometry -5-95
324 *FvwmButtonsGeometry -5-5
326 *FvwmButtonsRows 1
328 *FvwmButtons Xterm   xterm.xpm   Exec "xterm" exec xterm &
329 *FvwmButtons Seyon   modem.xpm   Exec "Seyon" exec seyon &
330 *FvwmButtons Mail    mail2.xpm   Exec "xterm" exec xterm -geometry 80x55 -e elm -P &
331 *FvwmButtons News    news.xpm   Exec "xterm" exec xterm -geometry 80x55 -e tin &
332 *FvwmButtons Netcape netcape.xpm   Exec "netscape" exec netscape &
333 *FvwmButtons SaveDesc desk.xpm   Module FvwmSaveDesk
335 ########################### Pager #########################################
336 *FvwmPagerBack #908090
337 *FvwmPagerFore #484048
338 *FvwmPagerHilight #cab3ca
339 #*FvwmPagerGeometry x80-5-80
340 *FvwmPagerGeometry x70-5-80
341 *FvwmPagerLabel 0 General
342 *FvwmPagerLabel 1 Mail/News
343 *FvwmPagerLabel 2 Compile
344 *FvwmPagerLabel 3 tmp
345 *FvwmPagerLabel 4 irc
346 *FvwmPagerSmallFont 5x8
348 ########################## Window-Identifier ###############################
349 # Just choose colors and a fonts
350 *FvwmIdentBack MidnightBlue
351 *FvwmIdentFore Yellow
352 *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
354 ##########################FvwmWinList##################################
355 *FvwmWinListBack #908090
356 *FvwmWinListFore Black
357 *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
358 *FvwmWinListAction Click1 Iconify -1,Raise
359 *FvwmWinListAction Click2 Iconify 1
360 *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
361 *FvwmWinListUseSkipList
362 *FvwmWinListGeometry +0-1