From owner-freebsd-questions Thu May 8 23:09:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id XAA13522 for questions-outgoing; Thu, 8 May 1997 23:09:07 -0700 (PDT) Received: from narcissus.ml.org (root@brosenga.Pitzer.edu [134.173.120.201]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA13512 for ; Thu, 8 May 1997 23:09:04 -0700 (PDT) Received: from localhost (ben@localhost) by narcissus.ml.org (8.8.5/8.7.3) with SMTP id XAA08329; Thu, 8 May 1997 23:09:00 -0700 (PDT) Date: Thu, 8 May 1997 23:09:00 -0700 (PDT) From: Snob Art Genre To: Tim Oneil cc: questions@FreeBSD.ORG Subject: Re: fvwm2 In-Reply-To: <3.0.32.19970508085141.0098a2b0@visigenic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Here you go. On Thu, 8 May 1997, Tim Oneil wrote: > Would someone mind sending me the example > .fvwm2rc config file? It doesn't appear to > have been installed with the window manager, > even a recursive search of my drive won't > reveal it, and without one example file I'm > not getting very far in customizing it. > fBSD 2.2.1 as a whole however is rocking! Thanks > to the guys who answered my question about the > fonts for xterm too. > > -Tim > > # this is a sample .fvwmrc file for fvwm-2. # Apparantly, you can retrieve sample .fvwmrc's from # ftp://ftp.best.com/pub/tdgilman/Fvwmrcs # you can also submit your favourite .fvwmrc to # tdgilman@best.com # if you want to. # small up triangle ButtonStyle 2 4 50x35@1 65x65@0 35x65@0 50x35@1 # small down triangle ButtonStyle 4 4 50x65@1 35x35@1 65x35@1 50x65@0 # some other ButtonStyles: # large up triangle #ButtonStyle 2 4 50x25@1 75x75@0 25x75@0 50x25@1 # large down triangle #ButtonStyle 4 4 50x75@1 25x25@1 75x25@1 50x75@0 # big box #ButtonStyle 2 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1 # little box #ButtonStyle 8 5 40x40@1 60x40@1 60x60@0 40x60@0 40x40@1 # tall box #ButtonStyle 6 5 40x25@1 60x25@1 60x75@0 40x75@0 40x25@1 # dot #ButtonStyle 4 5 45x45@1 55x45@1 55x55@0 45x55@0 45x45@1 # an up arrow: #ButtonStyle 2 8 40x80@1 40x50@1 20x50@1 50x20@1 80x50@0 60x50@0 60x80@0 40x80@0 # an X #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 EdgeResistance 250 10 WindowFont -adobe-times-bold-r-*-*-18-*-*-*-*-*-*-* IconFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* EdgeScroll 0 0 ModulePath /usr/X11R6/lib/X11/fvwm PixmapPath /usr/X11R6/include/X11/pixmaps/ IconPath /usr/X11R6/include/X11/bitmaps/ HilightColor black palevioletred DeskTopSize 1x1 MenuStyle #f0f0ff #070070 grey40 -adobe-times-bold-r-*-*-14-*-*-*-*-*-*-* fvwm ClickTime 750 ColormapFocus FollowsMouse Style "*" ClickToFocus Style "*" BorderWidth 5, HandleWidth 5 Style "*" Icon unknown1.xpm, Color Black/#40a0c0 Style "*" SmartPlacement Style "*" MWMFunctions,MWMDecor,HintOverride Style "*" DecorateTransient,IconBox 0 -10 -280 -1 Style "Fvwm*" NoTitle, NoHandles, Sticky, WindowListSkip, Style "Fvwm*" BorderWidth 0,CirculateSkipIcon Style "Fvwm Pager" StaysOnTop Style "FvwmPager" StaysOnTop Style "FvwmBanner" StaysOnTop Style "FvwmButtons" NoTitle, NoHandles, Sticky, WindowListSkip Style "FvwmButtons" BorderWidth 0, CirculateSkip Style "FvwmButtons" Icon toolbox.xpm,ClickToFocus Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "*lock" RandomPlacement Style "xbiff" NoTitle, Sticky, WindowListSkip,ClickToFocus Style "xload" NoTitle, Sticky, WindowListSkip,ClickToFocus Style "xload" color Gray/Gray #Style "Pine" Icon /home/ben/src/pine3.95/contrib/bitmaps/unixware/pine.icon Style "asclock" NoTitle, Sticky, WindowListSkip,ClickToFocus Style "Maker" StartsOnDesk 1,RandomPlacement,ClickToFocus Style "matlab" StartsOnDesk 3 Style "signal" StartsOnDesk 3 Style "rxvt" Icon term.xpm,SloppyFocus,IconBox -70 1 -1 -140 Style "XTerm" Icon xterm.xpm,IconBox -70 1 -1 -140 Style "XTerm" Color black/#aa80aa,MWMBorder,MWMButtons Style "Appointment" Icon datebook.xpm, NoButton 2, NoButton 4,ClickToFocus Style "xcalc" Icon xcalc.xpm, NoButton 2,RandomPlacement,ClickToFocus Style "xmh" Icon mail1.xpm, NoIconTitle,StickyIcon Style "xmh" RandomPlacement, StartsOnDesk 2, NoButton 2 Style "xman" Icon xman.xpm,RandomPlacement,ClickToFocus Style "xvgr" Icon graphs.xpm,RandomPlacement,ClickToFocus Style "matlab" Icon math4.xpm,ClickToFocus Style "xmag" Icon mag_glass.xpm,RandomPlacement, ClickToFocus Style "xgraph" Icon graphs.xpm,RandomPlacement,ClickToFocus Style "sppeed6" Icon math3.xpm,NoTitle,ClickToFocus Style "sppeed6_user" Icon math4.xpm,NoTitle Style "xmosaic" NoPPosition, color Green/Yellow,ClickToFocus #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 #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 Key Left A C CursorMove -1 0 Key Right A C CursorMove +1 +0 Key Up A C CursorMove +0 -1 Key Down A C CursorMove +0 +1 Key Left A MC CursorMove -10 +0 Key Right A MC CursorMove +10 +0 Key Up A MC CursorMove +0 -10 Key Down A MC CursorMove +0 +10 Key F1 A M Popup "Utilities" Key F2 A M Popup "Window-Ops" Key F3 A M Resize Key F4 A M Iconify Key F5 A M Move Key F6 A M Module FvwmWinList Key F7 A M Next [*] focus Key F8 A M Prev [*] focus Key F10 A A Next [CurrentDesk rxvt]Focus Key F11 A A Prev [CurrentDesk rxvt]Focus Key F15 FTIWS A Raise # My key-bindings Key Tab A M Next [*] focus Key Tab A SM Prev [*] focus Key a A M Exec exec xterm -j -geometry 80x50+250+20 -sb -sl 5000 -e tcsh & Key b A M Exec exec ~/bin/bbs & Key q A CM quit key q A SM restart fvwm Mouse 1 R A Menu Utilities Nop Mouse 2 R A Menu Window-Ops Nop Mouse 3 R A WindowList Mouse 0 1 A Menu Window-Ops2 Close Mouse 0 2 A Maximize-Func Mouse 0 4 A Iconify Mouse 1 F A Resize-or-Raise Mouse 1 TS A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 2 I A Iconify Mouse 2 FST A Menu Window-Ops2 Nop Mouse 3 TSIF A RaiseLower ########################Initialization Functions ############################ #AddToFunc InitFunction #"I" Module FvwmButtons #+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 #+ "I" exec xsetroot -solid steelblue AddToFunc RestartFunction #"I" Module FvwmButtons #+ "I" exec xsetroot -mod 2 2 -fg \#554055 -bg \#705070 #+ "I" exec xsetroot -solid steelblue ########################Menus ######################################## AddToMenu Animations "Animations" Title + "Flame" Exec exec xlock -remote -inroot -mode flame & + "Grav" Exec exec xlock -remote -inroot -mode grav & + "Pyro" Exec exec xlock -remote -inroot -mode pyro & + "Qix" Exec exec xlock -remote -inroot -mode qix & + "Rock" Exec exec xlock -remote -inroot -mode rock & #this one dumps core, let's comment it out for now. #+ "Spiral Exec exec xlock -remote -inroot -mode spiral & + "Spline" Exec exec xlock -remote -inroot -mode spline & + "Swarm" Exec exec xlock -remote -inroot -mode swarm & + "Worm" Exec exec xlock -remote -inroot -mode worm & # Stop the animation in the background + "Make it stop" Exec exec kill -9 $(ps aux | grep xlock | grep -v grep | awk '{print $2}') + "Reset BG" Exec exec xsetroot -solid steelblue AddToMenu Terminals "Terminals" Title + "Tallterm" Exec exec xterm -j -g 80x50+250+20 -sb -sl 5000 -e tcsh & + "Xterm" Exec exec xterm -j -sb -sl 5000 -e tcsh & + "8x16 Xterm" Exec exec xterm -j -sb -sl 5000 -fn 8x16 -e tcsh & + "8x16 Tallterm" Exec exec xterm -j -g 80x50 -sb -sl 5000 -fn 8x16 -e tcsh & AddToMenu RemHosts "Remote Hosts" Title + "Echo" Exec exec xterm.old -j -geometry 80x50+250+20 -sb -sl 5000 -e telnet echonyc.com & + "Drizzle" Exec exec xterm.old -j -geometry 80x50+250+20 -sb -sl 5000 -e telnet drizzle.com & + "Orion" Exec exec xterm.old -j -geometry 80x50+250+20 -sb -sl 5000 -e telnet orion.ac.hmc.edu & + "Calvin" Exec exec xterm.old -j -geometry 80x50+250+20 -sb -sl 5000 -e telnet calvin.pitzer.edu & AddToMenu Console "Console" Title + "Cd Player" Exec exec xcdplayer & + "Mixer" Exec exec xmix & + "Sysinfo" Exec exec xsysinfo -nonfs & AddToMenu Misc "Misc" Title + "Crontab" Exec exec xterm.old -g 80x12 -e crontab -e & + "Galaga" Exec exec xgal & + "Pine" Exec exec xterm.old -g 80x50+200+20 -e /usr/home/ben/bin/xpine & + "Top" Exec exec xterm.old -j -geometry 80x50 -T Top -n Top -e top & + "Calculator" Exec exec xcalc & + "Fractal" Exec exec nice -15 imsmap -install -root -ncolors 163 -timeout 30 & + "Make it stop" Exec exec kill -9 $(ps aux | grep imsmap | grep -v grep | awk '{print $2}') AddToMenu Utilities "Utilities" Title + "Terminals" Popup Terminals + "" Nop + "Remote Hosts" Popup RemHosts + "" Nop + "Xemacs" Exec exec xemacs & + "BBS" Exec exec ~/bin/bbs & + "Netscape" Exec exec netscape -geometry +220+10 & + "" Nop + "Console" Popup Console + "" Nop + "Animations" Popup Animations + "" Nop + "Misc" Popup Misc + "" Nop + " " Nop + "" Nop + "Exit Fvwm" Popup Quit-Verify AddToMenu Window-Ops "Window Ops" Title + "Move" Move-or-Raise2 + "Resize" Resize-or-Raise2 + "Raise" Raise + "Lower" Lower + "(De)Iconify" Iconify + "(Un)Stick" Stick + "(Un)Maximize" maximize_func + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "Refresh Screen" Refresh AddToMenu Window-Ops2 "Move" Move-or-Raise + "Resize" Resize-or-Raise + "Raise" Raise + "Lower" Lower + "Iconify" Iconify + "(Un)Stick" Stick + "" Nop + "Delete" Delete + "Close" Close + "Destroy" Destroy + "" Nop + "ScrollBar" Module FvwmScroll 2 2 + "Print" PrintFunction AddToMenu Remote-Logins "dopey" Exec rsh dopey rxvt -display $HOSTDISPLAY & + "snoopy" Exec rsh snoopy rxvt -display $HOSTDISPLAY & + "grumpy" Exec rsh grumpy rxvt -display $HOSTDISPLAY & + "happy" Exec rsh happy rxvt -display $HOSTDISPLAY & + "bailey" Exec rsh bailey rxvt -display $HOSTDISPLAY & + "barnum" Exec rsh barnum rxvt -display $HOSTDISPLAY & + "joker" Exec rsh joker rxvt -display $HOSTDISPLAY & + "signal" Exec rxterm signal #AddToMenu Module-Popup "Modules" Title #+ "Button-Bar" Module FvwmButtons #+ "Clean-Up" Module FvwmClean #+ "Identify" Module FvwmIdent #+ "SaveDesktop" Module FvwmSave #+ "Debug" Module FvwmDebug #+ "Pager" Module FvwmPager 0 1 #+ "WinList" Module FvwmWinList #+ "Background" Module FvwmBacker #+ "IconBox" Module FvwmIconBox #+ "Banner" Module FvwmBanner #+ "Talk" Module FvwmTalk #+ "Prompt" Module FvwmPrompt "hello" raise AddToMenu Quit-Verify "Really Quit Fvwm?" Title + "Restart Fvwm" Restart fvwm + "" Nop + " " Nop + "" Nop + "Yes, Really Quit" Quit #+ "Start twm" Restart twm #+ "Start mwm" Restart mwm #+ "Start olwm" Restart /usr/openwin/bin/olwm #+ "Start tvtwm" Restart tvtwm #+ "Start dummy" Restart xterm #+ "" Nop #+ "No, Don't Quit" Nop ########################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 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 Iconify-and-Raise "I" Iconify + "I" Raise ################## FvwmButtons button-bar ################################ # Colors *FvwmButtonsFore Black *FvwmButtonsBack #908090 # Font *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* # Geometry - really likes to pick its own size, but giving a position is OK *FvwmButtonsGeometry -1-1 # Layout: specify rows or columns, not both *FvwmButtonsRows 2 # xterm or rxvts on remote machines can be done like this # Output re-direction is csh style, not sh style # You will want to substitute your own hosts here! #*FvwmButtons Dopey rterm.xpm Exec "XTerm" rsh dopey "exec rxvt -T dopey -display $HOSTDISPLAY &/dev/null & "& #*FvwmButtons Grumpy rterm.xpm Exec "XTerm" rsh grumpy "exec rxvt -T grumpy -display $HOSTDISPLAY &/dev/null & "& #*FvwmButtons Snoopy rterm.xpm Exec "XTerm" rsh snoopy "exec rxvt -T snoopy -display $HOSTDISPLAY &/dev/null & "& #*FvwmButtons signal rterm.xpm Exec "XTerm" rxterm signal & #*FvwmButtons mail mail2.xpm Function MailFunction xmh "-font fixed" #*FvwmButtons whatever clock.xpm Swallow "Clock" Exec rclock -bg \#908090 -geometry -1500-1500 -font -*-times-*-r-*-*-17-*-*-*-*-*-*-* -mailupdate 10 & #*FvwmButtons(4x1) - whatever Swallow "FvwmPager" Module FvwmPager 0 3 ########################## Window-Identifier ############################### # Just choose colors and a fonts *FvwmIdentBack MidnightBlue *FvwmIdentFore Yellow *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ########################### Pager ######################################### *FvwmPagerBack #908090 *FvwmPagerFore #484048 *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-* *FvwmPagerHilight #cab3ca *FvwmPagerGeometry -1-1 *FvwmPagerLabel 0 Misc *FvwmPagerLabel 1 Maker *FvwmPagerLabel 2 Mail *FvwmPagerLabel 3 Matlab *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*" -