# this is a bare bones sample .fvwm2rc/system.fvwm2rc file for fvwm-2. # It should be customized before install. See other sample .fvwm2rc files # for hints, as well as pointers from the various links on the official # fvwm web page (see the FAQ). # be sure to customize these paths for your installation: ModulePath /usr/libexec/fvwm/2.5.23 ImagePath /usr/include/X11/pixmaps:/usr/X11R6/include/X11/pixmaps:misc/life/fvwm/3dpixmaps:/usr/X11R6/include/X11/pixmaps/icons IconPath /usr/include/X11/bitmaps EdgeResistance 10000 10 EdgeScroll 100 100 ClickTime 750 # make sure these fonts exist on your system: WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* HilightColor black palevioletred DeskTopSize 2x2 MenuStyle maroon grey60 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm ColormapFocus FollowsMouse # default Styles: Style "*" BorderWidth 7, HandleWidth 7 Style "*" Icon unknown1.xpm, Color lightgrey/dimgrey Style "*" MWMFunctions, MWMDecor, HintOverride Style "*" DecorateTransient, NoPPosition Style "*" IconBox 0 -10 -280 -1 Style "*" ClickToFocus Style "*" RandomPlacement, SmartPlacement # Styles for various Fvwm modules: Style "Fvwm*" NoTitle, Sticky, WindowListSkip Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip Style "FvwmPager" StaysOnTop Style "FvwmBanner" StaysOnTop Style "FvwmIconMan" Sticky Style "FvwmButtons" Icon toolbox.xpm, ClickToFocus # Styles for your common terminal emulator programs: Style "XTerm" Icon xterm.xpm, IconBox -70 1 -1 -140, Iconify Style "rxvt" Icon term.xpm, IconBox -70 1 -1 -140 Style "rxvt" MWMBorder, MWMButtons Style "xawtv" StaysOnTop,Sticky Style "Xine" StaysOnTop Style "MPlayer" StaysOnTop,Sticky Style "Gnome-panel" StaysOnTop,Sticky # Styles for various common programs: Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip, ClickToFocus #Style "xbiff" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xrus" NoTitle, Sticky, WindowListSkip, ClickToFocus Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon Style "xmh" RandomPlacement, NoButton 2 Style "xman" Icon xman.xpm, RandomPlacement, ClickToFocus Style "xmag" Icon mag_glass.xpm, RandomPlacement, ClickToFocus Style "xgraph" Icon graphs.xpm, RandomPlacement, ClickToFocus Style "xmosaic" Color Green/Yellow, ClickToFocus Style "xconsole" Color Green/Yellow, ClickToFocus, StartsOnDesk 0 ############################################################################ # MOUSE Setup # # First, the root window. Button 1 brings up the Main Menu. B2 is the # window operations list, and B3 is the winlist module # Button Context Modifi Function Mouse 1 R A Menu RootMenu Nop Mouse 1 D A Menu RootMenu Nop Mouse 2 R A Menu Window-Ops Nop Mouse 3 R A WindowList Key F8 A M WindowList # Now, title bar buttons # Button Context Modifi Function Mouse 0 1 A Menu Window-Ops2 Close Mouse 0 3 A Destroy Mouse 0 2 A Delete Mouse 0 4 A Maximize-Func Mouse 0 6 A Iconify # Button 1 in Frame or Sides is a resize-or-raise, in Icons is a move or # de-iconify, and on Top does a move-or-raise # Button Context Modifi Function Mouse 1 FS A Resize-or-Raise Mouse 1 I A Move-or-Iconify Mouse 1 T A Move-or-Raise # Button 2 in an Icon is de-iconify, in Corners/Sides/Titlebar gets Ops Menu # Button Context Modifi Function Mouse 2 I A Iconify Mouse 2 FST A Menu Window-Ops2 Nop # Button 3 does a raise-lower on anything Mouse 3 TSIF A RaiseLower ############################################################################ # KEYBOARD Setup # # 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 MC Popup "RootMenu" Key F2 A MC Popup "Window-Ops" Key F3 A MC Module FvwmWinList Key F4 A MC Iconify Key F5 A MC Move Key F6 A MC Resize Key F8 A C Next [*] Focus-And-Raise Key F7 A C Prev [*] Focus-And-Raise Key F10 A C Exec exec gnome-terminal & Key F11 A A Exec exec killall -9 xv xine mplayer #Key F12 A A Exec exec xlock -mode blank Key F12 A A Exec exec gnome-screensaver-command --lock Key F4 A M Close Key F9 A M Iconify Key F10 A M Maximize ######################## Initialization Functions ############################ AddToFunc InitFunction "I" Module FvwmButtons + "I" exec my_xearth + "I" exec fvwm-xinitrc #xsetroot -mod 2 2 -fg \#554055 -bg \#705070 AddToFunc RestartFunction "I" Module FvwmButtons #+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 # gnome integration Module FvwmGtk *FvwmGtkDestroy gnome-all *FvwmGtkMenu gnome-all *FvwmGtkTitle "Gnome Menus" *FvwmGtkSeparator *FvwmGtkDestroy gnome-sys *FvwmGtkSubmenu "System" gnome-sys *FvwmGtkDestroy gnome-user *FvwmGtkSubmenu "User" gnome-user *FvwmGtkDestroy gnome-redhat *FvwmGtkSubmenu "RedHat" gnome-redhat PipeRead 'fvwm-menu-desktop --type gtk --enable-mini-icons --icon-folder :re --icon-app :re --i con-title :re --icon-toptitle :re' PipeRead 'fvwm-menu-desktop --type gtk --desktop gnome-user --enable-mini-icons' PipeRead 'fvwm-menu-desktop --type gtk --desktop gnome-redhat --enable-mini-icons' # To obtain the menu above with Alt-button1 on the root window Mouse 1 R M SendToModule FvwmGtk gnome-all Key F5 A C Move ######################## Menus ################### AddToMenu RootMenu "Root Menu" Title + "XTerm%xterm.next.xpm%" Exec exec xterm + "" Nop + "Remote Logins%Terminal.xpm%" Popup Remote-Logins + "" Nop + "Utilities%toolbox_3d.xpm%" Popup Utilities + "" Nop + "C.D.E.%zoo_3d.xpm%" Popup CDE + "" Nop + "Fvwm Modules%pot_o_gold_3d.xpm%" Popup Module-Popup + "Fvwm Window Ops%window3d.xpm%" Popup Window-Ops + "Fvwm Simple Config Ops%disk_fancy_green_3d.xpm%" Popup Misc-Ops + "" Nop + "Refresh Screen%paint.xpm%" Refresh #+ "Recapture Screen" Recapture + "" Nop + "Fvwm Maintenance%exit.xpm%" Popup Quit-Verify AddToMenu Utilities "Utilities" Title + "PPP%phone2_3d.xpm%" Exec exec /usr/local/sbin/ppp-man-setuid + "Top%monitor_3d.xpm%" Exec exec xterm -T Top -n Top -e top + "Napster%calc.next.xpm%" Exec exec gnapster + "" Nop + "XEmacs%emacs_3d.xpm%" Exec exec xemacs + "LinTV%emacs_3d.xpm%" Exec exec xawtv + "xmms%emacs_3d.xpm%" Exec exec xmms + "Tetris%emacs_3d.xpm%" Exec exec gtktetris + "Chess%emacs_3d.xpm%" Exec exec Chess + "Mail%Mail2.xpm%" Exec exec xterm -T "Incoming_Mail" -e mutt + "" Nop + "XLock%lock.xpm%" Exec exec xlock -mode blank + "" Nop + "Reset X defaults%xmix.xpm%" Exec xrdb -load $HOME/.Xdefaults AddToMenu CDE "C.D.E." Title + "Calendar%calendar.next.xpm%" Exec exec dtcm + "File Manager%folders_3d.xpm%" Exec exec dtfile + "CDE Mail%Mail2.xpm%" Exec exec dtcalc + "Calculator%calc.next.xpm%" Exec exec dtcalc AddToMenu Misc-Ops "Misc Config Opts" Title + "Sloppy Focus" ChangeDefaultFocus SloppyFocus + "Click To Focus" ChangeDefaultFocus ClickToFocus + "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse + "" Nop + "Colormap Follows Mouse" ColormapFocus FollowsMouse + "Colormap Follows Focus" ColormapFocus FollowsFocus + "" Nop + "Full Paging ON" EdgeScroll 100 100 + "All Paging OFF" EdgeScroll 0 0 + "Horizontal Paging Only" EdgeScroll 100 0 + "Vertical Paging Only" EdgeScroll 0 100 + "Partial Paging" EdgeScroll 50 50 + "Full Paging && Edge Wrap" EdgeScroll 100000 100000 AddToMenu Window-Ops "Window Ops" Title + "Move" Move + "Resize" Resize + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" Maximize + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Window" RefreshWindow AddToMenu Window-Ops2 "&Move" Move + "&Resize" Resize + "R&aise" Raise + "&Lower" Lower + "(De)&Iconify" Iconify + "(Un)&Stick" Stick + "(Un)Ma&ximize" Maximize + "" Nop + "&Delete" Delete + "&Close" Close + "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Print" PrintFunction + "Print Reverse" PrintReverseFunction + "Identify" Module FvwmIdent # be sure to fill these in with your correct machine names: AddToMenu Remote-Logins + "ichudov@ak47.algebra.com%xterm-sol.xpm%" Exec xterm -T ichudov@ak47.algebra.com -fg yellow -bg black -e Ssh ak47.algebra.com + "root@ak47.algebra.com%xterm-sol.xpm%" Exec xterm -T root@ak47.algebra.com -fg yellow -bg black -e Ssh -l root ak47.algebra.com + "root@ak47%xterm-sol.xpm%" Exec xterm -T ichudov@chameleon -fg lightgrey -bg black -e Ssh chameleon.algebra.com + "root@chameleon%xterm-sol.xpm%" Exec xterm -T root@chameleon -fg lightgrey -bg black -e Ssh -l root chameleon.algebra.com + "ichudov@www.video-collage.com%xterm-sol.xpm%" Exec xterm -T ichudov@www.video-collage.com -fg yellow -bg black -e Ssh -v www.video-collage.com + "ichudov@frankie.roc.com%xterm-sol.xpm%" Exec xterm -T ichudov@frankie.roc.com -fg yellow -bg black -e vncviewer :58 + "ichudov@everlast.roc.com%xterm-sol.xpm%" Exec xterm -T ichudov@everlast.roc.com -fg yellow -bg black -e vncviewer :57 + "" Nop + "root@manifold %term.next.xpm%" Exec xterm -T root@`hostname` -fg white -bg black -e su - root + "ichudov@baby %term.next.xpm%" Exec vncviwever baby AddToMenu Module-Popup "FvwmModules" Title + "Identify" Module FvwmIdent + "Talk" Module FvwmTalk + "" Nop + "Button-Bar" Module FvwmButtons + "Pager" Module FvwmPager 0 0 + "Pager (2 desks)" Module FvwmPager 0 1 + "WinList" Module FvwmWinList + "" Nop + "Banner" Module FvwmBanner + "ScrollBar" Module FvwmScroll 50 50 + "Background" Module FvwmBacker + "AutoRaise" Module FvwmAuto 200 Raise Nop + "Stop AutoRaise" KillModule FvwmAuto + "" Nop + "IconBox" Module FvwmIconBox + "IconMan" Module FvwmIconMan + "" Nop + "Form - Rlogin" Module FvwmForm Rlogin + "Form - MyFvwmTalk" Module FvwmForm MyFvwmTalk + "Form - QuitVerify" Module FvwmForm QuitVerify AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "Yes, Really Quit%exit.xpm%" Quit + "" Nop + "Restart Fvwm2%color_wheel_3d.xpm%" Restart fvwm2 ######################## Sample Functions ########################## AddToFunc MailFunction "I" Next [$0] Iconify -1 + "I" Next [$0] Focus + "I" None [$0] Exec $0 $1 AddToFunc Move-or-Raise "I" Raise + "M" Move + "D" Lower AddToFunc Focus-And-Raise "I" Raise + "I" Focus AddToFunc Move-or-Raise2 "M" Raise + "M" Move + "D" Lower AddToFunc Maximize-Func "M" Maximize 0 100 + "C" Maximize 0 80 + "D" Maximize 100 100 AddToFunc Move-or-Iconify "I" Raise + "M" Move + "D" Iconify AddToFunc Resize-or-Raise "I" Raise + "M" Resize + "D" Lower AddToFunc Resize-or-Raise2 "M" Raise + "M" Resize + "D" Lower AddToFunc PrintFunction "I" Raise + "I" Exec xdpr -id $w AddToFunc PrintReverseFunction "I" Raise + "I" Exec xdpr 1/2 -h -rv -id $w AddToFunc Iconify-and-Raise "I" Iconify + "I" Raise # RLOGIN machine fg bg AddToFunc RLOGIN "I" Exec xterm -fg $1 -bg $2 -e rlogin $0 -8 # TELNET machine fg bg AddToFunc TELNET "I" Exec xterm -fg $1 -bg $2 -e telnet $0 AddToFunc FocusAndWarp "I" Focus + "I" WarpToWindow 2p 2p AddToFunc DeiconifyFocusAndWarp "I" Iconify -1 + "I" FocusAndWarp AddToFunc ChangeDefaultFocus "I" Style "*" $0 + "I" Recapture ################## FvwmButtons button-bar ################################ *FvwmButtonsBack grey60 *FvwmButtonsColumns 4 *FvwmButtonsGeometry -1-1 *FvwmButtons(2x3 Frame -2 Swallow(Respawn,NoHints) xclock \ `Exec exec xclock -padding 0 -geometry +2000+0`) #*FvwmButtons(2x3 Frame -2 Title(Side,Left) Mail Fore white \ *FvwmButtons(2x3 Frame -2 Swallow(Respawn,NoHints) xbiff \ `Exec exec repeat ssh -Y manifold.algebra.com xbiff -geometry +200+200 -file /var/spool/mail/ichudov `) *FvwmButtons(4x3 Frame -2 Swallow(Respawn,NoHints) xload \ `Exec exec xload -geometry +2000+0`) *FvwmButtons(2x3 Icon xterm.next.xpm, Action Exec xterm -T `hostname` -e bash ) *FvwmButtons(2x3 Icon netscape.color.xpm, Action Exec firefox) *FvwmButtons(2x3 Icon Mail2.xpm, Action Exec xterm -T Incoming_Mail -e mutt) *FvwmButtons(2x3 NoSize Icon umbrella_3d.xpm Action Popup RootMenu ) *FvwmButtons(2x3 Icon lock.xpm, Action "Exec xlock -mode blank") *FvwmButtons(2x3 Icon rbomb_3d.xpm, Back bisque4 Action Destroy) *FvwmButtons(4x20 Back darkolivegreen Frame 2 Padding 2 2 \ Container(Frame -2 Padding 1 1 Back darkolivegreen)) *FvwmButtons(Frame 1 Title(Side,Left) Pager \ Swallow(UseOld,NoRespawn)\ FvwmPager `Module FvwmPager 0 2`) *FvwmButtons(End) ###################################################################### #*FvwmIconMan*Geometry 100x100-1+1 ########################## Window-Identifier ############################### # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPagerBack #908090 *FvwmPagerFore #484048 *FvwmPagerColumns 1 *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmPagerHilight #cab3ca *FvwmPagerGeometry -1-1 *FvwmPagerLabel 0 Life *FvwmPagerLabel 1 Prog *FvwmPagerLabel 2 Misc *FvwmPagerSmallFont 5x8 ##########################FvwmWinList################################## *FvwmWinListBack #908090 *FvwmWinListFore Black *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmWinListAction Click1 Iconify -1,Focus *FvwmWinListAction Click2 Iconify *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent *FvwmWinListUseSkipList *FvwmWinListGeometry +0-1 *FvwmBackerDesk 0 -solid steelblue *FvwmBackerDesk 1 -solid midnightblue *FvwmScrollBack grey40 *FvwmScrollFore green ############################################################ ############################################################ # Note that icons are shown in the module # only if NoIcon commnand is applied. #Style "*" NoIcon ############################################################ *FvwmIconBoxIconBack #cfcfcf *FvwmIconBoxIconHiFore black *FvwmIconBoxIconHiBack LightSkyBlue *FvwmIconBoxBack #5f9ea0 #*FvwmIconBoxFore blue *FvwmIconBoxGeometry 5x1+0+0 *FvwmIconBoxMaxIconSize 64x38 *FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* *FvwmIconBoxSortIcons IconName *FvwmIconBoxPadding 4 *FvwmIconBoxLines 10 *FvwmIconBoxSBWidth 11 *FvwmIconBoxPlacement Left Top *FvwmIconBoxPixmap fvwm.xpm #*FvwmIconBoxHideSC Horizontal *FvwmIconBoxSetWMIconSize *FvwmIconBoxHilightFocusWin #*FvwmIconBoxResolution Desk *FvwmIconBoxMouse 1 Click RaiseLower *FvwmIconBoxMouse 1 DoubleClick Iconify *FvwmIconBoxMouse 2 Click Iconify -1, Focus *FvwmIconBoxMouse 3 Click Module FvwmIdent *FvwmIconBoxKey r RaiseLower *FvwmIconBoxKey space Iconify *FvwmIconBoxKey d Close *FvwmIconBoxKey n Next *FvwmIconBoxKey p Prev *FvwmIconBoxKey h Left *FvwmIconBoxKey j Down *FvwmIconBoxKey k Up *FvwmIconBoxKey l Right # # Icon file specifications # # Mostly, you don't have to specify icon files, as FvwmIconBox now # reads icon files specified in Style commands. # *FvwmIconBox "Fvwm*" - # FvwmForm alias - rlogin to host via xterm *RloginWarpPointer *RloginFont *helvetica*m*r*n*14* *RloginButtonFont *helvetica*m*o*n*14* *RloginInputFont *cour*m*r*n*14* *RloginFore Black *RloginBack Light Gray *RloginItemFore Wheat *RloginItemBack Gray50 # begin items *RloginLine center *RloginText "Login to Remote Host" *RloginLine center *RloginText "Host:" *RloginInput HostName 20 "" *RloginLine center *RloginSelection UserSel single *RloginChoice Default Default on "same user" *RloginChoice Custom Custom off "user:" *RloginInput UserName 10 "" *RloginLine expand *RloginButton quit "Login" ^M *RloginCommand Exec xterm -T xterm@$(HostName) -e rlogin $(HostName) $(Custom?-l $(UserName)) *RloginButton restart "Clear" *RloginCommand Beep *RloginButton quit "Cancel" *RloginCommand Nop # FvwmForm alias - query exit ala mwm *QuitVerifyGrabServer *QuitVerifyWarpPointer *QuitVerifyFont *helvetica*m*r*n*14* #*QuitVerifyButtonFont *helvetica*m*o*n*14* *QuitVerifyButtonFont 7x13bold *QuitVerifyFore Black *QuitVerifyBack Light Gray *QuitVerifyItemFore Wheat *QuitVerifyItemBack Gray50 # begin items *QuitVerifyLine center *QuitVerifyText "Do you really want to exit FVWM?" *QuitVerifyLine expand *QuitVerifyButton quit " Exit " *QuitVerifyCommand Quit *QuitVerifyButton quit "Cancel" *QuitVerifyCommand Nop # MyTalk & MyFvwmTalk from Dave Goldberg # MyTalk Form - dissappears after use *MyTalkWarpPointer *MyTalkFont *helvetica*m*r*n*14* *MyTalkButtonFont *helvetica*m*o*n*14* *MyTalkInputFont *cour*m*r*n*14* *MyTalkFore Red *MyTalkBack Gray *MyTalkItemFore Blue *MyTalkItemBack Gray *MyTalkLine center *MyTalkText "Fvwm Function" *MyTalkInput Func 40 "" *MyTalkLine expand *MyTalkButton quit "Run" ^M *MyTalkCommand $(Func) *MyTalkButton restart "Clear" ^R *MyTalkButton quit "Cancel" ^C *MyTalkCommand Nop # MyFvwmTalk Form - sticks around *MyFvwmTalkWarpPointer *MyFvwmTalkFont *helvetica*m*r*n*14* *MyFvwmTalkButtonFont *helvetica*m*o*n*14* *MyFvwmTalkInputFont *cour*m*r*n*14* *MyFvwmTalkFore Red *MyFvwmTalkBack Gray *MyFvwmTalkItemFore Blue *MyFvwmTalkItemBack Gray *MyFvwmTalkLine center *MyFvwmTalkText "Fvwm Function" *MyFvwmTalkInput Func 40 "" *MyFvwmTalkLine expand *MyFvwmTalkButton restart "Run" ^M *MyFvwmTalkCommand $(Func) *MyFvwmTalkButton restart "Clear" ^R *MyFvwmTalkCommand Nop *MyFvwmTalkButton restart "Iconify" ^Z *MyFvwmTalkCommand Next [MyFvwmTalk] Iconify *MyFvwmTalkButton quit "Quit" ^C *MyFvwmTalkCommand Nop # to change banner pixmap #*FvwmBannerPixmap fvwm3.xpm #*FvwmBannerTimeout 2 ## Buttons actually being used (duplicated below) #Standard X 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 #Large up Triangle ButtonStyle 4 4 50x25@1 75x75@0 25x75@0 50x25@1 #Large down Triangle ButtonStyle 6 4 50x75@1 25x25@1 75x25@1 50x75@0 # Lightning Bolts # # Small Lightning Bolt (skinny at both ends) ButtonStyle 3 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0 # Big Lighting Bolt (Fat at top, comes to a point) #ButtonStyle 3 8 35x15@1 20x50@1 40x50@0 30x80@1 75x40@0 50x40@1 75x15@0 35x15@1