]> git.phdru.name Git - dotfiles.git/blob - .fvwm/main.m4
.fvwm/main.m4: Iconify Firefox' 1st window instead of lowering
[dotfiles.git] / .fvwm / main.m4
1 ##########################################################################
2 # FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
3 #
4
5 dnl The file is in m4 format, use FvwmM4 module to read it
6 dnl like this: ModuleSynchronous FvwmM4 -lock .fvwm2rc
7
8 dnl This is to prevent FvwmM4 to shadow $HOME
9 undefine(`HOME')
10
11 dnl Echo dimension
12 `#' width = WIDTH
13
14 divert(-1)
15 dnl koi8-r Fonts
16 dnl define(`SMALL_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-koi8-r')
17 dnl define(`MEDIUM_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-koi8-r')
18 dnl define(`BIG_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-koi8-r')
19
20 dnl cp1251 Fonts
21 dnl define(`SMALL_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-*-cp1251')
22 dnl define(`MEDIUM_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-*-cp1251')
23 dnl define(`BIG_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-*-cp1251')
24
25 dnl define(`XBUFFY_FONT', `-cronyx-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r')
26
27
28 dnl TrueType Fonts
29 define(`VERY_SMALL_FONT', `xft:Sans:size=10')
30 define(`SMALL_FONT', `xft:Sans:size=12')
31 define(`MEDIUM_FONT', `xft:Sans:size=14')
32 define(`BIG_FONT', `xft:Sans:size=16')
33 define(`LARGE_FONT', `xft:Sans:size=18')
34 define(`HUGE_FONT', `xft:Sans:size=20')
35 define(`GIGANTIC_FONT', `xft:Sans:size=22')
36
37 dnl Bold TT fonts
38 define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold')
39 define(`MEDIUM_BOLD_FONT', MEDIUM_FONT`:Bold')
40 define(`BIG_BOLD_FONT', BIG_FONT`:Bold')
41
42 define(`TITLE_FONT', MEDIUM_FONT)
43 define(`ICON_FONT', LARGE_FONT)
44
45 dnl Font and geometry aliases that depend on whether the screen resolution is
46 dnl 800x600, 1024x768 or 1920x1200
47
48 define(`PAGER_GEOM',
49 ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',
50        eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'))
51
52 define(`SMALL_PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, VERY_SMALL_FONT, SMALL_FONT))
53 define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT))
54 define(`BUTTONS_FONT', PAGER_FONT)
55
56
57 define(`MENU_FONT',
58 ifelse(eval(WIDTH < 1024), 1, BIG_FONT,
59        eval(WIDTH < 1920), 1, LARGE_FONT, GIGANTIC_FONT))
60 define(`IDENT_FONT', MENU_FONT)
61 define(`WIN_LIST_FONT', MENU_FONT)
62 define(`ICON_BOX_FONT', MENU_FONT)
63
64
65 dnl XSetBg message width and font
66 define(`TEXT_WIDTH',
67 ifelse(eval(WIDTH < 1024), 1, 70,
68        eval(WIDTH < 1920), 1, 75, 80))
69
70 define(`MESSAGE_FONT', `Nimbus Sans L 18')
71
72
73 dnl Terminal emulator
74 define(`TERM_GEOM',
75 ifelse(eval(WIDTH < 1024), 1, `80x25',
76        eval(WIDTH < 1920), 1, `80x30', `80x32'))
77
78 define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0')
79 define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0')
80
81 define(`TERM_GEOM_BIG',
82 ifelse(eval(WIDTH < 1024), 1, `96x30',
83        eval(WIDTH < 1920), 1, `112x32+2-0', `126x35'))
84
85
86 define(`TERM', `urxvt')
87 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
88 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
89 define(`TERM_KOI8_BOTLT', `TERM_KOI8 -geometry TERM_GEOM_BOTLT')
90 define(`TERM_UTF8_BOTLT', `TERM_UTF8 -geometry TERM_GEOM_BOTLT')
91 define(`TERM_KOI8_BOTRT', `TERM_KOI8 -geometry TERM_GEOM_BOTRT')
92 define(`TERM_UTF8_BOTRT', `TERM_UTF8 -geometry TERM_GEOM_BOTRT')
93
94
95 define(`REMOTE_HOST_TERM',
96 `$1 -e ssh -4 $2')
97
98 define(`REMOTE_HOST_TERM_TITLE',
99 `$1 -title $3 -n $3 -e ssh -4 $2')
100
101 define(`REMOTE_HOST_KOI8',
102 REMOTE_HOST_TERM_TITLE(TERM_KOI8, $1, $2))
103
104 define(`REMOTE_HOST_KOI8_MENU',
105 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2))
106
107 define(`REMOTE_HOST_KOI8_BOTLT',
108 REMOTE_HOST_TERM_TITLE(TERM_KOI8_BOTLT, $1, $2))
109
110 define(`REMOTE_HOST_KOI8_BOTRT',
111 REMOTE_HOST_TERM_TITLE(TERM_KOI8_BOTRT, $1, $2))
112
113 define(`REMOTE_HOST_KOI8_BOTLT_MENU',
114 "$2 (koi8,btlt)" REMOTE_HOST_KOI8_BOTLT($1, $2))
115
116 define(`REMOTE_HOST_KOI8_BOTRT_MENU',
117 "$2 (koi8,btrt)" REMOTE_HOST_KOI8_BOTRT($1, $2))
118
119 define(`REMOTE_HOST_UTF8',
120 REMOTE_HOST_TERM(TERM_UTF8, $1))
121
122 define(`REMOTE_HOST_UTF8_MENU',
123 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2))
124
125 define(`REMOTE_HOST_UTF8_BOTLT',
126 REMOTE_HOST_TERM(TERM_UTF8_BOTLT, $1))
127
128 define(`REMOTE_HOST_UTF8_BOTRT',
129 REMOTE_HOST_TERM(TERM_UTF8_BOTRT, $1))
130
131 define(`REMOTE_HOST_UTF8_BOTLT_MENU',
132 "$2 (utf8,btlt)" REMOTE_HOST_UTF8_BOTLT($1, $2))
133
134 define(`REMOTE_HOST_UTF8_BOTRT_MENU',
135 "$2 (utf8,btrt)" REMOTE_HOST_UTF8_BOTRT($1, $2))
136
137 define(`REMOTE_HOST_KOI8_BIG',
138 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1")
139
140 define(`REMOTE_HOST_KOI8_BIG_MENU',
141 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2))
142
143 divert
144
145 ##########################################################################
146 # PATH Setup
147 #
148 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
149 #ModulePath /usr/lib/fvwm
150 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/browser/chrome/icons/default:/usr/local/firefox/browser/icons
151
152 ############################################################################
153 # COLORS and FONTS
154 #
155 # Set the fore and back border colors for the window that has focus
156 Style * HilightFore Black, HilightBack #c06077
157
158 # Set fore/back border colors for all other windows
159 Style * Color Black/#60a0c0
160
161 # Set colors/font for pop-up menus
162 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
163 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT
164
165 # Set fonts to use on title bar and icon label
166 Style * Font              TITLE_FONT
167
168 ############################################################################
169 # ICON Setup
170 #
171 # If you don't want icons for some or all windows (or all of them!)
172 # Style * !Icon
173
174 # If you want ALL icons to follow you around the desktop (Sticky)
175 #Style * StickyIcon
176
177 # Auto Place Icons is a nice feature (Left Top Right Bottom)
178 #Style * IconBox 10 -75 -10 -0
179
180 Style * IconFont          ICON_FONT
181
182 ############################################################################
183 # FOCUS Setup
184 #
185 # Does the window with focus control the colormap, or the one under the mouse
186 ColormapFocus FollowsMouse
187
188 # Uncomment this to force you to click in a window to give it focus
189 #Style * ClickToFocus
190
191 # default: focus follows mouse
192 #Style * MouseFocus
193 #Style * FocusFollowsMouse
194
195 # If you knock your mouse out of the term, it keeps focus while in root window
196 Style *           SloppyFocus
197
198 ############################################################################
199 # MISC Setup
200 #
201 # click/release must occur in <n milliseconds to be a "click"
202 ClickTime 250
203
204 # if the window occupies less than n% of the screen, draw it opaque
205 OpaqueMoveSize 100
206
207 # Do not flip pages on the edge of the screen, but allow to move windows
208 EdgeScroll 0 0
209 EdgeResistance 10000
210 Style * EdgeMoveDelay 500
211 Style * EdgeMoveResistance 100
212
213 # MWM Emulation: Don't ignore hints for functions and transient decoration
214 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
215 Style * MWMFunctions, MWMDecor, MWMButtons
216
217 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
218 XORvalue 80
219
220 ###########################################################################
221 # PAGER Setup
222 #
223 # set the desk top size in units of physical screen size (width x height)
224 DesktopSize 2 2
225
226 ############################################################################
227 # WINDOW Placement
228 #
229 Style * PositionPlacement Center
230
231 ############################################################################
232 # STYLE Flag Setup
233 #
234 # (decorations and window options)
235 # Note: Order is important!! If compatible styles are set, styles are ORed
236 # together. If conflicting styles are set, the last one specified is used.
237
238 # change the default width, set a global icon, and give borders to popups
239 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
240 Style * DecorateTransient, ClickToFocusRaisesOff
241
242 Style "Fvwm*"           !Title, Sticky, WindowListSkip
243 Style "FvwmButtons"     !Handles, BorderWidth 0, Layer 2
244 Style "FvwmPager"       Layer 2
245
246 # Terminals
247 Style "*term"           Icon term.xpm
248 Style "*rxvt"           Icon term.xpm
249 Style "term-im-local"   Icon pidgin-menu.xpm
250 Style "term-im-remote"  Icon rcalc2.xpm
251 Style "term-im-*"       IconBox 630 -75 -2 -2, IconGrid 200 80
252 Style "term-im-*"       StartsOnPage 1 1 0, StartIconic
253
254 # Browsers' windows
255 Style "Certificate Manager" PositionPlacement Center
256 Style "*Downloads"      PositionPlacement 50-50w +5
257 Style "*Mozilla*"       PositionPlacement +0 -0
258
259 Style "*Chromium*"      PositionPlacement +0 -0
260
261 # IM
262 Style "Gajim"           PositionPlacement +0 -0
263 Style "* - Gajim"       MinOverlapPercentPlacement
264 # Pidgin
265 Style "Buddy List"      PositionPlacement +0 -0
266 Style "*Pidgin*"        MinOverlapPercentPlacement
267
268 # (S)MPlayer
269 Style "*MPlayer*"       Layer 6, PositionPlacement 350p 100p
270
271 Style "*clock"          !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p, Layer 2
272 Style "emacs"           NoPPosition
273 Style "gxmessage"       PositionPlacement 50-50w +20
274 Style "*lock"           !Title, Sticky, WindowListSkip
275 Style "Mosaic"          NoPPosition
276 Style "xbiff"           Icon mail1.xpm, !Title, Sticky, WindowListSkip
277 Style "xcalc"           Icon xcalc.xpm
278 Style "xconsole"        !Title, Sticky, WindowListSkip, NeverFocus
279 Style "xload"           !Title, Sticky, WindowListSkip, NeverFocus
280 Style "xman"            Icon xman.xpm
281 Style "xmh"             Icon mail2.xpm
282 Style "xsession"        !Title, Sticky, WindowListSkip, ClickToFocus
283 Style "XXkb"            !Title, !Borders, Sticky, WindowListSkip, Layer 5
284
285 ############################################################################
286 # BUTTON Setup
287 #
288
289 ## Buttons actually being used (duplicated below)
290 # small up triangle
291 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
292 # small down triangle
293 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
294 # Stylized X
295 #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
296
297 ## Triangles
298 #
299 # Small up Triangle
300 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
301 # Small down Triangle
302 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
303 # Large up Triangle
304 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
305 # Large down Triangle
306 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
307
308 ## Boxes
309 #
310 # Big Box
311 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
312 # Little Box
313 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
314 # Tall Box
315 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
316 # Dot
317 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
318 # Big Box with arrow (left-up to right-down) to little box (iconify)
319 #ButtonStyle 6 14 20x20@1 20x70@1 70x70@0 70x20@0 20x20@1 60x60@0 60x50@0 60x60@0 50x60@0 60x60@0 60x80@0 80x80@0 80x60@0 60x60@0
320 # Big Box with arrow (right-up to left-down) to little box (iconify)
321 ButtonStyle 6 14 70x20@0 70x70@0 20x70@1 20x20@1 70x20@1 30x60@0 30x50@0 30x60@0 40x60@0 30x60@0 30x80@0 10x80@0 10x60@0 30x60@0
322
323 ## X's
324 #
325 # Standard X
326 #ButtonStyle 3 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
327 ButtonStyle 2 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
328 # Funky X
329 #ButtonStyle 3 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
330 # Stylized X
331 #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
332
333 ## Lightning Bolts
334 #
335 # Small Lightning Bolt (skinny at both ends)
336 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
337 # Big Lighting Bolt (Fat at top, comes to a point)
338 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
339
340 ## Miscellaneous Buttons
341 #
342 # Nested Right Angles (looks kinda crappy)
343 #ButtonStyle 5 13 10x0@1 80x0@1 80x10@1 80x80@0 0x80@0 0x60@1 10x65@1 70x65@0 70x0@0 55x0@1 55x10@1 55x55@0 10x55@0
344 # Nested Right Angles (looks nice)
345 #ButtonStyle 6 14 0x0@1 0x20@1 20x20@0 20x0@0 0x0@1 0x25@1 25x25@1 25x0@1 55x0@1 55x55@0 0x55@0 0x60@1 60x60@1 60x0@1
346 # 4 Horizontal bars (sticky)
347 #ButtonStyle 7 12 10x23@0 90x23@0 90x28@0 10x28@1 10x47@1 90x47@0 90x52@0 10x52@1 10x70@2 90x70@0 90x76@0 10x76@1
348 ButtonStyle 3 12 10x23@0 90x23@0 90x28@0 10x28@1 10x47@1 90x47@0 90x52@0 10x52@1 10x70@2 90x70@0 90x76@0 10x76@1
349 # Expanding Windows (iconify -- looks NICE)
350 #ButtonStyle 8 16 60x40@1 60x80@0 15x80@0 15x40@1 60x40@1 40x40@1 40x25@1 75x25@1 75x60@0 60x60@0 75x60@0 75x40@0 85x40@0 85x15@0 60x15@1 60x25@1
351
352 ## Arrows Galore
353 #
354 # Up Arrow
355 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
356 # Down Arrow
357 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
358 # Left arrow  ( <- )
359 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
360 # Right arrow ( -> )
361 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
362 # Horizontal Line with arrowheads on left and right ( <-> )
363 #ButtonStyle * 12 10x50@1 35x25@1 35x40@1 65x40@1 65x25@1 90x50@1 65x75@0 65x60@0 35x60@0 35x75@0 10x50@0 10x50@1
364 # Vertical Line with arrowheads on top and bottom
365 #ButtonStyle * 12 50x10@1 25x35@1 40x35@1 40x60@1 25x60@1 50x85@1 75x60@0 60x60@0 60x35@0 75x35@0 50x10@0 50x10@1
366 # Diagonal Line with arrowheads on top and bottom ( / )
367 #ButtonStyle 5 11 80x15@1 45x15@1 55x25@1 25x55@1 15x45@1 15x80@1 50x80@0 40x70@0 70x40@0 80x50@0 80x15@0
368 # Diagonal Line with arrowheads on top and bottom ( \ )
369 #ButtonStyle 6 12 55x15@0 45x25@0 75x55@0 85x45@0 85x80@0 50x80@0 60x70@1 30x40@1 20x50@1 20x15@1 55x15@1 55x15@0
370 #
371 # the number "2"
372 #ButtonStyle 8 12 80x80@0 22x80@0 80x40@0 70x25@0 30x25@0 20x35@0 20x30@1 30x20@1 70x20@1 80x30@1 20x75@1 80x75@1
373
374 ############################################################################
375 # MOUSE Setup
376 #
377 # First, the root window. Button 1 brings up the Main Menu. B2 is the
378 # window operations list, and B3 is the winlist module
379 #     Button    Context Modifi  Function
380 Mouse 1         R       A       Menu RootMenu Nop
381 Mouse 2         R       A       Menu Window-Ops Nop
382 Mouse 3         R       A       WindowList
383
384 # Now, title bar buttons
385 # Left button is the Window-Ops2 menu
386 #     Button    Context Modifi  Function
387 Mouse 0         1       A       Menu Window-Ops2 Close
388 Mouse 0         3       A       Stick
389 Mouse 0         5       A       Center
390 # Right buttonsare iconify/maximize, rightmost is close
391 Mouse 0         2       A       Close
392 Mouse 0         4       A       Maximize toggle
393 Mouse 0         6       A       Iconify
394
395 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
396 # de-iconify, and on Top does a move-or-raise
397 #     Button    Context Modifi  Function
398 Mouse 1         F       A       Resize-or-Raise
399 Mouse 1         S       A       Move-or-Raise
400 Mouse 1         I       A       Move-or-Iconify
401 #Mouse 1                T       A       Move-or-Raise
402 Mouse 1         T       A       Shadify
403
404 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
405 #     Button    Context Modifi  Function
406 Mouse 2         I       A       Iconify
407 Mouse 2         FST     A       Menu Window-Ops2 Nop
408
409 # Button 3 does a raise-lower on anything
410 Mouse 3         TSIF    A       RaiseLower
411
412 ############################################################################
413 # KEYBOARD Setup
414
415 #
416 # press arrow + control + meta anywhere, and scroll by 1 page
417 Key Left        A       CM      Scroll -100 +0
418 Key Right       A       CM      Scroll +100 +0
419 Key Up          A       CM      Scroll +0   -100
420 Key Down        A       CM      Scroll +0   +100
421
422 # press arrow + meta key, and scroll by 1/10 of a page
423 Key Left        A       M       Scroll -10   +0
424 Key Right       A       M       Scroll +10   +0
425 Key Up          A       M       Scroll  +0  -10
426 Key Down        A       M       Scroll  +0  +10
427
428 # press shift arrow + control anywhere, and move the pointer by 1% of a page
429 Key Left        A       SC      CursorMove -1  +0
430 Key Right       A       SC      CursorMove +1  +0
431 Key Up          A       SC      CursorMove +0  -1
432 Key Down        A       SC      CursorMove +0  +1
433
434 # press shift arrow + meta key, and move the pointer by 1/10 of a page
435 Key Left        A       SM      CursorMove -10  +0
436 Key Right       A       SM      CursorMove +10  +0
437 Key Up          A       SM      CursorMove +0  -10
438 Key Down        A       SM      CursorMove +0  +10
439
440 # Switch window, mswindows style :)
441 Key Tab         A       M       Next [*] focus
442 Key Escape      A       M       Prev [*] focus
443
444 # Goto desktop/page
445 Key 1           A       CM      Desk 0 0
446 Key 2           A       CM      Desk 0 1
447 Key 3           A       CM      Desk 0 2
448 Key 4           A       CM      Desk 0 3
449 Key 5           A       CM      GotoPage 0 0
450 Key 6           A       CM      GotoPage 1 0
451 Key 7           A       CM      GotoPage 0 1
452 Key 8           A       CM      GotoPage 1 1
453
454 #############################################################################
455 # START-UP Functions
456 #
457 DestroyFunc InitFunction
458 AddToFunc InitFunction
459 +              I Module FvwmBacker
460 +              I Module FvwmButtons
461 +              I Module FvwmCommandS
462 +              I Module FvwmPager 0 2
463
464 DestroyFunc RestartFunction
465 AddToFunc RestartFunction
466 +              I Module FvwmBacker
467 +              I Module FvwmButtons
468 +              I Module FvwmCommandS
469 +              I Module FvwmPager 0 2
470 +              I Schedule 1000 Raise-All
471
472 DestroyFunc UrgencyFunc
473 AddToFunc UrgencyFunc
474 +                             I Iconify off
475 +                             I ThisWindow ("*Downloads") Break
476 +                             I FlipFocus
477 +                             I Raise
478 +                             I WarpToWindow 5p 5p
479
480 DestroyFunc StartStandardSession
481 AddToFunc StartStandardSession
482 +              I GotoDeskAndPage 0 0 0
483 +              I TERM_KOI8
484 +              I Wait TERM
485 +              I GotoDeskAndPage 0 0 1
486 +              I TERM_UTF8 -geometry 38x30+0-0
487 +              I Wait URxvt
488 +              I GotoDeskAndPage 0 1 0
489 +              I TERM_KOI8 -e su -
490 +              I Wait TERM
491 +              I PaVuControl
492 +              I Exec exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off
493 +              I XsetbgFilename
494 +              I Wait gxmessage
495 +              I GotoDeskAndPage 1 0 1
496 +              I TERM_KOI8
497 +              I Wait TERM
498 +              I GotoDeskAndPage 1 1 0
499 +              I TERM_UTF8 -iconic -name term-im-remote
500 +              I Wait term-im-remote
501 +              I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
502 +              I Wait term-im-local
503 +              I GotoDeskAndPage 2 0 1
504 +              I TERM_KOI8 -geometry TERM_GEOM_BIG
505 +              I Wait TERM
506 +              I FireFox
507 +              I Schedule 4500 GotoDeskAndPage 0 1 0
508
509 DestroyFunc ResumeFunction
510 AddToFunc ResumeFunction
511 +              I GotoDeskAndPage 0 0 0
512 +              I TERM_KOI8
513 +              I Wait TERM
514 +              I None ("Volume Control") PaVuControl
515 +              I Exec sleep 10; exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off
516 +              I XsetbgFilename
517 +              I Wait gxmessage
518 +              I Any ("*Mozilla Firefox") GotoDeskAndPage 0 1 0
519 +              I TestRc (Match) Break
520 +              I None ("*Mozilla Firefox") FireFox
521 +              I Schedule 4500 GotoDeskAndPage 0 1 0
522
523 ############################################################################
524 # COMPLEX FUNCTIONS
525 #
526 DestroyFunc Center
527 AddToFunc Center                I Move 50-50w 50-50w
528 +                               I WarpToWindow 74p 18p
529
530 DestroyFunc Iconify-and-Raise
531 AddToFunc Iconify-and-Raise     I Iconify
532 +                               I Raise
533
534 DestroyFunc Maximize-Func
535 AddToFunc Maximize-Func         C Maximize     toggle
536 +                               D Maximize     100 100
537
538 DestroyFunc Move-or-Iconify
539 AddToFunc Move-or-Iconify       I Raise
540 +                               M Move
541 +                               D Iconify
542
543 DestroyFunc Move-or-Raise
544 AddToFunc Move-or-Raise         I Raise
545 +                               M Move
546 +                               D Lower
547
548 DestroyFunc Move-or-Raise2
549 AddToFunc Move-or-Raise2        M Raise
550 +                               M Move
551 +                               D Lower
552
553 DestroyFunc Resize-or-Raise
554 AddToFunc Resize-or-Raise       I Raise
555 +                               M Resize
556 +                               D Lower
557
558 DestroyFunc Resize-or-Raise2
559 AddToFunc Resize-or-Raise2      M Raise
560 +                               M Resize
561 +                               D Lower
562
563 DestroyFunc Shadify
564 AddToFunc Shadify               D WindowShade
565 +                               M Move
566 +                               C RaiseLower
567
568 DestroyFunc warp-or-run
569 AddToFunc warp-or-run           I Next [$0 CirculateHit] Iconify -1
570 +                               I Next [$0 CirculateHit] Focus
571 +                               I None [$0] $1
572
573 DestroyFunc MailFunction
574 AddToFunc MailFunction          I Next [$0] Iconify -1
575 +                               I Next [$0] focus
576 +                               I None [$0] Exec exec $0 $1
577
578 DestroyFunc PrintFunction
579 AddToFunc PrintFunction         I Raise
580 +                               I Exec exec xdpr -id $w
581
582 DestroyFunc Raise-All
583 AddToFunc Raise-All           I All Raise
584
585 ##############################################################################
586 # User-defined functions
587 #
588
589 DestroyFunc PaVuControl
590 AddToFunc PaVuControl         I GotoDeskAndPage 0 1 1
591 +                             I Exec exec pavucontrol
592 +                             I Wait "Volume Control"
593
594 changequote([,])
595 DestroyFunc Id3Info
596 AddToFunc Id3Info             I Exec "$HOME"/lib/audio/mp3/id3info.py "`deadbeef --nowplaying '%F'`" | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
597 changequote([`], ['])
598
599 DestroyFunc DeadBeef
600 AddToFunc DeadBeef            I GotoDeskAndPage 0 1 1
601 +                             I Exec exec deadbeef
602
603 DestroyFunc Term-Phdru
604 AddToFunc Term-Phdru          I GotoDeskAndPage 1 0 1
605 +                             I REMOTE_HOST_KOI8(phdru.name, phdru.name)
606
607 DestroyFunc Term-Phdru-Big
608 AddToFunc Term-Phdru-Big      I GotoDeskAndPage 1 0 1
609 +                             I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
610
611 DestroyFunc FireFox
612 AddToFunc FireFox             I Any ("*Mozilla Firefox") Break
613 +                             I GotoDeskAndPage 1 0 0
614 +                             I Exec exec start-browser firefox
615 +                             I Wait "*Mozilla Firefox"
616 +                             I All ("*Mozilla Firefox") Iconify true
617 +                             I Exec webbrowserX -n file:///home/phd/Internet/WWW/dashboard/index.html
618 +                             I Wait "*Mozilla Firefox"
619
620 DestroyFunc Gajim
621 AddToFunc Gajim               I GotoDeskAndPage 1 1 0
622 +                             I Exec exec gajim
623
624 DestroyFunc Pidgin
625 AddToFunc Pidgin              I GotoDeskAndPage 1 1 0
626 +                             I Exec exec pidgin
627
628 DestroyFunc XFilename
629 AddToFunc XSetbgFilename      I Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
630
631 ##############################################################################
632 # MENU Setup
633 #
634
635 # This defines the most common window operations
636 AddToMenu Window-Ops    "Window Ops"    Title
637 +                       "Center"        Center
638 +                       "Move"          Move-or-Raise2
639 +                       "Resize"        Resize-or-Raise2
640 +                       "Raise"         Raise
641 +                       "Lower"         Lower
642 +                       "(De)Iconify"   Iconify
643 +                       "(Un)Stick"     Stick
644 +                       "(Un)Maximize"  maximize_func
645 +                       ""              Nop
646 +                       "Delete"        Delete
647 +                       "Close"         Close
648 +                       "Destroy"       Destroy
649 +                       ""              Nop
650 +                       "Refresh Screen" Refresh
651
652 # A trimmed down version of "Window Ops", good for binding to decorations
653 DestroyMenu Window-Ops2
654 AddToMenu Window-Ops2   "Center"        Center
655 +                       "Move"          Move-or-Raise
656 +                       "Iconify"       Iconify
657 +                       "(Un)Stick"     Stick
658 +                       "Refresh"       RefreshWindow
659 +                       ""              Nop
660 +                       "Close"         Close
661 +                       "Delete"        Delete
662 +                       "Destroy"       Destroy
663 +                       ""              Nop
664 +                       "Resize"        Resize-or-Raise
665 +                       "Shade"         WindowShade
666 +                       "Raise/Lower"   RaiseLower
667 +                       ""              Nop
668 +                       "ScrollBar"     Module FvwmScroll 2 2
669 +                       "Print"         PrintFunction
670
671 AddToMenu Terminals     "Terminals" Title
672 +               "Grey term (koi8)" TERM_KOI8
673 +               "Grey term (utf8)" TERM_UTF8
674 +               "Grey term (koi8,btlt)" TERM_KOI8_BOTLT
675 +               "Grey term (koi8,btrt)" TERM_KOI8_BOTRT
676 +               "Grey term (utf8,btlt)" TERM_UTF8_BOTLT
677 +               "Grey term (utf8,btrt)" TERM_UTF8_BOTRT
678 +               "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
679 +               "Big grey term (utf8)" TERM_UTF8 -geometry TERM_GEOM_BIG
680 +                       ""      Nop
681 +               "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
682 +               "White/black term (utf8)" TERM_UTF8 -fg white -bg black
683
684 AddToMenu TermColors    "Term Colors" Title
685 +                       "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
686 +                       "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
687 +                       ""      Nop
688 +                       "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
689 +                       "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
690 +                       ""      Nop
691 +                       "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
692 +                       "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
693 +                       "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
694 +                       ""      Nop
695 +                       "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
696 +                       "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
697 +                       "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
698 +                       ""      Nop
699 +                       "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
700 +                       "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
701 +                       "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
702 +                       "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
703 +                       ""      Nop
704 +                       "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
705 +                       "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
706 +                       "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
707 +                       "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
708
709 AddToMenu Systems       "Systems" Title
710 +                       REMOTE_HOST_KOI8_MENU(phdru.name, phdru)
711 +                       REMOTE_HOST_UTF8_MENU(phdru.name, phdru)
712 +                       REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU)
713
714 AddToMenu FvwmCommands  "Fvwm Commands" Title
715 +                       "Restart" Restart
716 +                       "Raise all" Raise-All
717 #+                       "Restart Fvwm2" Restart fvwm2
718 #+                       "Start Fvwm"    Restart fvwm
719 +                       "Fvwm Setup"    Popup FvwmSetup
720 +                       "Fvwm Modules"  Popup FvwmModules
721 +                       "" Nop
722 +                       "Exit Fvwm"     Quit
723
724 AddToMenu FvwmSetup     "Fvwm Setup" Title
725 +                       "Start standard session" StartStandardSession
726 +                       "Change Scrolling"      Popup FvwmScroll
727
728 AddToMenu FvwmScroll    "Change Scroll Behavior" Title
729 +                       "OFF"   EdgeScroll 0 0
730 +                       "ON"    EdgeScroll 100 100
731 +                       "Horizontal Only"       EdgeScroll 100 0
732 +                       "Vertical Only"         EdgeScroll 0 100
733 +                       "Partial"               EdgeScroll 50 50
734
735 AddToMenu FvwmModules   "Fvwm Modules" Title
736 +                       "Animate"      Module FvwmAnimate
737 +                       "Auto"         Module FvwmAuto
738 +                       "Backer"       Module FvwmBacker
739 +                       "Banner"       Module FvwmBanner
740 +                       "Buttons"      Module FvwmButtons
741 +                       "Cascade"      Module FvwmCascade
742 +                       "CommandS"     Module FvwmCommandS
743 +                       "Console"      Module FvwmConsole
744 +                       "ConsoleC"     Module FvwmConsoleC -e FvwmConsoleC.pl
745 +                       "Cpp"          Module FvwmCpp
746 +                       "Debug"        Module FvwmDebug
747 +                       "DragWell"     Module FvwmDragWell
748 +                       "Event"        Module FvwmEvent
749 +                       "Form"         Module FvwmForm
750 +                       "Gtk"          Module FvwmGtk
751 +                       "IconBox"      Module FvwmIconBox
752 +                       "IconMan"      Module FvwmIconMan
753 +                       "Ident"        Module FvwmIdent
754 +                       "M4"           Module FvwmM4
755 +                       "Pager"        Module FvwmPager 0 2
756 +                       "Rearrange"    Module FvwmRearrange
757 +                       "Save"         Module FvwmSave
758 +                       "SaveDesk"     Module FvwmSaveDesk
759 +                       "Script"       Module FvwmScript
760 +                       "Scroll"       Module FvwmScroll
761 +                       "TaskBar"      Module FvwmTaskBar
762 +                       "Theme"        Module FvwmTheme
763 +                       "Tile"         Module FvwmTile
764 +                       "Wharf"        Module FvwmWharf
765 +                       "WinList"      Module FvwmWinList
766
767 # This is the root menu
768 AddToMenu RootMenu "Root Menu"  Title
769 +               "Terminals"     Popup Terminals
770 #+               "Color term"    Popup TermColors
771 +               "Systems"       Popup Systems
772 +               ""              Nop
773 +               "Browsers"      Popup Browsers
774 +               "Utilities"     Popup Utilities
775 #+               ""              Nop
776 #+               "Lock Screen"   Popup XlockMenu
777 +               "XScreenSaver"  Popup XScreenSaverMenu
778 #+               "Tv-tuner"      Popup Tv-tuner
779 +               ""              Nop
780 +               "XSetBg"        Popup XSetBgMenu
781 +               "Fvwm Commands" Popup FvwmCommands
782
783 # This menu will fire up some often used programs
784 DestroyMenu  Utilities
785 AddToMenu Utilities     "Choose one:" Title
786 +                       "qPDFview" Exec exec qpdfview
787 +                       "FBReader" Exec exec fbreader
788 +                       ""       Nop
789 +                       "GVim"     Exec exec gvim
790 +                       ""       Nop
791 +                       "MyRuLb"   Exec exec "$HOME"/admin/prog/myrulib/myrulib
792 +                       ""       Nop
793 #+                       "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
794 #+                       "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc
795 +                       ""       Nop
796 +                       "pavucontrol" PaVuControl
797 +                       "DeadBeef"    DeadBeef
798 +                       "Id3Info"     Id3Info
799 +                       ""       Nop
800 +                       "Gajim"       Gajim
801 +                       "Pidgin"      Pidgin
802 +                       ""       Nop
803 +                       "xload"  Exec exec xload -geometry =136x136+0+0
804 +                       "Top"    TERM_KOI8 -T Top -n Top -e top
805 +                       ""       Nop
806 +                       "Refresh Screen" Refresh
807 +                       "xrefresh" Exec exec xrefresh
808 +                       ""       Nop
809 #+                       "xcalc" Exec exec xcalc
810 +                       "xclipboard" Exec exec xclipboard
811 +                       "xcutsel" Exec exec xcutsel
812 #+                       "xman" Exec exec xman -notopbox -geometry +150+102
813 #+                       "emacs" Exec emacs -geometry 81x35+150+34
814 #+                       "xv" Function warp-or-run xv "Exec exec xv -ncols 240 -geometry +0+0"
815
816 DestroyMenu  Browsers
817 AddToMenu Browsers      "Choose one:" Title
818 +                       "FireFox" FireFox
819 +                       "Chromium" None ("*Chromium") Exec exec start-browser chromium
820 +                       "Opera" None ("*Opera") Exec exec start-browser opera
821
822 # A wide variety of screenlocking options...
823 #AddToMenu XlockMenu     "Choose one:" Title
824 #+                       "Hop" Exec exec xlock -mode hop
825 #+                       "Image" Exec exec xlock -mode image
826 #+                       "Life" Exec exec xlock -mode life
827 #+                       "Flame" Exec exec xlock -mode flame
828 #+                       "Pyro" Exec exec xlock -mode pyro
829 #+                       "Qix" Exec exec xlock -mode qix
830 #+                       "Rotor" Exec exec xlock -mode rotor
831 #+                       "Swarm" Exec exec xlock -mode swarm
832 #+                       "" Nop
833 #+                       "Random" Exec exec xlock -mode random
834 #+                       "Blank" Exec exec xlock -mode blank
835
836 AddToMenu XScreenSaverMenu     "Choose mode:" Title
837 +                       "Blank Screen Now" Exec exec xscreensaver-command -activate
838 +                       "Lock Screen Now"  Exec exec xscreensaver-command -lock
839 +                       "Screen Saver Demo" Exec exec xscreensaver-command -demo
840 +                       "Screen Saver Preferences"  Exec exec xscreensaver-command -prefs
841 +                       "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
842 +                       "" Nop
843 +                       "Launch Screen Saver"       Exec exec xscreensaver
844 +                       "Kill Screen Saver"         Exec exec xscreensaver-command -exit
845
846 AddToMenu XSetBgMenu    "XSetBg" Title
847 +                       "Change wallpaper" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-force
848 +                       "Start" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-start
849 +                       "Stop" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-stop
850 +                       "Restart" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-restart
851 +                       ""       Nop
852 changequote([,])
853 +                       "Xli" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
854 +                       "Xli (scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
855 +                       "Open in browser" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`"
856 +                       "Filename" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r
857 +                       "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
858 +                       "XFilename (wrapped)" XSetbgFilename
859 +                       ""       Nop
860 +                       "Xli (prev.)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
861 +                       "Xli (prev., scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
862 +                       "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`"
863 changequote([`], ['])
864 +                       "Filename (prev.)" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r 1
865 +                       "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
866 +                       "XFilename (prev., wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
867
868 ############################################################################
869 # FvwmBacker
870 #
871 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
872 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
873 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
874 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-change
875
876 ############################################################################
877 # FvwmButtons
878 #
879 # Colors
880 *FvwmButtons: Fore Black
881 *FvwmButtons: Back rgb:90/80/90
882
883 # Font
884 *FvwmButtons: Font BUTTONS_FONT
885
886 # Geometry-- really likes to pick its own size, but giving a position is OK
887 *FvwmButtons: Geometry -1+1
888
889 # Layout: specify rows or columns, not both
890 *FvwmButtons: Rows 2 #, Columns 5
891
892 # Transparent background
893 #*FvwmButtons: Pixmap none
894 # Background
895 #*FvwmButtons: Pixmap fvwm.xpm
896
897 # Define the buttons to use.....
898 #*FvwmButtons: Move              arrows2.xpm     Move
899 #*FvwmButtons: Kill              skull.xpm       Destroy
900 #*FvwmButtons: Quit              nuke.xpm        Popup "Quit-Verify"
901
902 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
903
904 # Buttons
905 pushdef(`TERM_KOI8', `Exec "TERM" LC_CTYPE=ru_RU.KOI8-R exec TERM')
906 pushdef(`TERM_UTF8', `Exec "URxvt" exec "$HOME"/lib/X11/utf8rxvt')
907 *FvwmButtons: (Title Term,     Icon rterm2.xpm,      Action TERM_KOI8)
908 *FvwmButtons: (Title UTF-8,    Icon rterm2.xpm,      Action TERM_UTF8)
909 *FvwmButtons: (Title phdru,    Icon xterm-sgi.xpm,   Action REMOTE_HOST_KOI8(phdru.name, phdru.name))
910 popdef(`TERM_KOI8', `TERM_UTF8')
911
912 *FvwmButtons: (Title Wallpaper, Icon find1.xpm,        Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
913 *FvwmButtons: (Title "-1",      Icon find1.xpm,        Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
914 *FvwmButtons: (Title Next,      Icon Jrecycle.xpm,     Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force)
915 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action Exec "Volume Control" exec pavucontrol)
916 #*FvwmButtons: (Title Id3Info,  Icon bell.xpm,         Action Id3Info)
917 *FvwmButtons: (Title DeadBeef,  Icon bell.xpm,         Action Exec "DeaDBeeF-*" exec deadbeef)
918 #*FvwmButtons: (Title XLock,     Icon Jxlock.xpm,      Action Exec exec xscreensaver-command -lock)
919
920 ############################################################################
921 # FvwmForm
922 #
923 # FvwmForm alias - rlogin to host via term
924 #FvwmForm Rlogin
925 #*Rlogin: WarpPointer
926 #*Rlogin: Font         *helvetica*m*r*n*14*
927 #*Rlogin: ButtonFont   *helvetica*m*o*n*14*
928 #*Rlogin: InputFont    *cour*m*r*n*14*
929 #*Rlogin: Fore         Black
930 #*Rlogin: Back         Light Gray
931 #*Rlogin: ItemFore          Wheat
932 #*Rlogin: ItemBack          Gray50
933 ## begin items
934 #*Rlogin: Line         center
935 #*Rlogin: Text         "Login to Remote Host"
936 #*Rlogin: Line         center
937 #*Rlogin: Text         "Host:"
938 #*Rlogin: Input        HostName  20   ""
939 #*Rlogin: Line         center
940 #*Rlogin: Selection    UserSel   single
941 #*Rlogin: Choice       Default   Default   on   "same user"
942 #*Rlogin: Choice       Custom    Custom    off  "user:"
943 #*Rlogin: Input        UserName  10   ""
944 #*Rlogin: Line         expand
945 #*Rlogin: Button       quit "Login" ^M
946 #*Rlogin: Command      TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
947 #*Rlogin: Button       restart   "Clear"
948 #*Rlogin: Command Beep
949 #*Rlogin: Button       quit "Cancel"
950 #*Rlogin: Command Nop
951 ##
952 ## FvwmForm alias - query exit ala mwm
953 #FvwmForm QuitVerify
954 #*QuitVerify: GrabServer
955 #*QuitVerify: WarpPointer
956 #*QuitVerify: Font          *helvetica*m*r*n*14*
957 ##*QuitVerify: ButtonFont    *helvetica*m*o*n*14*
958 #*QuitVerify: ButtonFont    7x13bold
959 #*QuitVerify: Fore          Black
960 #*QuitVerify: Back          Light Gray
961 #*QuitVerify: ItemFore Wheat
962 #*QuitVerify: ItemBack Gray50
963 ## begin items
964 #*QuitVerify: Line          center
965 #*QuitVerify: Text          "Do you really want to exit FVWM?"
966 #*QuitVerify: Line          expand
967 #*QuitVerify: Button   quit      " Exit "
968 #*QuitVerify: Command  Quit
969 #*QuitVerify: Button   quit      "Cancel"
970 #*QuitVerify: Command  Nop
971 #
972 ##
973 ## MyTalk & MyFvwmTalk from Dave Goldberg
974 ## MyTalk Form - dissappears after use
975 #FvwmForm MyTalk
976 #*MyTalk: WarpPointer
977 #*MyTalk: Font *helvetica*m*r*n*14*
978 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
979 #*MyTalk: InputFont *cour*m*r*n*14*
980 #*MyTalk: Fore Red
981 #*MyTalk: Back Gray
982 #*MyTalk: ItemFore Blue
983 #*MyTalk: ItemBack Gray
984 #*MyTalk: Line center
985 #*MyTalk: Text "Fvwm Function"
986 #*MyTalk: Input Func 40 ""
987 #*MyTalk: Line expand
988 #*MyTalk: Button quit "Run" ^M
989 #*MyTalk: Command $(Func)
990 #*MyTalk: Button restart "Clear" ^R
991 #*MyTalk: Button quit "Cancel" ^C
992 #*MyTalk: Command Nop
993 ##
994 ## MyFvwmTalk Form - sticks around
995 #FvwmForm MyFvwmTalk
996 #*MyFvwmTalk: WarpPointer
997 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
998 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
999 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
1000 #*MyFvwmTalk: Fore Red
1001 #*MyFvwmTalk: Back Gray
1002 #*MyFvwmTalk: ItemFore Blue
1003 #*MyFvwmTalk: ItemBack Gray
1004 #*MyFvwmTalk: Line center
1005 #*MyFvwmTalk: Text "Fvwm Function"
1006 #*MyFvwmTalk: Input Func 40 ""
1007 #*MyFvwmTalk: Line expand
1008 #*MyFvwmTalk: Button restart "Run" ^M
1009 #*MyFvwmTalk: Command $(Func)
1010 #*MyFvwmTalk: Button restart "Clear" ^R
1011 #*MyFvwmTalk: Command Nop
1012 #*MyFvwmTalk: Button restart "Iconify" ^Z
1013 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
1014 #*MyFvwmTalk: Button quit "Quit" ^C
1015 #*MyFvwmTalk: Command Nop
1016
1017 ############################################################################
1018 # FvwmIconBox
1019 #
1020 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
1021 *FvwmIconBox: IconBack    #cfcfcf
1022 *FvwmIconBox: IconHiFore  black
1023 *FvwmIconBox: IconHiBack  LightSkyBlue
1024 *FvwmIconBox: Back        #5f9ea0
1025 #*FvwmIconBox: Fore       blue
1026 *FvwmIconBox: Geometry    5x1+0+0
1027 *FvwmIconBox: MaxIconSize 64x38
1028 *FvwmIconBox: Font        ICON_BOX_FONT
1029 *FvwmIconBox: SortIcons   IconName
1030 *FvwmIconBox: Padding     4
1031 *FvwmIconBox: Lines       10
1032 *FvwmIconBox: SBWidth     11
1033 *FvwmIconBox: Placement   Left Top
1034 *FvwmIconBox: Pixmap      fvwm.xpm
1035 #*FvwmIconBox: HideSC Horizontal
1036 *FvwmIconBox: SetWMIconSize
1037 *FvwmIconBox: HilightFocusWin
1038 #*FvwmIconBox: Resolution          Desk
1039 *FvwmIconBox: Mouse       1       Click           RaiseLower
1040 *FvwmIconBox: Mouse       1       DoubleClick     Iconify
1041 *FvwmIconBox: Mouse       2       Click           Iconify -1, Focus
1042 *FvwmIconBox: Mouse       3       Click           Module FvwmIdent
1043 *FvwmIconBox: Key         r       RaiseLower
1044 *FvwmIconBox: Key         space   Iconify
1045 *FvwmIconBox: Key         d       Close
1046 *FvwmIconBox: Key         n       Next
1047 *FvwmIconBox: Key         p       Prev
1048 *FvwmIconBox: Key         h       Left
1049 *FvwmIconBox: Key         j       Down
1050 *FvwmIconBox: Key         k       Up
1051 *FvwmIconBox: Key         l       Right
1052
1053 ############################################################################
1054 # FvwmIdent
1055 #
1056 # Give us colors and a fonts
1057 *FvwmIdent: Back MidnightBlue
1058 *FvwmIdent: Fore Yellow
1059 *FvwmIdent: Font IDENT_FONT
1060
1061 ############################################################################
1062 # FvwmPager
1063 #
1064 *FvwmPager: Back #908090
1065 *FvwmPager: Fore #484048
1066 *FvwmPager: Font TITLE_FONT
1067 *FvwmPager: Hilight #cab3ca
1068 *FvwmPager: Geometry PAGER_GEOM
1069 *FvwmPager: Label 0 System
1070 *FvwmPager: Label 1 Net
1071 *FvwmPager: Label 2 Work
1072 *FvwmPager: SmallFont SMALL_PAGER_FONT
1073
1074 *FvwmPager: Balloons All
1075 *FvwmPager: BalloonBack #efe3b5
1076 *FvwmPager: BalloonFore Black
1077 *FvwmPager: BalloonFont ICON_FONT
1078 *FvwmPager: BalloonYOffset +2
1079 *FvwmPager: BalloonBorderWidth 1
1080 *FvwmPager: BalloonBorderColor Black
1081
1082 ############################################################################
1083 # FvwmScroll
1084 #
1085 *FvwmScroll: Back grey40
1086 *FvwmScroll: Fore green
1087
1088 ############################################################################
1089 # FvwmWinList
1090 #
1091 *FvwmWinList: Back #908090
1092 *FvwmWinList: Fore Black
1093 *FvwmWinList: Font WIN_LIST_FONT
1094 *FvwmWinList: Action Click1 Iconify -1, Focus
1095 *FvwmWinList: Action Click2 Iconify
1096 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1097 *FvwmWinList: UseSkipList
1098 *FvwmWinList: Geometry +10-10