# Trying to compile an old .fvwrc to the new fvwm-2.0 Format ########################################################################### # set up the colors # # this is used for non-selected windows, menus, and the panner #!StdForeColor Black (new command=Style "*" Color f/b) Style "*" ForeColor Black #!StdBackColor #60a0c0 (new command=Style "*" Color f/b) Style "*" BackColor #60a0c0 #StdBackColor #00a0c0 # this is used for the selected window #!HiForeColor black (new command=HilightColor) #!HiBackColor #c06077 (new command=HilightColor) #Set the foreground and background color for selected windows HilightColor black #c06077 #! PagerBackColor #5c54c0 [deleted] #! PagerForeColor blue [deleted] # PagerForeColor orchid #!MenuForeColor Black (new command=MenuStyle) # MenuBackColor #c06077 #! MenuBackColor #60a0c0 (new command=MenuStyle) # MenuBackColor #20a0c0 #!MenuStippleColor grey (new command=MenuStyle) ############################################################################ # Now the fonts - one for menus/icons, another for window titles #!Font -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-* (new command=MenuStyle) WindowFont -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-* IconFont -adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-* # PagerFont is used to mark windows in the Pager with their icon names. # This is really only useful for DeskTopScale < 20 or so #PagerFont 5x8 ########################################################################### # Set up the major operating modes # # Set windows to auto-raise after 750 milliseconds if you like it. # Autoraise can sometimes obscure pop-up windows. Performance is now # similar to olvwm's auto-raise feature. #AutoRaise 750 # Normally, we'll be in focus-follows mouse mode, but uncomment this # for mwm-style click-to-focus # ClickToFocus Style "*" HandleWidth 4 # Auto Place Icons is a nice feature.... # This creates two icon boxes, one on the left side, then one on the # bottom. Leaves room in the upper left for my clock and xbiff, # room on the bottom for the Pager. Style "*" IconBox -150 90 -5 -140 Style "*" IconBox 5 -140 -140 -5 # If you uncomment this, and make sure that the WindowList is bound to # something, it works pretty much like an icon manager. #SuppressIcons # If you don't like the default 150 msec click delay for the complex functions # change this and uncomment it. #ClickTime 150 ########################################################################### # Set up the virtual desktop and pager Style "*" RandomPlacement TRUE #set the desk top size in units of physical screen size DeskTopSize 3x3 # and the reduction scale used for the panner/pager #!DeskTopScale 32 (new command=*FvwmPagerDeskTopScale ) *FvwmPagerDeskTopScale 32 # Use the Fvwm Pager #! Pager -1 -1 [deleted] Style "Fvwm" Sticky #The pager is automatically sticky, but I like it to StayOnTop # StaysOnTop Fvwm Pager #The pager is automatically sticky, but I like it without a title Style "*" NoTitle Fvwm Pager #Might as well leave it out of the window list too... Style Fvwm WindowListSkip # flip by whole pages on the edge of the screen. EdgeScroll 100 100 # A modest delay before flipping pages seems to be nice... # I thresh in a 50 pixel Move-resistance too, just so people # can try it out. EdgeResistance 250 50 ############################################################################ # list the windows that don't want a title bar Style "*" NoTitle xclock Style "*" NoTitle oclock # NoTitle xdaliclock Style "*" NoTitle xdclock Style "*" NoTitle Clock Style "*" NoTitle xbiff Style "*" NoTitle xmms ########################################################################### # Here's where I could list NoBorder windows that don't get frames. # If a window shows up with NoTitle and NoBorder, it gets no decorations # at all. # When windows are NoBordered, they look a bit like twm is handling them #NoBorder xterm Style "*" NoBorder xmms ########################################################################## # now the windows that "Stick to the glass", ie don't scroll with the # desktop Style "xclock" Sticky Style "xdclock" Sticky Style "xdaliclock" Sticky Style "Clock" Sticky Style "xbiff" Sticky Style "xmms" Sticky ############################################################################ # now list windows that want to "stay on top," ie stay visible until # explicitly lowered # I got tired of this, except for the pager. #StaysOnTop xclock #StaysOnTop xdclock Style "oclock" StaysOnTop #StaysOnTop Clock ############################################################################ # now list windows that don't need to show up in the window list Style Clock WindowListSkipStyle xbiff WindowListSkipStyle xclock WindowListSkip ############################################################################ # define some common icon bitmaps # These are the color icons. # Of course, you need to change the directory to the one where they # really live. Style "rxvt" Icon /usr/include/X11/pixmaps/term.xpm Style "xterm" Icon /usr/include/X11/pixmaps/xterm.xpm Style "Fvwm Icon Pager" Style "Appointment" Icon /usr/include/X11/pixmaps/datebook.xpm Style "xcalc" Icon /usr/include/X11/pixmaps/xcalc.xpm Style "xbiff" Icon /usr/include/X11/pixmaps/mail1.xpm Style "xman" Icon /usr/include/X11/pixmaps/xman.xpm Style "" Icon /usr/include/X11/pixmaps/unknown1.xpm # Here are some monchrome icon bitmaps that everyone should have #Icon "rxvt" /usr/include/X11/bitmaps/terminal #Icon "xterm" /usr/include/X11/bitmaps/Term # I have included a default.xbm in the fvwm_icons subdirectory #Icon "" /usr/include/X11/bitmaps/default.xbm ############################################################################## #now define the menus - defer bindings until later # This menu is invoked as a sub-menu - it allows you to quit, # restart, or switch to another WM. AddToMenu "Quit-Verify" "Really Quit Fvwm?" Title + "Yes, Really Quit" Quit + "Restart Fvwm" Restart fvwm + "Restart Fvwm2" Restart fvwm2 + "Start twm" Restart twm + "Start mwm" Restart mwm + "Start olwm" Restart /usr/openwin/bin/olwm + "Start olvwm" Restart /usr/openwin/bin/olvwm + "" Nop + "set NY breakfast" Exec xv -root -max -quit -ncols 16 ~sloboda/Pictures/NY_breakfast.gif + "Babes background" Exec xv -root -quit -ncols 16 ~sloboda/Pictures/babes.gif + "" Nop + "No, Don't Quit" Nop AddToMenu "Shells" "Shells" Title + "Xterm (5x7 font)" Exec exec /usr/bin/X11/xterm -sb -sl 1000 -j -ls -fn 5x7 & + "Xterm (6x10 font)" Exec exec /usr/bin/X11/xterm -sb -sl 1000 -j -ls -fn 6x10 & + "Xterm (7x14 font)" Exec exec /usr/bin/X11/xterm -sb -sl 1000 -j -ls -fn 7x14 & + "Color Xterm (5x7 font)" Exec exec /usr/bin/X11/color_xterm -sb -sl 1000 -j -ls -fn 5x7 & + "Color Xterm (6x10 font)" Exec exec /usr/bin/X11/color_xterm -sb -sl 1000 -j -ls -fn 6x10 & + "Color Xterm (7x14 font)" Exec exec /usr/bin/X11/color_xterm -sb -sl 1000 -j -ls -fn 7x14 & + "Large Xterm (10x20 font)" Exec exec /usr/bin/X11/xterm -sb -sl 1000 -j -ls -fn 10x20 & + "Rxvt (VT100 emulator)" Exec exec /usr/bin/X11/rxvt -font 7x14 -fb 7x14 -ls & + "Large Rxvt (10x20 font)" Exec exec /usr/bin/X11/rxvt -font 10x20 -fb 10x20 -ls & + "Large Color Xterm (10x20 font)" Exec exec /usr/bin/X11/color_xterm -sb -sl 1000 -j -ls -fn 10x20 & AddToMenu "Screensaver" "Screensaver" Title + "Random" Exec exec xlock -nolock -nice 0 -mode random & + "Hop" Exec exec xlock -nolock -nice 0 -mode hop & + "Life" Exec exec xlock -nolock -nice 0 -mode life & + "Qix" Exec exec xlock -nolock -nice 0 -mode qix & + "Image" Exec exec xlock -nolock -nice 0 -mode image & + "Swarm" Exec exec xlock -nolock -nice 0 -mode swarm & + "Rotor" Exec exec xlock -nolock -nice 0 -mode rotor & + "Pyro" Exec exec xlock -nolock -nice 0 -mode pyro & + "Flame" Exec exec xlock -nolock -nice 0 -mode flame & + "Worm" Exec exec xlock -nolock -nice 0 -mode worm & + "Blank" Exec exec xlock -nolock -nice 0 -mode blank & AddToMenu "Screenlock" "Lock Screen" Title + "Random" Exec exec xlock -nice 0 -mode random & + "Hop" Exec exec xlock -nice 0 -mode hop & + "Life" Exec exec xlock -nice 0 -mode life & + "Qix" Exec exec xlock -nice 0 -mode qix & + "Image" Exec exec xlock -nice 0 -mode image & + "Swarm" Exec exec xlock -nice 0 -mode swarm & + "Rotor" Exec exec xlock -nice 0 -mode rotor & + "Pyro" Exec exec xlock -nice 0 -mode pyro & + "Flame" Exec exec xlock -nice 0 -mode flame & + "Worm" Exec exec xlock -nice 0 -mode worm & + "Blank" Exec exec xlock -nice 0 -mode blank & # This defines the most common window operations AddToMenu WindowOps "Window Ops" Title + "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" Maximize + "(Un)Maximize Vertical" Maximize 0 100 + "" Nop + "Destroy" Destroy + "Delete" Delete # This menu will fire up some very common utilities AddToMenu "Utilities" "Utilities" Title + "Restart fvwm2" Restart fvwm2 + "Xterm" Exec exec /usr/bin/X11/xterm -sb -sl 1000 -j -ls -fn 5x7 & + "Nautilus" Exec exec /usr/bin/nautilus --no-desktop & + "Emacs" Exec exec emacs -fn 5x7 & + "Seyon" Exec exec /usr/X386/bin/seyon -modems /dev/modem -emulator /usr/bin/X11/xterm & + "Top" Exec exec rxvt -font 5x7 -T Top -n Top -e top & + "Calculator" Exec exec xcalc & + "Xman" Exec exec xman & + "" Nop + "Shells" Popup Shells + "" Nop + "XV 3.00" Exec exec xv & + "Oclock" Exec exec oclock & + "" Nop + "Screensaver" Popup Screensaver + "" Nop + "Lock Screen" Popup Screenlock + "" Nop + "Exit Fvwm" Popup Quit-Verify + "" Nop + "Refresh Screen" Refresh + "Yes, Really Quit" Quit ############################################################################ # Now define some handy complex functions # This one moves and then raises the window if you drag the mouse, # only raises the window if you click, or does a RaiseLower if you double # click AddToFunc "Move-or-Raise" "M" Move + "M" Raise + "C" Raise + "D" RaiseLower # This one moves and then lowers the window if you drag the mouse, # only lowers the window if you click, or does a RaiseLower if you double # click AddToFunc "Move-or-Lower" "M" Move + "M" Lower + "C" Lower + "D" RaiseLower # This one resizes and then raises the window if you drag the mouse, # only raises the window if you click, or does a RaiseLower if you double # click AddToFunc "Resize-or-Raise" "M" Resize + "M" Raise + "C" Raise + "D" RaiseLower ############################################################################## # This defines the mouse bindings # First, for the mouse in the root window # Button 1 gives the Utilities menu # Button 2 gives the Window Ops menu # Button 3 gives the WindowList (like TwmWindows) # I use the AnyModifier option for the modifier field, so you can hold down # any shift-control-whatever combination you want! # Button Context Modifi Function Mouse 1 R A PopUp "Utilities" Mouse 2 R A PopUp "Window Ops" Mouse 3 R A WindowList # Now the title bar buttons # Any button in the left title-bar button gives the window ops menu # Any button in the right title-bar button Iconifies the window # Note the use of "Mouse 0" for AnyButton. # Button Context Modifi Function Mouse 0 1 A PopUp "Window Ops" Mouse 0 2 A Iconify # Now the rest of the frame # Here I invoke my complex functions for Move-or-lower, Move-or-raise, # and Resize-or-Raise. # Button 1 in the corner pieces, sides with any modifiers, gives resize or raise Mouse 1 FS A Function "Resize-or-Raise" # Button 1 in the title, or icon, w/ any modifiers, gives move or raise Mouse 1 TI A Function "Move-or-Raise" # Button 2 in an icon, w/ any modifiers, gives de-iconifies Mouse 2 I A Iconify # Button 2 in the corners, sides, or title-bar gives the window ops menu Mouse 2 FST A PopUp "Window Ops" # Button 3 anywhere in the decoration (except the title-bar buttons) # does a move-or-lower Mouse 3 TSIF A Function "Move-or-Lower" ############################################################################ # Now some keyboard shortcuts. Key F1 A A RaiseLower # Arrow Keys # press arrow + control anywhere, and scroll by 1 page Key Left A C Scroll -100 0 Key Right A C Scroll +100 +0 Key Up A C Scroll +0 -100 Key Down A C Scroll +0 +100 # press arrow + meta key, and scroll by 1/10 of a page Key Left A M Scroll -10 +0 Key Right A M Scroll +10 +0 Key Up A M Scroll +0 -10 Key Down A M Scroll +0 +10 # press shift arrow + control anywhere, and move the pointer by 1% of a page Key Left A SC CursorMove -1 0 Key Right A SC CursorMove +1 +0 Key Up A SC CursorMove +0 -1 Key Down A SC CursorMove +0 +1 # press shift arrow + meta key, and move the pointer by 1/10 of a page Key Left A SM CursorMove -10 +0 Key Right A SM CursorMove +10 +0 Key Up A SM CursorMove +0 -10 Key Down A SM CursorMove +0 +10 # Keyboard accelerators Key F1 A M Popup "Utilities" Key F2 A M Popup "Window Ops" Key F3 A M WindowList Key F4 A M Iconify Key F5 A M Move Key F6 A M Resize Key F7 A M CirculateUp Key F8 A M CirculateDown #Page Up/Dapge Down keys are used to scroll by one desktop page # in any context, press page up/down + control # in root context, just pressing page up/down is OK # # I prefer the non-wrapping scroll. These are for example purposes only #Key Next A C Scroll 100000 0 #Key Next R N Scroll 100000 0 #Key Prior A C Scroll -100000 0 #Key Prior R N Scroll -100000 0 #Set the foreground, background and stipple color and font for menus MenuStyle Black #60a0c0 grey -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-* fvwm