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