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