]> git.phdru.name Git - dotfiles.git/blob - .fvwm/main.m4
.fvwmrc: Rename terminal macros
[dotfiles.git] / .fvwm / main.m4
1 ##########################################################################
2 # FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
3 #
4
5 dnl The file is in m4 format, use FvwmM4 module to read it
6 dnl like this: ModuleSynchronous FvwmM4 -lock main.m4
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
16 dnl TrueType Fonts
17 define(`VERY_SMALL_FONT', `xft:Sans:size=10')
18 define(`SMALL_FONT', `xft:Sans:size=12')
19 define(`MEDIUM_FONT', `xft:Sans:size=14')
20 define(`BIG_FONT', `xft:Sans:size=16')
21 define(`LARGE_FONT', `xft:Sans:size=18')
22 define(`HUGE_FONT', `xft:Sans:size=20')
23 define(`GIGANTIC_FONT', `xft:Sans:size=22')
24
25 dnl Bold TT fonts
26 define(`SMALL_BOLD_FONT', SMALL_FONT`:Bold')
27 define(`MEDIUM_BOLD_FONT', MEDIUM_FONT`:Bold')
28 define(`BIG_BOLD_FONT', BIG_FONT`:Bold')
29
30 define(`TITLE_FONT', MEDIUM_FONT)
31 define(`ICON_FONT', LARGE_FONT)
32
33 dnl Font and geometry aliases that depend on whether the screen resolution is
34 dnl 800x600, 1024x768 or 1920x1200
35
36 define(`PAGER_GEOM',
37 ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',
38        eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'))
39
40 define(`SMALL_PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, VERY_SMALL_FONT, SMALL_FONT))
41 define(`PAGER_FONT', ifelse(eval(WIDTH < 1920), 1, SMALL_FONT, BIG_FONT))
42 define(`BUTTONS_FONT', PAGER_FONT)
43
44
45 define(`MENU_FONT',
46 ifelse(eval(WIDTH < 1024), 1, BIG_FONT,
47        eval(WIDTH < 1920), 1, LARGE_FONT, GIGANTIC_FONT))
48 define(`IDENT_FONT', MENU_FONT)
49 define(`WIN_LIST_FONT', MENU_FONT)
50 define(`ICON_BOX_FONT', MENU_FONT)
51
52
53 dnl XSetBg message width and font
54 define(`TEXT_WIDTH',
55 ifelse(eval(WIDTH < 1024), 1, 70,
56        eval(WIDTH < 1920), 1, 75, 80))
57
58 define(`MESSAGE_FONT', `Nimbus Sans L 18')
59
60
61 dnl Terminal emulator
62 define(`TERM_GEOM',
63 ifelse(eval(WIDTH < 1024), 1, `80x25',
64        eval(WIDTH < 1920), 1, `80x30', `80x32'))
65
66 define(`TERM_GEOM_BOTLT', TERM_GEOM`+0-0')
67 define(`TERM_GEOM_BOTRT', TERM_GEOM`-0-0')
68
69 define(`TERM_GEOM_BIG',
70 ifelse(eval(WIDTH < 1024), 1, `96x30',
71        eval(WIDTH < 1920), 1, `112x32+2-0', `119x32+1-0'))
72
73
74 define(`TERM', `urxvt')
75 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
76 define(`TERM_RU_UTF8', `Exec LC_CTYPE=ru_RU.UTF-8 exec TERM -name URxvt')
77 define(`TERM_EN_UTF8', `Exec LC_CTYPE=en_US.UTF-8 exec TERM -name URxvt')
78 define(`TERM_HEB_UTF8', `Exec LC_CTYPE=he_IL.UTF-8 exec TERM -name URxvt')
79 define(`TERM_KOI8_BOTLT', `TERM_KOI8 -geometry TERM_GEOM_BOTLT')
80 define(`TERM_RU_UTF8_BOTLT', `TERM_RU_UTF8 -geometry TERM_GEOM_BOTLT')
81 define(`TERM_KOI8_BOTRT', `TERM_KOI8 -geometry TERM_GEOM_BOTRT')
82 define(`TERM_RU_UTF8_BOTRT', `TERM_RU_UTF8 -geometry TERM_GEOM_BOTRT')
83
84
85 define(`SSH', `cgmem_nice 300 ssh')
86
87 define(`TERM_SSH', `$1 -e SSH $2')
88
89 define(`TERM_TITLE_SSH', `$1 -title "$3" -n "$3" -e SSH $2')
90
91 define(`TERM_KOI8_SSH',
92 TERM_TITLE_SSH(TERM_KOI8, $1, $2))
93
94 define(`SSH_SCREEN_KOI8', `-t $1 exec /usr/bin/screen -xRR -S default-koi8')
95 define(`SSH_SCREEN_UTF8', `-t $1 exec /usr/bin/screen -xRR -S default-utf8')
96
97 define(`MENU_TERM_KOI8_SSH',
98 "$2 (koi8)" TERM_KOI8_SSH($1, $2))
99
100 define(`TERM_KOI8_BOTLT_SSH',
101 TERM_TITLE_SSH(TERM_KOI8_BOTLT, $1, $2))
102
103 define(`TERM_KOI8_BOTRT_SSH',
104 TERM_TITLE_SSH(TERM_KOI8_BOTRT, $1, $2))
105
106 define(`MENU_TERM_KOI8_BOTLT_SSH',
107 "$2 (koi8,btlt)" TERM_KOI8_BOTLT_SSH($1, $2))
108
109 define(`MENU_TERM_KOI8_BOTRT_SSH',
110 "$2 (koi8,btrt)" TERM_KOI8_BOTRT_SSH($1, $2))
111
112 define(`TERM_UTF8_SSH',
113 TERM_TITLE_SSH(TERM_RU_UTF8, $1, $2))
114
115 define(`MENU_TERM_UTF8_SSH',
116 "$2 (utf8)" TERM_UTF8_SSH($1, $2))
117
118 define(`TERM_UTF8_BOTLT_SSH',
119 TERM_TITLE_SSH(TERM_RU_UTF8_BOTLT, $1, $2))
120
121 define(`TERM_UTF8_BOTRT_SSH',
122 TERM_TITLE_SSH(TERM_RU_UTF8_BOTRT, $1, $2))
123
124 define(`MENU_TERM_UTF8_BOTLT_SSH',
125 "$2 (utf8,btlt)" TERM_UTF8_BOTLT_SSH($1, $2))
126
127 define(`MENU_TERM_UTF8_BOTRT_SSH',
128 "$2 (utf8,btrt)" TERM_UTF8_BOTRT_SSH($1, $2))
129
130 define(`TERM_KOI8_BIG_SSH',
131 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e SSH "$1")
132
133 define(`MENU_TERM_KOI8_BIG_SSH',
134 "$2 (koi8)" TERM_KOI8_BIG_SSH($1, $2))
135
136 divert
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/icons/hicolor/32x32/apps/:/usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/browser/chrome/icons/default:/usr/local/firefox/browser/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 # STYLE Flag Setup
226 #
227 # (decorations and window options)
228 # Note: Order is important!! If compatible styles are set, styles are ORed
229 # together. If conflicting styles are set, the last one specified is used.
230
231 # change the default width, set a global icon, and give borders to popups
232 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
233 Style * DecorateTransient, ClickToFocusRaisesOff
234
235 Style "Fvwm*"           !Title, Sticky, WindowListSkip
236 Style "FvwmButtons"     !Handles, BorderWidth 0, Layer 2
237 Style "FvwmPager"       Layer 2
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 250p 100p
263 Style "*mpv"            Layer 6, PositionPlacement 250p 100p
264
265 Style "*clock"          !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p, Layer 2
266 Style "deadbeef"        PositionPlacement -0 -0
267 Style "gxmessage"       PositionPlacement 50-50w +20
268 Style "*lock"           !Title, Sticky, WindowListSkip
269 Style "Mosaic"          NoPPosition
270 Style "xbiff"           Icon mail1.xpm, !Title, Sticky, WindowListSkip
271 Style "xcalc"           Icon xcalc.xpm
272 Style "xconsole"        !Title, Sticky, WindowListSkip, NeverFocus
273 Style "xload"           !Title, Sticky, WindowListSkip, NeverFocus
274 Style "xman"            Icon xman.xpm
275 Style "xmh"             Icon mail2.xpm
276 Style "xsession"        !Title, Sticky, WindowListSkip, ClickToFocus
277 Style "XXkb"            !Title, !Borders, Sticky, WindowListSkip, Layer 5
278
279 ############################################################################
280 # BUTTON Setup
281 #
282
283 ## Buttons actually being used (duplicated below)
284 # small up triangle
285 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
286 # small down triangle
287 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
288 # Stylized X
289 #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
290
291 ## Triangles
292 #
293 # Small up Triangle
294 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
295 # Small down Triangle
296 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
297 # Large up Triangle
298 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
299 # Large down Triangle
300 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
301
302 ## Boxes
303 #
304 # Big Box
305 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
306 # Little Box
307 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
308 # Tall Box
309 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
310 # Dot
311 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
312 # Big Box with arrow (left-up to right-down) to little box (iconify)
313 #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
314 # Big Box with arrow (right-up to left-down) to little box (iconify)
315 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
316
317 ## X's
318 #
319 # Standard X
320 #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
321 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
322 # Funky X
323 #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
324 # Stylized X
325 #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
326
327 ## Lightning Bolts
328 #
329 # Small Lightning Bolt (skinny at both ends)
330 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
331 # Big Lighting Bolt (Fat at top, comes to a point)
332 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
333
334 ## Miscellaneous Buttons
335 #
336 # Nested Right Angles (looks kinda crappy)
337 #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
338 # Nested Right Angles (looks nice)
339 #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
340 # 4 Horizontal bars (sticky)
341 #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
342 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
343 # Expanding Windows (iconify -- looks NICE)
344 #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
345
346 ## Arrows Galore
347 #
348 # Up Arrow
349 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
350 # Down Arrow
351 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
352 # Left arrow  ( <- )
353 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
354 # Right arrow ( -> )
355 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
356 # Horizontal Line with arrowheads on left and right ( <-> )
357 #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
358 # Vertical Line with arrowheads on top and bottom
359 #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
360 # Diagonal Line with arrowheads on top and bottom ( / )
361 #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
362 # Diagonal Line with arrowheads on top and bottom ( \ )
363 #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
364 #
365 # the number "2"
366 #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
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 DestroyFunc InitFunction
452 AddToFunc InitFunction
453 +              I Module FvwmBacker
454 +              I Module FvwmButtons
455 +              I Module FvwmCommandS
456 +              I Module FvwmPager 0 2
457
458 DestroyFunc RestartFunction
459 AddToFunc RestartFunction
460 +              I Module FvwmBacker
461 +              I Module FvwmButtons
462 +              I Module FvwmCommandS
463 +              I Module FvwmPager 0 2
464 +              I Schedule 1000 Raise-All
465
466 DestroyFunc UrgencyFunc
467 AddToFunc UrgencyFunc
468 +                             I Iconify off
469 +                             I ThisWindow ("*Downloads|Skype") Break
470 +                             I FlipFocus
471 +                             I Raise
472 +                             I WarpToWindow 5p 5p
473
474 DestroyFunc StartStandardSession
475 AddToFunc StartStandardSession
476 +              I GotoDeskAndPage 0 0 0
477 +              I TERM_KOI8
478 +              I Wait TERM
479 +              I Exec exec cgmem_nice 200 pulseaudio --start
480 +              I PaVuControl
481 +              I Exec exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off
482 +              I XsetbgFilename
483 +              I Wait gxmessage
484 +              I GotoDeskAndPage 2 0 1
485 +              I TERM_KOI8 -geometry TERM_GEOM_BIG
486 +              I Wait TERM
487 +              I FireFox
488 +              I GotoDeskAndPage 0 1 1
489
490 DestroyFunc ResumeFunction
491 AddToFunc ResumeFunction
492 +              I GotoDeskAndPage 0 0 0
493 +              I TERM_KOI8
494 +              I Wait TERM
495 +              I Exec exec cgmem_nice 200 pulseaudio --start
496 +              I None ("Volume Control") PaVuControl
497 +              I Exec sleep 10; exec "$HOME"/current/projects/audio-cdr-video/audio/pa-mic-off
498 +              I XsetbgFilename
499 +              I Wait gxmessage
500 +              I Any ("*Mozilla Firefox") GotoDeskAndPage 0 1 1
501 +              I TestRc (Match) Break
502 +              I None ("*Mozilla Firefox") FireFox
503
504 ############################################################################
505 # COMPLEX FUNCTIONS
506 #
507 DestroyFunc Center
508 AddToFunc Center                I Move 50-50w 50-50w
509 +                               I WarpToWindow 74p 18p
510
511 DestroyFunc Iconify-and-Raise
512 AddToFunc Iconify-and-Raise     I Iconify
513 +                               I Raise
514
515 DestroyFunc Maximize-Func
516 AddToFunc Maximize-Func         C Maximize     toggle
517 +                               D Maximize     100 100
518
519 DestroyFunc Move-or-Iconify
520 AddToFunc Move-or-Iconify       I Raise
521 +                               M Move
522 +                               D Iconify
523
524 DestroyFunc Move-or-Raise
525 AddToFunc Move-or-Raise         I Raise
526 +                               M Move
527 +                               D Lower
528
529 DestroyFunc Move-or-Raise2
530 AddToFunc Move-or-Raise2        M Raise
531 +                               M Move
532 +                               D Lower
533
534 DestroyFunc Resize-or-Raise
535 AddToFunc Resize-or-Raise       I Raise
536 +                               M Resize
537 +                               D Lower
538
539 DestroyFunc Resize-or-Raise2
540 AddToFunc Resize-or-Raise2      M Raise
541 +                               M Resize
542 +                               D Lower
543
544 DestroyFunc Shadify
545 AddToFunc Shadify               D WindowShade
546 +                               M Move
547 +                               C RaiseLower
548
549 DestroyFunc warp-or-run
550 AddToFunc warp-or-run           I Next [$0 CirculateHit] Iconify -1
551 +                               I Next [$0 CirculateHit] Focus
552 +                               I None [$0] $1
553
554 DestroyFunc MailFunction
555 AddToFunc MailFunction          I Next [$0] Iconify -1
556 +                               I Next [$0] focus
557 +                               I None [$0] Exec exec $0 $1
558
559 DestroyFunc PrintFunction
560 AddToFunc PrintFunction         I Raise
561 +                               I Exec exec xdpr -id $w
562
563 DestroyFunc Raise-All
564 AddToFunc Raise-All           I All Raise
565
566 ##############################################################################
567 # User-defined functions
568 #
569
570 DestroyFunc PaVuControl
571 AddToFunc PaVuControl         I GotoDeskAndPage 0 1 1
572 +                             I Exec exec pulseaudio --kill
573 +                             I Exec exec cgmem_nice 200 pulseaudio --start
574 +                             I Exec exec cgmem_nice 200 pavucontrol
575 +                             I Wait "Volume Control"
576
577 changequote([,])
578 DestroyFunc Id3Info
579 AddToFunc Id3Info             I Exec "$HOME"/lib/audio/mp3/id3info.py "`audtool --current-song-filename`" | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
580 changequote([`], ['])
581
582 DestroyFunc AudioPlayer
583 AddToFunc AudioPlayer         I GotoDeskAndPage 0 1 1
584 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 400 deadbeef
585
586 DestroyFunc Term-Iskra
587 AddToFunc Term-Iskra          I GotoDeskAndPage 1 1 2
588 +                             I TERM_KOI8_SSH(SSH_SCREEN_KOI8(iskra-aviel.phdru.name), iskra scr)
589
590 DestroyFunc Term-Iskra-Big
591 AddToFunc Term-Iskra-Big      I GotoDeskAndPage 1 1 2
592 +                             I TERM_KOI8_BIG_SSH(iskra-aviel.phdru.name, ISKRA)
593
594 DestroyFunc Term-Oper
595 AddToFunc Term-Oper           I GotoDeskAndPage 1 1 2
596 +                             I TERM_KOI8_BOTRT_SSH(SSH_SCREEN_KOI8(oper.med.ru), oper scr)
597
598 DestroyFunc Term-Oper-Big
599 AddToFunc Term-Oper-Big       I GotoDeskAndPage 1 1 2
600 +                             I TERM_KOI8_BIG_SSH(oper.med.ru, OPER)
601
602 DestroyFunc Term-Phdru
603 AddToFunc Term-Phdru          I GotoDeskAndPage 1 0 1
604 +                             I TERM_KOI8_SSH(SSH_SCREEN_KOI8(phdru.name), phdru.name scr)
605
606 DestroyFunc Term-Phdru-Big
607 AddToFunc Term-Phdru-Big      I GotoDeskAndPage 1 0 1
608 +                             I TERM_KOI8_BIG_SSH(phdru.name, phdru.name)
609
610 DestroyFunc Term3Hosts
611 AddToFunc Term3Hosts          I Term-Iskra
612 +                             I Wait TERM
613 +                             I Term-Oper
614 +                             I Wait TERM
615 +                             I GotoDeskAndPage 1 0 1
616 +                             I TERM_KOI8_SSH(SSH_SCREEN_KOI8(-D 1080 phdru.name), phdru.name scr)
617 +                             I Wait TERM
618 +                             I GotoDeskAndPage 1 1 2
619
620 DestroyFunc FireFox
621 AddToFunc FireFox             I Any ("*Mozilla Firefox") Break
622 +                             I GotoDeskAndPage 1 0 0
623 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 4000 start-browser firefox -P phd
624 +                             I Wait "*Mozilla Firefox"
625 +                             I Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 4000 firefox --new-window
626 +                             I Wait "*Mozilla Firefox"
627 +                             I Next ("*Mozilla Firefox") Iconify true
628
629 DestroyFunc Gajim
630 AddToFunc Gajim               I GotoDeskAndPage 1 1 0
631 +                             I Exec exec cgmem_nice 300 gajim
632
633 DestroyFunc Pidgin
634 AddToFunc Pidgin              I GotoDeskAndPage 1 1 0
635 +                             I Exec exec cgmem_nice 300 pidgin
636
637 DestroyFunc Skype
638 AddToFunc Skype               I GotoDeskAndPage 0 0 1
639 +                             I Exec BROWSER=firefox exec cgmem_nice 1000 skypeforlinux
640
641 DestroyFunc XFilename
642 AddToFunc XSetbgFilename      I Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
643
644 ##############################################################################
645 # MENU Setup
646 #
647
648 # This defines the most common window operations
649 AddToMenu Window-Ops    "Window Ops"    Title
650 +                       "Center"        Center
651 +                       "Move"          Move-or-Raise2
652 +                       "Resize"        Resize-or-Raise2
653 +                       "Raise"         Raise
654 +                       "Lower"         Lower
655 +                       "(De)Iconify"   Iconify
656 +                       "(Un)Stick"     Stick
657 +                       "(Un)Maximize"  maximize_func
658 +                       ""              Nop
659 +                       "Delete"        Delete
660 +                       "Close"         Close
661 +                       "Destroy"       Destroy
662 +                       ""              Nop
663 +                       "Refresh Screen" Refresh
664
665 # A trimmed down version of "Window Ops", good for binding to decorations
666 DestroyMenu Window-Ops2
667 AddToMenu Window-Ops2   "Center"        Center
668 +                       "Move"          Move-or-Raise
669 +                       "Iconify"       Iconify
670 +                       "(Un)Stick"     Stick
671 +                       "Refresh"       RefreshWindow
672 +                       ""              Nop
673 +                       "Close"         Close
674 +                       "Delete"        Delete
675 +                       "Destroy"       Destroy
676 +                       ""              Nop
677 +                       "Resize"        Resize-or-Raise
678 +                       "Shade"         WindowShade
679 +                       "Raise/Lower"   RaiseLower
680 +                       ""              Nop
681 +                       "ScrollBar"     Module FvwmScroll 2 2
682 +                       "Print"         PrintFunction
683
684 AddToMenu Terminals     "Terminals" Title
685 +               "Grey term (koi8)" TERM_KOI8
686 +               "Grey term (utf8)" TERM_RU_UTF8
687 +               "Grey term (heb-utf8)" TERM_HEB_UTF8
688 +               "Grey term (koi8,btlt)" TERM_KOI8_BOTLT
689 +               "Grey term (koi8,btrt)" TERM_KOI8_BOTRT
690 +               "Grey term (utf8,btlt)" TERM_RU_UTF8_BOTLT
691 +               "Grey term (utf8,btrt)" TERM_RU_UTF8_BOTRT
692 +               "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
693 +               "Big grey term (utf8)" TERM_RU_UTF8 -geometry TERM_GEOM_BIG
694 +                       ""      Nop
695 +               "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
696 +               "White/black term (utf8)" TERM_RU_UTF8 -fg white -bg black
697
698 AddToMenu TermColors    "Term Colors" Title
699 +                       "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
700 +                       "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
701 +                       ""      Nop
702 +                       "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
703 +                       "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
704 +                       ""      Nop
705 +                       "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
706 +                       "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
707 +                       "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
708 +                       ""      Nop
709 +                       "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
710 +                       "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
711 +                       "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
712 +                       ""      Nop
713 +                       "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
714 +                       "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
715 +                       "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
716 +                       "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
717 +                       ""      Nop
718 +                       "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
719 +                       "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
720 +                       "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
721 +                       "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
722
723 AddToMenu Systems       "Systems" Title
724 +                       "Iskra+Oper+Phdru" Term3Hosts
725 +                       ""        Nop
726 +                       MENU_TERM_KOI8_SSH(SSH_SCREEN_KOI8(iskra-aviel.phdru.name), iskra scr)
727 +                       MENU_TERM_UTF8_BOTLT_SSH(iskra-aviel.phdru.name, iskra)
728 +                       MENU_TERM_KOI8_BIG_SSH(iskra-aviel.phdru.name, ISKRA)
729 +                       ""        Nop
730 +                       MENU_TERM_KOI8_BOTRT_SSH(SSH_SCREEN_KOI8(oper.med.ru), oper scr)
731 +                       MENU_TERM_UTF8_BOTRT_SSH(oper.med.ru, oper)
732 +                       MENU_TERM_KOI8_BIG_SSH(oper.med.ru, OPER)
733 +                       ""        Nop
734 +                       MENU_TERM_KOI8_SSH(SSH_SCREEN_KOI8(phdru.name), phdru scr)
735 +                       MENU_TERM_KOI8_SSH(SSH_SCREEN_KOI8(-D 1080 phdru.name), phdru scr SOCKS5)
736 +                       MENU_TERM_UTF8_BOTLT_SSH(phdru.name, phdru)
737 +                       MENU_TERM_KOI8_BIG_SSH(phdru.name, PHDRU)
738
739 AddToMenu FvwmCommands  "Fvwm Commands" Title
740 +                       "Restart" Restart
741 +                       "Raise all" Raise-All
742 #+                       "Restart Fvwm2" Restart fvwm2
743 #+                       "Start Fvwm"    Restart fvwm
744 +                       "Fvwm Setup"    Popup FvwmSetup
745 +                       "Fvwm Modules"  Popup FvwmModules
746 +                       "" Nop
747 +                       "Exit Fvwm"     Quit
748
749 AddToMenu FvwmSetup     "Fvwm Setup" Title
750 +                       "Start standard session" StartStandardSession
751 +                       "Change Scrolling"      Popup FvwmScroll
752
753 AddToMenu FvwmScroll    "Change Scroll Behavior" Title
754 +                       "OFF"   EdgeScroll 0 0
755 +                       "ON"    EdgeScroll 100 100
756 +                       "Horizontal Only"       EdgeScroll 100 0
757 +                       "Vertical Only"         EdgeScroll 0 100
758 +                       "Partial"               EdgeScroll 50 50
759
760 AddToMenu FvwmModules   "Fvwm Modules" Title
761 +                       "Animate"      Module FvwmAnimate
762 +                       "Auto"         Module FvwmAuto
763 +                       "Backer"       Module FvwmBacker
764 +                       "Banner"       Module FvwmBanner
765 +                       "Buttons"      Module FvwmButtons
766 +                       "Cascade"      Module FvwmCascade
767 +                       "CommandS"     Module FvwmCommandS
768 +                       "Console"      Module FvwmConsole
769 +                       "ConsoleC"     Module FvwmConsoleC -e FvwmConsoleC.pl
770 +                       "Cpp"          Module FvwmCpp
771 +                       "Debug"        Module FvwmDebug
772 +                       "DragWell"     Module FvwmDragWell
773 +                       "Event"        Module FvwmEvent
774 +                       "Form"         Module FvwmForm
775 +                       "Gtk"          Module FvwmGtk
776 +                       "IconBox"      Module FvwmIconBox
777 +                       "IconMan"      Module FvwmIconMan
778 +                       "Ident"        Module FvwmIdent
779 +                       "M4"           Module FvwmM4
780 +                       "Pager"        Module FvwmPager 0 2
781 +                       "Rearrange"    Module FvwmRearrange
782 +                       "Save"         Module FvwmSave
783 +                       "SaveDesk"     Module FvwmSaveDesk
784 +                       "Script"       Module FvwmScript
785 +                       "Scroll"       Module FvwmScroll
786 +                       "TaskBar"      Module FvwmTaskBar
787 +                       "Theme"        Module FvwmTheme
788 +                       "Tile"         Module FvwmTile
789 +                       "Wharf"        Module FvwmWharf
790 +                       "WinList"      Module FvwmWinList
791
792 # This is the root menu
793 AddToMenu RootMenu "Root Menu"  Title
794 +               "Terminals"     Popup Terminals
795 #+               "Color term"    Popup TermColors
796 +               "Systems"       Popup Systems
797 +               ""              Nop
798 +               "Browsers"      Popup Browsers
799 +               "Utilities"     Popup Utilities
800 #+               ""              Nop
801 #+               "Lock Screen"   Popup XlockMenu
802 +               "XScreenSaver"  Popup XScreenSaverMenu
803 #+               "Tv-tuner"      Popup Tv-tuner
804 +               ""              Nop
805 +               "XSetBg"        Popup XSetBgMenu
806 +               "Fvwm Commands" Popup FvwmCommands
807
808 DestroyMenu OSMenu
809 AddToMenu OSMenu        "OS commands:" Title
810 +                       "Suspend to both" Exec exec s2b
811 +                       "Suspend to disk" Exec exec s2d
812 +                       "Suspend to ram"  Exec exec s2r
813
814 # This menu will fire up some often used programs
815 DestroyMenu Utilities
816 AddToMenu Utilities     "Choose one:" Title
817 +                       "OS"     Popup OSMenu
818 +                       ""       Nop
819 +                       "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim
820 +                       "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8  exec gvim
821 +                       ""       Nop
822 +                       "Refresh Screen" Refresh
823 +                       "xrefresh" Exec exec xrefresh
824 +                       ""       Nop
825 +                       "Skype" Skype
826 +                       "pavucontrol" PaVuControl
827
828 DestroyMenu  Browsers
829 AddToMenu Browsers      "Choose one:" Title
830 +                       "FireFox" FireFox
831 +                       "Chromium" None ("*Chromium") Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 2000 start-browser chromium
832 +                       "Opera" None ("*Opera") Exec LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 2000 start-browser opera
833
834 # A wide variety of screenlocking options...
835 #AddToMenu XlockMenu     "Choose one:" Title
836 #+                       "Hop" Exec exec xlock -mode hop
837 #+                       "Image" Exec exec xlock -mode image
838 #+                       "Life" Exec exec xlock -mode life
839 #+                       "Flame" Exec exec xlock -mode flame
840 #+                       "Pyro" Exec exec xlock -mode pyro
841 #+                       "Qix" Exec exec xlock -mode qix
842 #+                       "Rotor" Exec exec xlock -mode rotor
843 #+                       "Swarm" Exec exec xlock -mode swarm
844 #+                       "" Nop
845 #+                       "Random" Exec exec xlock -mode random
846 #+                       "Blank" Exec exec xlock -mode blank
847
848 AddToMenu XScreenSaverMenu     "Choose mode:" Title
849 +                       "Blank Screen Now" Exec exec xscreensaver-command -activate
850 +                       "Lock Screen Now"  Exec exec xscreensaver-command -lock
851 +                       "Screen Saver Demo" Exec exec xscreensaver-command -demo
852 +                       "Screen Saver Preferences"  Exec exec xscreensaver-command -prefs
853 +                       "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
854 +                       "" Nop
855 +                       "Kill Screen Saver"         Exec exec xscreensaver-command -exit
856 +                       "Launch Screen Saver"       Exec exec xscreensaver
857
858 AddToMenu XSetBgMenu    "XSetBg" Title
859 +                       "Change wallpaper" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-force
860 +                       "Start" Exec exec cgmem_nice 100 "$HOME"/current/projects/xsetbg/xsetbg-http-start
861 +                       "Stop" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-stop
862 +                       "Restart" Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-restart
863 +                       ""       Nop
864 changequote([,])
865 +                       "Xli" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
866 +                       "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"
867 +                       "Open in browser" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r`"
868 +                       "Filename" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r
869 +                       "XFilename" Exec "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
870 +                       "XFilename (wrapped)" XSetbgFilename
871 +                       ""       Nop
872 +                       "Xli (prev.)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
873 +                       "Xli (prev., scaled)" Exec fn="`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
874 +                       "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/current/projects/xsetbg/print-filename.py -e koi8-r 1`"
875 changequote([`], ['])
876 +                       "Filename (prev.)" Exec exec "$HOME"/current/projects/xsetbg/print-filename.py -e koi8-r 1
877 +                       "XFilename (prev.)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
878 +                       "XFilename (prev., wrapped)" Exec "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
879
880 ############################################################################
881 # FvwmBacker
882 #
883 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
884 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
885 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
886 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-change
887
888 ############################################################################
889 # FvwmButtons
890 #
891 # Colors
892 *FvwmButtons: Fore Black
893 *FvwmButtons: Back rgb:90/80/90
894
895 # Font
896 *FvwmButtons: Font BUTTONS_FONT
897
898 # Geometry-- really likes to pick its own size, but giving a position is OK
899 *FvwmButtons: Geometry -1+1
900
901 # Layout: specify rows or columns, not both
902 *FvwmButtons: Rows 2 #, Columns 5
903
904 # Transparent background
905 #*FvwmButtons: Pixmap none
906 # Background
907 #*FvwmButtons: Pixmap fvwm.xpm
908
909 # Define the buttons to use.....
910 #*FvwmButtons: Move              arrows2.xpm     Move
911 #*FvwmButtons: Kill              skull.xpm       Destroy
912 #*FvwmButtons: Quit              nuke.xpm        Popup "Quit-Verify"
913
914 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
915
916 # Buttons
917 pushdef(`TERM_KOI8', `Exec "TERM" LC_CTYPE=ru_RU.KOI8-R exec TERM')
918 pushdef(`TERM_RU_UTF8', `Exec "URxvt" LC_CTYPE=ru_RU.UTF-8 exec TERM -name URxvt')
919 *FvwmButtons: (Title Term,     Icon rterm2.xpm,      Action TERM_KOI8)
920 *FvwmButtons: (Title UTF-8,    Icon rterm2.xpm,      Action TERM_RU_UTF8)
921 *FvwmButtons: (Title "phdru scr",    Icon xterm-sgi.xpm,   Action TERM_KOI8_SSH(SSH_SCREEN_KOI8(phdru.name), phdru.name scr))
922 *FvwmButtons: (Title "iskra scr",    Icon xterm-sgi.xpm,   Action TERM_KOI8_SSH(SSH_SCREEN_KOI8(iskra-aviel.phdru.name), iskra scr))
923 *FvwmButtons: (Title "oper scr",     Icon xterm-linux.xpm, Action TERM_KOI8_BOTRT_SSH(SSH_SCREEN_KOI8(oper.med.ru), oper scr))
924 popdef(`TERM_KOI8', `TERM_RU_UTF8')
925
926 *FvwmButtons: (Title Wallpaper, Icon find1.xpm,        Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
927 *FvwmButtons: (Title "-1",      Icon find1.xpm,        Action Exec "gxmessage" "$HOME"/current/projects/xsetbg/print-filename.py 1 | text-wrap.py -w TEXT_WIDTH -s | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
928 *FvwmButtons: (Title Next,      Icon Jrecycle.xpm,     Action Exec exec "$HOME"/current/projects/xsetbg/xsetbg-http-force)
929 #*FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action Exec "Volume Control" exec cgmem_nice 200 pavucontrol)
930 #*FvwmButtons: (Title Id3Info,  Icon bell.xpm,         Action Id3Info)
931 *FvwmButtons: (Title AudioPlayer,  Icon bell.xpm,      Action Exec "deadbeef" LC_CTYPE=ru_RU.KOI8-R exec cgmem_nice 400 deadbeef)
932 #*FvwmButtons: (Title XLock,     Icon Jxlock.xpm,      Action Exec exec xscreensaver-command -lock)
933 *FvwmButtons: (Title Skype,    Icon skypeforlinux.png, Action Skype)
934
935 ############################################################################
936 # FvwmForm
937 #
938 # FvwmForm alias - rlogin to host via term
939 #FvwmForm Rlogin
940 #*Rlogin: WarpPointer
941 #*Rlogin: Font         *helvetica*m*r*n*14*
942 #*Rlogin: ButtonFont   *helvetica*m*o*n*14*
943 #*Rlogin: InputFont    *cour*m*r*n*14*
944 #*Rlogin: Fore         Black
945 #*Rlogin: Back         Light Gray
946 #*Rlogin: ItemFore          Wheat
947 #*Rlogin: ItemBack          Gray50
948 ## begin items
949 #*Rlogin: Line         center
950 #*Rlogin: Text         "Login to Remote Host"
951 #*Rlogin: Line         center
952 #*Rlogin: Text         "Host:"
953 #*Rlogin: Input        HostName  20   ""
954 #*Rlogin: Line         center
955 #*Rlogin: Selection    UserSel   single
956 #*Rlogin: Choice       Default   Default   on   "same user"
957 #*Rlogin: Choice       Custom    Custom    off  "user:"
958 #*Rlogin: Input        UserName  10   ""
959 #*Rlogin: Line         expand
960 #*Rlogin: Button       quit "Login" ^M
961 #*Rlogin: Command      TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
962 #*Rlogin: Button       restart   "Clear"
963 #*Rlogin: Command Beep
964 #*Rlogin: Button       quit "Cancel"
965 #*Rlogin: Command Nop
966 ##
967 ## FvwmForm alias - query exit ala mwm
968 #FvwmForm QuitVerify
969 #*QuitVerify: GrabServer
970 #*QuitVerify: WarpPointer
971 #*QuitVerify: Font          *helvetica*m*r*n*14*
972 ##*QuitVerify: ButtonFont    *helvetica*m*o*n*14*
973 #*QuitVerify: ButtonFont    7x13bold
974 #*QuitVerify: Fore          Black
975 #*QuitVerify: Back          Light Gray
976 #*QuitVerify: ItemFore Wheat
977 #*QuitVerify: ItemBack Gray50
978 ## begin items
979 #*QuitVerify: Line          center
980 #*QuitVerify: Text          "Do you really want to exit FVWM?"
981 #*QuitVerify: Line          expand
982 #*QuitVerify: Button   quit      " Exit "
983 #*QuitVerify: Command  Quit
984 #*QuitVerify: Button   quit      "Cancel"
985 #*QuitVerify: Command  Nop
986 #
987 ##
988 ## MyTalk & MyFvwmTalk from Dave Goldberg
989 ## MyTalk Form - dissappears after use
990 #FvwmForm MyTalk
991 #*MyTalk: WarpPointer
992 #*MyTalk: Font *helvetica*m*r*n*14*
993 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
994 #*MyTalk: InputFont *cour*m*r*n*14*
995 #*MyTalk: Fore Red
996 #*MyTalk: Back Gray
997 #*MyTalk: ItemFore Blue
998 #*MyTalk: ItemBack Gray
999 #*MyTalk: Line center
1000 #*MyTalk: Text "Fvwm Function"
1001 #*MyTalk: Input Func 40 ""
1002 #*MyTalk: Line expand
1003 #*MyTalk: Button quit "Run" ^M
1004 #*MyTalk: Command $(Func)
1005 #*MyTalk: Button restart "Clear" ^R
1006 #*MyTalk: Button quit "Cancel" ^C
1007 #*MyTalk: Command Nop
1008 ##
1009 ## MyFvwmTalk Form - sticks around
1010 #FvwmForm MyFvwmTalk
1011 #*MyFvwmTalk: WarpPointer
1012 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
1013 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
1014 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
1015 #*MyFvwmTalk: Fore Red
1016 #*MyFvwmTalk: Back Gray
1017 #*MyFvwmTalk: ItemFore Blue
1018 #*MyFvwmTalk: ItemBack Gray
1019 #*MyFvwmTalk: Line center
1020 #*MyFvwmTalk: Text "Fvwm Function"
1021 #*MyFvwmTalk: Input Func 40 ""
1022 #*MyFvwmTalk: Line expand
1023 #*MyFvwmTalk: Button restart "Run" ^M
1024 #*MyFvwmTalk: Command $(Func)
1025 #*MyFvwmTalk: Button restart "Clear" ^R
1026 #*MyFvwmTalk: Command Nop
1027 #*MyFvwmTalk: Button restart "Iconify" ^Z
1028 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
1029 #*MyFvwmTalk: Button quit "Quit" ^C
1030 #*MyFvwmTalk: Command Nop
1031
1032 ############################################################################
1033 # FvwmIconBox
1034 #
1035 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
1036 *FvwmIconBox: IconBack    #cfcfcf
1037 *FvwmIconBox: IconHiFore  black
1038 *FvwmIconBox: IconHiBack  LightSkyBlue
1039 *FvwmIconBox: Back        #5f9ea0
1040 #*FvwmIconBox: Fore       blue
1041 *FvwmIconBox: Geometry    5x1+0+0
1042 *FvwmIconBox: MaxIconSize 64x38
1043 *FvwmIconBox: Font        ICON_BOX_FONT
1044 *FvwmIconBox: SortIcons   IconName
1045 *FvwmIconBox: Padding     4
1046 *FvwmIconBox: Lines       10
1047 *FvwmIconBox: SBWidth     11
1048 *FvwmIconBox: Placement   Left Top
1049 *FvwmIconBox: Pixmap      fvwm.xpm
1050 #*FvwmIconBox: HideSC Horizontal
1051 *FvwmIconBox: SetWMIconSize
1052 *FvwmIconBox: HilightFocusWin
1053 #*FvwmIconBox: Resolution          Desk
1054 *FvwmIconBox: Mouse       1       Click           RaiseLower
1055 *FvwmIconBox: Mouse       1       DoubleClick     Iconify
1056 *FvwmIconBox: Mouse       2       Click           Iconify -1, Focus
1057 *FvwmIconBox: Mouse       3       Click           Module FvwmIdent
1058 *FvwmIconBox: Key         r       RaiseLower
1059 *FvwmIconBox: Key         space   Iconify
1060 *FvwmIconBox: Key         d       Close
1061 *FvwmIconBox: Key         n       Next
1062 *FvwmIconBox: Key         p       Prev
1063 *FvwmIconBox: Key         h       Left
1064 *FvwmIconBox: Key         j       Down
1065 *FvwmIconBox: Key         k       Up
1066 *FvwmIconBox: Key         l       Right
1067
1068 ############################################################################
1069 # FvwmIdent
1070 #
1071 # Give us colors and a fonts
1072 *FvwmIdent: Back MidnightBlue
1073 *FvwmIdent: Fore Yellow
1074 *FvwmIdent: Font IDENT_FONT
1075
1076 ############################################################################
1077 # FvwmPager
1078 #
1079 *FvwmPager: Back #908090
1080 *FvwmPager: Fore #484048
1081 *FvwmPager: Font TITLE_FONT
1082 *FvwmPager: Hilight #cab3ca
1083 *FvwmPager: Geometry PAGER_GEOM
1084 *FvwmPager: Label 0 System
1085 *FvwmPager: Label 1 Net
1086 *FvwmPager: Label 2 Work
1087 *FvwmPager: SmallFont SMALL_PAGER_FONT
1088
1089 *FvwmPager: Balloons All
1090 *FvwmPager: BalloonBack #efe3b5
1091 *FvwmPager: BalloonFore Black
1092 *FvwmPager: BalloonFont ICON_FONT
1093 *FvwmPager: BalloonYOffset +2
1094 *FvwmPager: BalloonBorderWidth 1
1095 *FvwmPager: BalloonBorderColor Black
1096
1097 ############################################################################
1098 # FvwmScroll
1099 #
1100 *FvwmScroll: Back grey40
1101 *FvwmScroll: Fore green
1102
1103 ############################################################################
1104 # FvwmWinList
1105 #
1106 *FvwmWinList: Back #908090
1107 *FvwmWinList: Fore Black
1108 *FvwmWinList: Font WIN_LIST_FONT
1109 *FvwmWinList: Action Click1 Iconify -1, Focus
1110 *FvwmWinList: Action Click2 Iconify
1111 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1112 *FvwmWinList: UseSkipList
1113 *FvwmWinList: Geometry +10-10