1 ##########################################################################
2 # FVWM - F? Virtual Window Manager, Version 2.x (fvwm2) Configuration File
5 dnl The file is in m4 format, use FvwmM4 module to read it
6 dnl like this: ModuleSynchronous FvwmM4 -lock .fvwm2rc
9 dnl This is to prevent FvwmM4 to shadow $HOME
20 dnl define(`SMALL_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-koi8-r')
21 dnl define(`MEDIUM_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-koi8-r')
22 dnl define(`BIG_FONT_KOI8', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-koi8-r')
25 dnl define(`SMALL_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-100-*-*-*-*-*-cp1251')
26 dnl define(`MEDIUM_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-120-*-*-*-*-*-cp1251')
27 dnl define(`BIG_FONT_CP1251', `-*-fixed-medium-r-normal-*-*-140-*-*-*-*-*-cp1251')
29 dnl define(`XBUFFY_FONT', `-cronyx-helvetica-bold-r-*-*-*-100-*-*-*-*-koi8-r')
33 define(`SMALL_FONT', `xft:Sans:size=12')
34 define(`MEDIUM_FONT', `xft:Sans:size=14')
35 define(`BIG_FONT', `xft:Sans:size=16')
36 define(`LARGE_FONT', `xft:Sans:size=18')
37 define(`HUGE_FONT', `xft:Sans:size=20')
40 define(`SMALL_BOLD_FONT', `SMALL_FONT:Bold')
41 define(`MEDIUM_BOLD_FONT', `MEDIUM_FONT:Bold')
42 define(`BIG_BOLD_FONT', `BIG_FONT:Bold')
45 dnl Font and geometry aliases that depend on whether the screen resolution is
46 dnl 800x600, 1024x768 or 1920x1200
48 define(`TITLE_FONT', `MEDIUM_FONT')
50 define(`ICON_FONT', `LARGE_FONT')
54 `ifelse(eval(WIDTH < 1024), 1, `365x100+0+0',dnl
55 `ifelse(eval(WIDTH < 1920), 1, `365x100+0+0', `600x160+0+0'dnl
60 `ifelse(eval(WIDTH < 1920), 1, `SMALL_FONT', `BIG_FONT'dnl
62 define(`BUTTONS_FONT', PAGER_FONT)
66 `ifelse(eval(WIDTH < 1024), 1, `xft:Helvetica:size=16',dnl
67 `ifelse(eval(WIDTH < 1920), 1, `xft:Helvetica:size=18', `xft:Helvetica:size=22'dnl
70 define(`IDENT_FONT', MENU_FONT)
71 define(`WIN_LIST_FONT', MENU_FONT)
72 define(`ICON_BOX_FONT', MENU_FONT)
75 dnl XSetBg message width and font
77 `ifelse(eval(WIDTH < 1024), 1, 70,dnl
78 `ifelse(eval(WIDTH < 1920), 1, 75, 80 dnl
82 define(`MESSAGE_FONT', `Nimbus Sans L 18')'dnl
86 define(`TERM', `urxvt')
88 define(`TERM_KOI8', `Exec LC_CTYPE=ru_RU.KOI8-R exec TERM')
90 define(`TERM_UTF8', `Exec exec "$HOME"/lib/X11/utf8rxvt')
93 `ifelse(eval(WIDTH < 1024), 1, `80x25-0-0',dnl
94 `ifelse(eval(WIDTH < 1920), 1, `80x28-0-0', `80x30-0-0'dnl
98 define(`TERM_GEOM_BIG',
99 `ifelse(eval(WIDTH < 1024), 1, `96x30-0-0',dnl
100 `ifelse(eval(WIDTH < 1920), 1, `112x32-0-0', `126x35-0-0'dnl
105 define(`REMOTE_HOST_KOI8',
106 TERM_KOI8 -title "$2" -n "$2" -e ssh -4 "$1"dnl
109 define(`REMOTE_HOST_KOI8_MENU',
110 "$2 (koi8)" REMOTE_HOST_KOI8($1, $2)dnl
113 define(`REMOTE_HOST_UTF8',
114 TERM_UTF8 -e ssh -4 "$1"dnl
117 define(`REMOTE_HOST_UTF8_MENU',
118 "$2 (utf8)" REMOTE_HOST_UTF8($1, $2)dnl
121 define(`REMOTE_HOST_KOI8_BIG',
122 TERM_KOI8 -geometry TERM_GEOM_BIG -title "$2" -n "$2" -e ssh -4 "$1"dnl
125 define(`REMOTE_HOST_KOI8_BIG_MENU',
126 "$2 (koi8)" REMOTE_HOST_KOI8_BIG($1, $2)dnl
130 ##########################################################################
133 # Colon seperated unix directory paths for Modules, xpm files, and bitmaps
134 #ModulePath /usr/lib/fvwm
135 ImagePath /usr/share/pixmaps/fvwm:/usr/share/pixmaps:/usr/include/X11/bitmaps #:/usr/local/firefox/chrome/icons/default:/usr/local/firefox/icons
137 ############################################################################
140 # Set the fore and back border colors for the window that has focus
141 Style * HilightFore Black, HilightBack #c06077
143 # Set fore/back border colors for all other windows
144 Style * Color Black/#60a0c0
146 # Set colors/font for pop-up menus
147 # Syntax: MenuStyle forecolor backcolor shadecolor font style(fvwm/mwm)
148 MenuStyle * FVWM, Foreground Black, Background grey, Greyed SlateGrey, Font MENU_FONT fvwm
150 # Set fonts to use on title bar and icon label
151 Style * Font TITLE_FONT
153 ############################################################################
156 # If you don't want icons for some or all windows (or all of them!)
159 # If you want ALL icons to follow you around the desktop (Sticky)
162 # Auto Place Icons is a nice feature (Left Top Right Bottom)
163 #Style * IconBox 10 -75 -10 -0
165 Style * IconFont ICON_FONT
167 ############################################################################
170 # Does the window with focus control the colormap, or the one under the mouse
171 ColormapFocus FollowsMouse
173 # Uncomment this to force you to click in a window to give it focus
174 #Style * ClickToFocus
176 # default: focus follows mouse
178 #Style * FocusFollowsMouse
180 # If you knock your mouse out of the term, it keeps focus while in root window
183 ############################################################################
186 # click/release must occur in <n milliseconds to be a "click"
189 # if the window occupies less than n% of the screen, draw it opaque
192 # Do not flip pages on the edge of the screen, but allow to move windows
195 Style * EdgeMoveDelay 500
196 Style * EdgeMoveResistance 100
198 # MWM Emulation: Don't ignore hints for functions and transient decoration
199 #Style * MWMFunctions, MWMDecor, MWMButtons, MWMMenus
200 Style * MWMFunctions, MWMDecor, MWMButtons
202 # Changes the look of the "rubberband" you see when moving windows (0 - 255)
205 ###########################################################################
208 # set the desk top size in units of physical screen size (width x height)
211 ############################################################################
214 Style * PositionPlacement Center
217 ############################################################################
220 # (decorations and window options)
221 # Note: Order is important!! If compatible styles are set, styles are ORed
222 # together. If conflicting styles are set, the last one specified is used.
224 # change the default width, set a global icon, and give borders to popups
225 Style * BorderWidth 5, HandleWidth 5, Icon unknown1.xpm
226 Style * DecorateTransient, ClickToFocusRaisesOff
228 Style "Fvwm*" !Title, Sticky, WindowListSkip
229 Style "FvwmButtons" !Handles, BorderWidth 0
232 Style "*term" Icon term.xpm
233 Style "*rxvt" Icon term.xpm
234 Style "term-im-local" Icon pidgin-menu.xpm
235 Style "term-im-remote" Icon rcalc2.xpm
236 Style "term-im-*" IconBox 630 -75 -2 -2, IconGrid 200 80
237 Style "term-im-*" StartsOnPage 1 1 0, StartIconic
240 Style "Certificate Manager" PositionPlacement Center
241 Style "*Downloads" PositionPlacement 50-50w +5
242 Style "*Mozilla*" PositionPlacement +0 -0
244 Style "*Chromium*" PositionPlacement +0 -0
247 Style "Gajim" PositionPlacement +0 -0
248 Style "* - Gajim" MinOverlapPercentPlacement
250 Style "Buddy List" PositionPlacement +0 -0
251 Style "*Pidgin*" MinOverlapPercentPlacement
254 Style "*MPlayer*" Layer 6, PositionPlacement 350p 100p
256 Style "*clock" !Title, Sticky, WindowListSkip, Color Black/#40c040, NeverFocus, PositionPlacement 50-50w +1p
257 Style "emacs" NoPPosition
258 Style "gxmessage" PositionPlacement 50-50w +20
259 Style "*lock" !Title, Sticky, WindowListSkip
260 Style "Mosaic" NoPPosition
261 Style "xbiff" Icon mail1.xpm, !Title, Sticky, WindowListSkip
262 Style "xcalc" Icon xcalc.xpm
263 Style "xconsole" !Title, Sticky, WindowListSkip, NeverFocus
264 Style "xload" !Title, Sticky, WindowListSkip, NeverFocus
265 Style "xman" Icon xman.xpm
266 Style "xmh" Icon mail2.xpm
267 Style "xsession" !Title, Sticky, WindowListSkip, ClickToFocus
268 Style "XXkb" !Title, !Borders, Sticky, WindowListSkip, Layer 5
270 ############################################################################
274 ## Buttons actually being used (duplicated below)
276 #ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1
277 # small down triangle
278 #ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0
280 #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
285 # ButtonStyle * 4 50x35@1 65x65@0 35x65@0 50x35@1
286 # Small down Triangle
287 #ButtonStyle * 4 50x65@1 35x35@1 65x35@1 50x65@0
289 #ButtonStyle 6 4 50x25@1 75x75@0 25x75@0 50x25@1
290 # Large down Triangle
291 #ButtonStyle 8 4 50x75@1 25x25@1 75x25@1 50x75@0
296 ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
298 ButtonStyle 5 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1
300 #ButtonStyle 7 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1
302 #ButtonStyle 5 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1
303 # Big Box with arrow (left-up to right-down) to little box (iconify)
304 #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
305 # Big Box with arrow (right-up to left-down) to little box (iconify)
306 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
311 #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
312 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
314 #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
316 #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
320 # Small Lightning Bolt (skinny at both ends)
321 #ButtonStyle 5 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
322 # Big Lighting Bolt (Fat at top, comes to a point)
323 #ButtonStyle 6 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1
325 ## Miscellaneous Buttons
327 # Nested Right Angles (looks kinda crappy)
328 #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
329 # Nested Right Angles (looks nice)
330 #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
331 # 4 Horizontal bars (sticky)
332 #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
333 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
334 # Expanding Windows (iconify -- looks NICE)
335 #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
340 #ButtonStyle 3 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0
342 #ButtonStyle 3 8 40x20@1 40x50@1 20x50@1 50x80@1 80x50@0 60x50@0 60x20@0 40x20@1
344 #ButtonStyle 7 8 80x40@1 50x40@1 50x20@1 20x50@1 50x80@0 50x60@0 80x60@0 80x40@0
346 #ButtonStyle 8 8 20x40@1 50x40@1 50x20@1 80x50@1 50x80@0 50x60@0 20x60@0 20x40@1
347 # Horizontal Line with arrowheads on left and right ( <-> )
348 #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
349 # Vertical Line with arrowheads on top and bottom
350 #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
351 # Diagonal Line with arrowheads on top and bottom ( / )
352 #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
353 # Diagonal Line with arrowheads on top and bottom ( \ )
354 #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
357 #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
360 ############################################################################
363 # First, the root window. Button 1 brings up the Main Menu. B2 is the
364 # window operations list, and B3 is the winlist module
365 # Button Context Modifi Function
366 Mouse 1 R A Menu RootMenu Nop
367 Mouse 2 R A Menu Window-Ops Nop
368 Mouse 3 R A WindowList
370 # Now, title bar buttons
371 # Left button is the Window-Ops2 menu
372 # Button Context Modifi Function
373 Mouse 0 1 A Menu Window-Ops2 Close
376 # Right buttonsare iconify/maximize, rightmost is close
378 Mouse 0 4 A Maximize toggle
381 # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or
382 # de-iconify, and on Top does a move-or-raise
383 # Button Context Modifi Function
384 Mouse 1 F A Resize-or-Raise
385 Mouse 1 S A Move-or-Raise
386 Mouse 1 I A Move-or-Iconify
387 #Mouse 1 T A Move-or-Raise
390 # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu
391 # Button Context Modifi Function
393 Mouse 2 FST A Menu Window-Ops2 Nop
395 # Button 3 does a raise-lower on anything
396 Mouse 3 TSIF A RaiseLower
398 ############################################################################
402 # press arrow + control + meta anywhere, and scroll by 1 page
403 Key Left A CM Scroll -100 +0
404 Key Right A CM Scroll +100 +0
405 Key Up A CM Scroll +0 -100
406 Key Down A CM Scroll +0 +100
408 # press arrow + meta key, and scroll by 1/10 of a page
409 Key Left A M Scroll -10 +0
410 Key Right A M Scroll +10 +0
411 Key Up A M Scroll +0 -10
412 Key Down A M Scroll +0 +10
414 # press shift arrow + control anywhere, and move the pointer by 1% of a page
415 Key Left A SC CursorMove -1 +0
416 Key Right A SC CursorMove +1 +0
417 Key Up A SC CursorMove +0 -1
418 Key Down A SC CursorMove +0 +1
420 # press shift arrow + meta key, and move the pointer by 1/10 of a page
421 Key Left A SM CursorMove -10 +0
422 Key Right A SM CursorMove +10 +0
423 Key Up A SM CursorMove +0 -10
424 Key Down A SM CursorMove +0 +10
426 # Switch window, mswindows style :)
427 Key Tab A M Next [*] focus
428 Key Escape A M Prev [*] focus
435 Key 5 A CM GotoPage 0 0
436 Key 6 A CM GotoPage 1 0
437 Key 7 A CM GotoPage 0 1
438 Key 8 A CM GotoPage 1 1
440 #############################################################################
443 AddToFunc "InitFunction"
444 + I Module FvwmBacker
445 + I Module FvwmButtons
446 + I Module FvwmCommandS
447 + I Module FvwmPager 0 2
449 AddToFunc "RestartFunction"
450 + I Module FvwmBacker
451 + I Module FvwmButtons
452 + I Module FvwmCommandS
453 + I Module FvwmPager 0 2
454 + I Next [!iconic CurrentScreen xterm] Focus
456 AddToFunc "StartStandardSession"
457 + I GotoDeskAndPage 0 0 0
460 + I GotoDeskAndPage 0 0 1
461 + I TERM_KOI8 -geometry 38x30+0-0
463 + I GotoDeskAndPage 0 1 0
464 + I TERM_KOI8 -e su -
467 + I Wait "Volume Control"
469 + I Wait "*Mozilla Firefox"
470 + I GotoDeskAndPage 2 0 1
471 + I TERM_KOI8 -geometry TERM_GEOM_BIG
475 + I TERM_UTF8 -iconic -name term-im-remote
477 + I TERM_KOI8 -geometry 60x25-5-5 -iconic -name term-im-local
479 + I GotoDeskAndPage 1 1 0
480 + I Schedule 5000 GotoDeskAndPage 0 1 0
483 ############################################################################
487 AddToFunc Center I Move 50-50w 50-50w
488 + I WarpToWindow 74p 18p
490 AddToFunc Iconify-and-Raise I Iconify
493 AddToFunc Maximize-Func C Maximize toggle
496 AddToFunc Move-or-Iconify I Raise
500 AddToFunc Move-or-Raise I Raise
504 AddToFunc Move-or-Raise2 M Raise
508 AddToFunc Resize-or-Raise I Raise
512 AddToFunc Resize-or-Raise2 M Raise
516 AddToFunc Shadify D WindowShade
520 AddToFunc warp-or-run I Next [$0 CirculateHit] Iconify -1
521 + I Next [$0 CirculateHit] Focus
524 AddToFunc MailFunction I Next [$0] Iconify -1
526 + I None [$0] Exec exec $0 $1
528 AddToFunc PrintFunction I Raise
529 + I Exec exec xdpr -id $w
531 ##############################################################################
532 # User-defined functions
535 DestroyFunc PaVuControl
536 AddToFunc PaVuControl I GotoDeskAndPage 0 1 1
537 + I Exec exec pavucontrol
541 AddToFunc Id3Info I Exec "$HOME"/lib/audio/mp3/id3info.py "`deadbeef --nowplaying '%F'`" | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
542 changequote([`], ['])
544 #DestroyFunc Audacious
545 #AddToFunc Audacious I GotoDeskAndPage 0 1 1
546 #+ I Exec LC_CTYPE=ru_RU.UTF-8 exec audacious
549 AddToFunc DeadBeef I GotoDeskAndPage 0 1 1
550 + I Exec exec deadbeef
553 AddToFunc SMPlayer I GotoDeskAndPage 0 1 1
554 + I Exec exec smplay -no-close-at-end
556 DestroyFunc Term-Phdru
557 AddToFunc Term-Phdru I GotoDeskAndPage 1 0 1
558 + I REMOTE_HOST_KOI8(phdru.name, phdru.name)
560 DestroyFunc Term-Phdru-Big
561 AddToFunc Term-Phdru-Big I GotoDeskAndPage 1 0 1
562 + I REMOTE_HOST_KOI8_BIG(phdru.name, phdru.name)
565 AddToFunc FireFox I GotoDeskAndPage 1 0 0
566 + I Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser firefox
569 #AddToFunc Gajim I GotoDeskAndPage 1 1 0
573 AddToFunc Pidgin I GotoDeskAndPage 1 1 0
576 DestroyFunc Raise-All
577 AddToFunc Raise-All I All (!"FvwmButtons|System|*clock") Raise
579 DestroyFunc UrgencyFunc
580 AddToFunc UrgencyFunc
582 + I ThisWindow ("*Downloads") Break
585 + I WarpToWindow 5p 5p
587 ##############################################################################
591 # This defines the most common window operations
592 AddToMenu Window-Ops "Window Ops" Title
594 + "Move" Move-or-Raise2
595 + "Resize" Resize-or-Raise2
598 + "(De)Iconify" Iconify
600 + "(Un)Maximize" maximize_func
606 + "Refresh Screen" Refresh
608 # A trimmed down version of "Window Ops", good for binding to decorations
609 DestroyMenu "Window-Ops2"
610 AddToMenu Window-Ops2 "Center" Center
611 + "Move" Move-or-Raise
614 + "Refresh" RefreshWindow
620 + "Resize" Resize-or-Raise
621 + "Shade" WindowShade
622 + "Raise/Lower" RaiseLower
624 + "ScrollBar" Module FvwmScroll 2 2
625 + "Print" PrintFunction
627 AddToMenu Terminals "Terminals" Title
628 + "Grey term (koi8)" TERM_KOI8
629 + "Grey term (utf8)" TERM_UTF8
630 + "Big grey term (koi8)" TERM_KOI8 -geometry TERM_GEOM_BIG
632 + "White/black term (koi8)" TERM_KOI8 -fg white -cr white -bg black
633 + "White/black term (utf8)" TERM_UTF8 -fg white -bg black
635 AddToMenu TermColors "Term Colors" Title
636 + "Term: black/mediumturquoise" TERM_KOI8 -fg black -cr black -bg mediumturquoise
637 + "Term: black/lightseagreen" TERM_KOI8 -fg black -cr black -bg lightseagreen
639 + "Term: black/lightsteelblue" TERM_KOI8 -fg black -cr black -bg lightsteelblue
640 + "Term: black/lightblue3" TERM_KOI8 -fg black -cr black -bg lightblue3
642 + "Term: black/lightgoldenrod" TERM_KOI8 -fg black -cr black -bg lightgoldenrod
643 + "Term: black/rosybrown1" TERM_KOI8 -fg black -cr black -bg rosybrown1
644 + "Term: black/pink1" TERM_KOI8 -fg black -cr black -bg pink1
646 + "Term: white/orchid4" TERM_KOI8 -fg white -cr white -bg orchid4
647 + "Term: white/purple3" TERM_KOI8 -fg white -cr white -bg purple3
648 + "Term: white/purple4" TERM_KOI8 -fg white -cr white -bg purple4
650 + "Term: white/lightslategrey" TERM_KOI8 -fg white -cr white -bg lightslategrey
651 + "Term: white/navyblue" TERM_KOI8 -fg white -cr white -bg navyblue
652 + "Term: white/mediumblue" TERM_KOI8 -fg white -cr white -bg mediumblue
653 + "Term: white/steelblue" TERM_KOI8 -fg white -cr white -bg steelblue
655 + "Term: white/forestgreen" TERM_KOI8 -fg white -cr white -bg forestgreen
656 + "Term: white/rosybrown" TERM_KOI8 -fg white -cr white -bg rosybrown
657 + "Term: white/deeppink" TERM_KOI8 -fg white -cr white -bg deeppink
658 + "Term: white/black" TERM_KOI8 -fg white -cr white -bg black
660 AddToMenu Systems "Systems" Title
661 + REMOTE_HOST_KOI8_MENU(phdru.name, phdru)
662 + REMOTE_HOST_UTF8_MENU(phdru.name, phdru)
663 + REMOTE_HOST_KOI8_BIG_MENU(phdru.name, PHDRU)
665 AddToMenu FvwmCommands "Fvwm Commands" Title
667 + "Raise all" Raise-All
668 #+ "Restart Fvwm2" Restart fvwm2
669 #+ "Start Fvwm" Restart fvwm
670 + "Fvwm Setup" Popup FvwmSetup
671 + "Fvwm Modules" Popup FvwmModules
675 AddToMenu FvwmSetup "Fvwm Setup" Title
676 + "Start standard session" StartStandardSession
677 + "Change Scrolling" Popup FvwmScroll
679 AddToMenu FvwmScroll "Change Scroll Behavior" Title
680 + "OFF" EdgeScroll 0 0
681 + "ON" EdgeScroll 100 100
682 + "Horizontal Only" EdgeScroll 100 0
683 + "Vertical Only" EdgeScroll 0 100
684 + "Partial" EdgeScroll 50 50
686 AddToMenu FvwmModules "Fvwm Modules" Title
687 + "Animate" Module FvwmAnimate
688 + "Auto" Module FvwmAuto
689 + "Backer" Module FvwmBacker
690 + "Banner" Module FvwmBanner
691 + "Buttons" Module FvwmButtons
692 + "Cascade" Module FvwmCascade
693 + "CommandS" Module FvwmCommandS
694 + "Console" Module FvwmConsole
695 + "ConsoleC" Module FvwmConsoleC -e FvwmConsoleC.pl
696 + "Cpp" Module FvwmCpp
697 + "Debug" Module FvwmDebug
698 + "DragWell" Module FvwmDragWell
699 + "Event" Module FvwmEvent
700 + "Form" Module FvwmForm
701 + "Gtk" Module FvwmGtk
702 + "IconBox" Module FvwmIconBox
703 + "IconMan" Module FvwmIconMan
704 + "Ident" Module FvwmIdent
706 + "Pager" Module FvwmPager 0 2
707 + "Rearrange" Module FvwmRearrange
708 + "Save" Module FvwmSave
709 + "SaveDesk" Module FvwmSaveDesk
710 + "Script" Module FvwmScript
711 + "Scroll" Module FvwmScroll
712 + "TaskBar" Module FvwmTaskBar
713 + "Theme" Module FvwmTheme
714 + "Tile" Module FvwmTile
715 + "Wharf" Module FvwmWharf
716 + "WinList" Module FvwmWinList
718 # This is the root menu
719 AddToMenu RootMenu "Root Menu" Title
720 + "Terminals" Popup Terminals
721 #+ "Color term" Popup TermColors
722 + "Systems" Popup Systems
724 + "Browsers" Popup Browsers
725 + "Utilities" Popup Utilities
727 #+ "Lock Screen" Popup XlockMenu
728 + "XScreenSaver" Popup XScreenSaverMenu
729 #+ "Tv-tuner" Popup Tv-tuner
731 + "XSetBg" Popup XSetBgMenu
732 + "Fvwm Commands" Popup FvwmCommands
734 # This menu will fire up some often used programs
735 DestroyMenu Utilities
736 AddToMenu Utilities "Choose one:" Title
737 + "FBReader" Exec exec fbreader
738 + "GVim (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec gvim
739 + "GVim (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec gvim
740 + "MyRuLb (koi8)" Exec LC_CTYPE=ru_RU.KOI8-R exec "$HOME"/admin/prog/myrulib/myrulib
741 + "MyRuLb (utf8)" Exec LC_CTYPE=ru_RU.UTF-8 exec "$HOME"/admin/prog/myrulib/myrulib
742 #+ "XFortune" Exec /usr/games/fortune | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
743 #+ "xbuffy" Exec exec xbuffy -fn 'XBUFFY_FONT' -geometry +0+125 -boxfile mail/misc/.xbuffyrc
745 + "pavucontrol" PaVuControl
746 #+ "audacious" Audacious
747 + "DeadBeef" DeadBeef
752 + "xload" Exec exec xload -geometry =136x136+0+0
753 + "Top" TERM_KOI8 -T Top -n Top -e top
755 + "Refresh Screen" Refresh
756 + "xrefresh" Exec exec xrefresh
758 + "xcalc" Exec exec xcalc
759 + "xclipboard" Exec exec xclipboard
760 + "xcutsel" Exec exec xcutsel
761 #+ "xman" Exec exec xman -notopbox -geometry +150+102
762 #+ "emacs" Exec emacs -geometry 81x35+150+34
763 #+ "xv" Function warp-or-run xv "Exec exec xv -ncols 240 -geometry +0+0"
766 AddToMenu Browsers "Choose one:" Title
768 + "Chromium" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser chromium
769 + "Opera" Exec LC_CTYPE=ru_RU.KOI8-R exec start-browser opera
771 # A wide variety of screenlocking options...
772 #AddToMenu XlockMenu "Choose one:" Title
773 #+ "Hop" Exec exec xlock -mode hop
774 #+ "Image" Exec exec xlock -mode image
775 #+ "Life" Exec exec xlock -mode life
776 #+ "Flame" Exec exec xlock -mode flame
777 #+ "Pyro" Exec exec xlock -mode pyro
778 #+ "Qix" Exec exec xlock -mode qix
779 #+ "Rotor" Exec exec xlock -mode rotor
780 #+ "Swarm" Exec exec xlock -mode swarm
782 #+ "Random" Exec exec xlock -mode random
783 #+ "Blank" Exec exec xlock -mode blank
785 AddToMenu XScreenSaverMenu "Choose mode:" Title
786 + "Blank Screen Now" Exec exec xscreensaver-command -activate
787 + "Lock Screen Now" Exec exec xscreensaver-command -lock
788 + "Screen Saver Demo" Exec exec xscreensaver-command -demo
789 + "Screen Saver Preferences" Exec exec xscreensaver-command -prefs
790 + "Reinitialize Screen Saver" Exec exec xscreensaver-command -restart
792 + "Launch Screen Saver" Exec exec xscreensaver
793 + "Kill Screen Saver" Exec exec xscreensaver-command -exit
795 AddToMenu XSetBgMenu "XSetBg" Title
796 + "Change wallpaper" Exec exec "$HOME"/lib/xsetbg/xsetbg-force
797 + "Start" Exec exec "$HOME"/lib/xsetbg/xsetbg-http-start
798 + "Stop" Exec exec "$HOME"/lib/xsetbg/xsetbg-http-stop
799 + "Restart" Exec exec "$HOME"/lib/xsetbg/xsetbg-http-restart
802 + "Xli" Exec fn="`$HOME/lib/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
803 + "Xli (scaled)" Exec fn="`$HOME/lib/xsetbg/print-filename.py -e koi8-r`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
804 + "Open in browser" Exec exec webbrowserX -n "`$HOME/lib/xsetbg/print-filename.py -e koi8-r`"
805 + "Filename" Exec exec "$HOME"/lib/xsetbg/print-filename.py -e koi8-r
806 + "XFilename" Exec "$HOME"/lib/xsetbg/print-filename.py | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
807 + "XFilename (wrapped)" Exec "$HOME"/lib/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
809 + "Xli (prev.)" Exec fn="`$HOME/lib/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" "$fn"
810 + "Xli (prev., scaled)" Exec fn="`$HOME/lib/xsetbg/print-filename.py -e koi8-r -o`" && exec xli -title "`echo $fn | sed 's/ /_/g'`" -zoom auto "$fn"
811 + "Open in browser (prev.)" Exec exec webbrowserX -n "`$HOME/lib/xsetbg/print-filename.py -e koi8-r -o`"
812 changequote([`], ['])
813 + "Filename (prev.)" Exec exec "$HOME"/lib/xsetbg/print-filename.py -e koi8-r -o
814 + "XFilename (prev.)" Exec "$HOME"/lib/xsetbg/print-filename.py -o | text-wrap.py -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
815 + "XFilename (prev., wrapped)" Exec "$HOME"/lib/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -
817 ############################################################################
820 #*FvwmBacker: Command (Desk 0, Page * *) -solid DarkCyan
821 #*FvwmBacker: Command (Desk 1, Page * *) -solid steelblue
822 #*FvwmBacker: Command (Desk 2, Page * *) -solid midnightblue
823 *FvwmBacker: Command (Desk *, Page * *) Exec exec "$HOME"/lib/xsetbg/xsetbg-http-change
825 ############################################################################
829 *FvwmButtons: Fore Black
830 *FvwmButtons: Back rgb:90/80/90
833 *FvwmButtonsFont BUTTONS_FONT
834 *FvwmButtons: Font BUTTONS_FONT
836 # Geometry-- really likes to pick its own size, but giving a position is OK
837 *FvwmButtons: Geometry -1+1
839 # Layout: specify rows or columns, not both
840 *FvwmButtons: Rows 2 #, Columns 5
842 # Transparent background
843 #*FvwmButtons: Pixmap none
845 #*FvwmButtons: Pixmap fvwm.xpm
848 # Define the buttons to use.....
849 #*FvwmButtons: Move arrows2.xpm Move
850 #*FvwmButtons: Kill skull.xpm Destroy
851 #*FvwmButtons: Quit nuke.xpm Popup "Quit-Verify"
853 #*FvwmButtons: (de)Iconify eyenew.xpm Iconify
854 #*FvwmButtons: Restart eye2.xpm Restart
855 #*FvwmButtons: Xcalc rcalc.xpm Exec "Calculator" exec xcalc
856 #*FvwmButtons: junk 3dx.xpm Swallow "xload" xload -bg \#908090
857 #*FvwmButtons: xmter x.xpm Swallow "xmter" xmter
858 #*FvwmButtons: "" clock.xpm Swallow "xclock" xclock -bg \#908090 -padding 0
859 #*FvwmButtons: "" 3dx.xpm Swallow "Time 3D" t3d -fg \#908090 -mag .3 -wobber 0
861 #*FvwmButtons: (Swallow XClock 'Exec exec xclock -update 1 -geometry -3000-3000')
862 #*FvwmButtons: news page.xpm TERM_KOI8 -title "Tin" -fn 10x20 -fg white -cr white -bg black -e tin
863 #*FvwmButtons: Minicom mini-connect.xpm TERM_KOI8 -title "Minicom" -fg white -cr white -bg black -e minicom
864 #*FvwmButtons: Real bell.xpm Exec cd /opt/audio && exec realplay
865 #*FvwmButtons: Kill rbomb.xpm Destroy
869 *FvwmButtons: (Title Term, Icon rterm2.xpm, Action TERM_KOI8)
870 *FvwmButtons: (Title UTF-8, Icon rterm2.xpm, Action TERM_UTF8)
871 *FvwmButtons: (Title phdru, Icon xterm-sgi.xpm, Action Term-Phdru)
873 *FvwmButtons: (Title Wallpaper, Icon find1.xpm, Action Exec $HOME/lib/xsetbg/print-filename.py | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
874 *FvwmButtons: (Title "-1", Icon find1.xpm, Action Exec $HOME/lib/xsetbg/print-filename.py -o | text-wrap.py -w TEXT_WIDTH -s -n | gxmessage -buttons Ok -default Ok -fn 'MESSAGE_FONT' -file -)
875 *FvwmButtons: (Title Next, Icon Jrecycle.xpm, Action Exec exec "$HOME"/lib/xsetbg/xsetbg-http-force)
876 *FvwmButtons: (Title pavucontrol, Icon mini.sound.xpm, Action PaVuControl)
877 #*FvwmButtons: (Title Id3Info, Icon bell.xpm, Action Id3Info)
878 #*FvwmButtons: (Title Audacious, Icon bell.xpm, Action Audacious)
879 *FvwmButtons: (Title DeadBeef, Icon bell.xpm, Action DeadBeef)
880 #*FvwmButtons: (Title SMPlayer, Icon bell.xpm, Action SMPlayer)
881 #*FvwmButtons: (Title XLock, Icon Jxlock.xpm, Action Exec exec xscreensaver-command -lock)
883 ############################################################################
886 # FvwmForm alias - rlogin to host via term
888 #*Rlogin: WarpPointer
889 #*Rlogin: Font *helvetica*m*r*n*14*
890 #*Rlogin: ButtonFont *helvetica*m*o*n*14*
891 #*Rlogin: InputFont *cour*m*r*n*14*
893 #*Rlogin: Back Light Gray
894 #*Rlogin: ItemFore Wheat
895 #*Rlogin: ItemBack Gray50
897 #*Rlogin: Line center
898 #*Rlogin: Text "Login to Remote Host"
899 #*Rlogin: Line center
900 #*Rlogin: Text "Host:"
901 #*Rlogin: Input HostName 20 ""
902 #*Rlogin: Line center
903 #*Rlogin: Selection UserSel single
904 #*Rlogin: Choice Default Default on "same user"
905 #*Rlogin: Choice Custom Custom off "user:"
906 #*Rlogin: Input UserName 10 ""
907 #*Rlogin: Line expand
908 #*Rlogin: Button quit "Login" ^M
909 #*Rlogin: Command TERM_KOI8 -T term@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName))
910 #*Rlogin: Button restart "Clear"
911 #*Rlogin: Command Beep
912 #*Rlogin: Button quit "Cancel"
913 #*Rlogin: Command Nop
915 ## FvwmForm alias - query exit ala mwm
917 #*QuitVerify: GrabServer
918 #*QuitVerify: WarpPointer
919 #*QuitVerify: Font *helvetica*m*r*n*14*
920 ##*QuitVerify: ButtonFont *helvetica*m*o*n*14*
921 #*QuitVerify: ButtonFont 7x13bold
922 #*QuitVerify: Fore Black
923 #*QuitVerify: Back Light Gray
924 #*QuitVerify: ItemFore Wheat
925 #*QuitVerify: ItemBack Gray50
927 #*QuitVerify: Line center
928 #*QuitVerify: Text "Do you really want to exit FVWM?"
929 #*QuitVerify: Line expand
930 #*QuitVerify: Button quit " Exit "
931 #*QuitVerify: Command Quit
932 #*QuitVerify: Button quit "Cancel"
933 #*QuitVerify: Command Nop
936 ## MyTalk & MyFvwmTalk from Dave Goldberg
937 ## MyTalk Form - dissappears after use
939 #*MyTalk: WarpPointer
940 #*MyTalk: Font *helvetica*m*r*n*14*
941 #*MyTalk: ButtonFont *helvetica*m*o*n*14*
942 #*MyTalk: InputFont *cour*m*r*n*14*
945 #*MyTalk: ItemFore Blue
946 #*MyTalk: ItemBack Gray
947 #*MyTalk: Line center
948 #*MyTalk: Text "Fvwm Function"
949 #*MyTalk: Input Func 40 ""
950 #*MyTalk: Line expand
951 #*MyTalk: Button quit "Run" ^M
952 #*MyTalk: Command $(Func)
953 #*MyTalk: Button restart "Clear" ^R
954 #*MyTalk: Button quit "Cancel" ^C
955 #*MyTalk: Command Nop
957 ## MyFvwmTalk Form - sticks around
959 #*MyFvwmTalk: WarpPointer
960 #*MyFvwmTalk: Font *helvetica*m*r*n*14*
961 #*MyFvwmTalk: ButtonFont *helvetica*m*o*n*14*
962 #*MyFvwmTalk: InputFont *cour*m*r*n*14*
963 #*MyFvwmTalk: Fore Red
964 #*MyFvwmTalk: Back Gray
965 #*MyFvwmTalk: ItemFore Blue
966 #*MyFvwmTalk: ItemBack Gray
967 #*MyFvwmTalk: Line center
968 #*MyFvwmTalk: Text "Fvwm Function"
969 #*MyFvwmTalk: Input Func 40 ""
970 #*MyFvwmTalk: Line expand
971 #*MyFvwmTalk: Button restart "Run" ^M
972 #*MyFvwmTalk: Command $(Func)
973 #*MyFvwmTalk: Button restart "Clear" ^R
974 #*MyFvwmTalk: Command Nop
975 #*MyFvwmTalk: Button restart "Iconify" ^Z
976 #*MyFvwmTalk: Command Next [MyFvwmTalk] Iconify
977 #*MyFvwmTalk: Button quit "Quit" ^C
978 #*MyFvwmTalk: Command Nop
980 ############################################################################
983 # NOTE: Icons will only be shown in module if "Style * !Icon" is set
984 *FvwmIconBox: IconBack #cfcfcf
985 *FvwmIconBox: IconHiFore black
986 *FvwmIconBox: IconHiBack LightSkyBlue
987 *FvwmIconBox: Back #5f9ea0
988 #*FvwmIconBox: Fore blue
989 *FvwmIconBox: Geometry 5x1+0+0
990 *FvwmIconBox: MaxIconSize 64x38
991 *FvwmIconBox: Font ICON_BOX_FONT
992 *FvwmIconBox: SortIcons IconName
993 *FvwmIconBox: Padding 4
994 *FvwmIconBox: Lines 10
995 *FvwmIconBox: SBWidth 11
996 *FvwmIconBox: Placement Left Top
997 *FvwmIconBox: Pixmap fvwm.xpm
998 #*FvwmIconBox: HideSC Horizontal
999 *FvwmIconBox: SetWMIconSize
1000 *FvwmIconBox: HilightFocusWin
1001 #*FvwmIconBox: Resolution Desk
1002 *FvwmIconBox: Mouse 1 Click RaiseLower
1003 *FvwmIconBox: Mouse 1 DoubleClick Iconify
1004 *FvwmIconBox: Mouse 2 Click Iconify -1, Focus
1005 *FvwmIconBox: Mouse 3 Click Module FvwmIdent
1006 *FvwmIconBox: Key r RaiseLower
1007 *FvwmIconBox: Key space Iconify
1008 *FvwmIconBox: Key d Close
1009 *FvwmIconBox: Key n Next
1010 *FvwmIconBox: Key p Prev
1011 *FvwmIconBox: Key h Left
1012 *FvwmIconBox: Key j Down
1013 *FvwmIconBox: Key k Up
1014 *FvwmIconBox: Key l Right
1016 ############################################################################
1019 # Give us colors and a fonts
1020 *FvwmIdent: Back MidnightBlue
1021 *FvwmIdent: Fore Yellow
1022 *FvwmIdent: Font IDENT_FONT
1024 ############################################################################
1027 *FvwmPager: Back #908090
1028 *FvwmPager: Fore #484048
1029 *FvwmPager: Font TITLE_FONT
1030 *FvwmPager: Hilight #cab3ca
1031 *FvwmPager: Geometry PAGER_GEOM
1032 *FvwmPager: Label 0 System
1033 *FvwmPager: Label 1 Net
1034 *FvwmPager: Label 2 Work
1035 *FvwmPager: SmallFont PAGER_FONT
1037 *FvwmPager: Balloons All
1038 *FvwmPager: BalloonBack #efe3b5
1039 *FvwmPager: BalloonFore Black
1040 *FvwmPager: BalloonFont ICON_FONT
1041 *FvwmPager: BalloonYOffset +2
1042 *FvwmPager: BalloonBorderWidth 1
1043 *FvwmPager: BalloonBorderColor Black
1045 ############################################################################
1048 *FvwmScroll: Back grey40
1049 *FvwmScroll: Fore green
1051 ############################################################################
1054 *FvwmWinList: Back #908090
1055 *FvwmWinList: Fore Black
1056 *FvwmWinList: Font WIN_LIST_FONT
1057 *FvwmWinList: Action Click1 Iconify -1, Focus
1058 *FvwmWinList: Action Click2 Iconify
1059 *FvwmWinList: Action Click3 Module "FvwmIdent: " FvwmIdent
1060 *FvwmWinList: UseSkipList
1061 *FvwmWinList: Geometry +10-10