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