### Fvwm setup by matsu@utappc2.phys.s.u-tokyo.ac.jp ### ### Paths ### ModulePath /usr/X11R6/lib/X11/fvwm/:/usr/local/lib/X11/fvwm/ PixmapPath /usr/include/X11/pixmaps/:/usr/include/X11/3dpixmaps/:/usr/local/mini-icons/:/usr/include/X11/bitmaps/:/usr/local/icons/ ### Colours ### HiForeColor black HiBackColor gold3 MenuForeColor black MenuBackColor gray65 ### Fonts ### Font -adobe-helvetica-*-r-normal-*-12-* WindowFont -adobe-helvetica-*-r-normal-*-12-* IconFont -adobe-helvetica-*-r-normal-*-10-* ### Icons and Placement options ### StubbornIconPlacement StickyIcons IconBox 610 120 718 900 SmartPlacement #StubbornPlacement #SuppressIcons #RandomPlacement #AutoPlaceIcons ### Pager ### DeskTopSize 3x3 DeskTopScale 23 ### Other Options ### Lenience EdgeScroll 100 100 EdgeResistance 200 0 OpaqueMove 50 DecorateTransients NoPPosition AutoRaise 500 # define some complex buttons, as a list of points ButtonStyle : 1 4 75x25@0 25x25@1 50x75@1 75x20@0 ButtonStyle : 2 13 20x20@1 40x20@1 50x50@0 60x20@1 80x20@1 60x50@0 80x80@0 60x80@0 50x50@1 40x80@0 20x80@0 40x50@1 20x20@1 #MWMBorders #MWMButtons #SloppyFocus #ClickTime 150 ### Styles ### # default style Style "*" BorderWidth 5, HandleWidth 5, Color black/gray40 Style "FvwmPager" NoTitle,Sticky Style "xdaliclock" NoTitle,NoHandles,Sticky,StaysOnTop Style "FvwmBanner" NoTitle Style "GoodStuff" NoTitle, Nohandles, Sticky, WindowListSkip, BorderWidth 2 Style "LoadStuff" NoTitle,Sticky Style "xeyes" NoTitle,NoHandles,Sticky,StaysOnTop Style "XFace" StaysOnTop Style "xmailtool" NoIconTitle,StartIconic Style "xlab" NoTitle,NoIconTitle Style "*lock" NoTitle, NoHandles, Sticky, WindowListSkip Style "xbiff" NoTitle, Nohandles, Sticky, WindowListSkip, BorderWidth 2 Style "xpbiff" NoTitle, Nohandles, Sticky, WindowListSkip, BorderWidth 2 Style "header" NoTitle, Nohandles, Sticky, WindowListSkip, BorderWidth 2 Style "xcalendar" NoTitle, Nohandles, Sticky, WindowListSkip, BorderWidth 2 Style "*" Icon smallx.xpm Style "xterm" Icon xterm.xpm Style "kterm" Icon xterm.xpm Style "axe" Icon xedit_w.xpm Style "xcmap" Icon color_chart_w.xpm Style "xco" Icon colours_w.xpm Style "xfontsel" Icon fonts_w.xpm Style "Mosaic" Icon xmosaic_w.xpm Style "Netscape" Icon N2.xpm Style "Ghostview" Icon gv.xpm ### Popups Menus ### # the pops are defined before they are called Popup "win" Title "Window Ops" Refresh "Re-draw" Move "Move" Resize "Resize" Raise "Raise" Lower "Lower" Iconify "(De)Iconify" Stick "(Un)Stick" Maximize "(Un)Maximize" Maximize "(Un)Maximize Vertical" 0 100 Nop "" Close "Close" Destroy "Destroy" Delete "Delete" EndPopup Popup "Floppy" Title "Floppies" Exec "Eject" exec eject fd Exec "Format LD" exec xterm -bg LightBlue2 -geometry 41x3 -e fdformat -ldU Exec "Format HD" exec xterm -bg LightBlue2 -geometry 41x3 -e fdformat -dU EndPopup Popup "Games" Title "Games" Exec "spider" exec spider Exec "shootr" exec shoot Exec "xboard" exec xboard Exec "xsokoban" exec xsok Exec "xtetris" exec xtetris Exec "xvier" exec xvier EndPopup Popup "Demos" Title "Demos" Exec "xroach" exec xroach -rc limegreen -rgc red -speed 1 -squish Exec "blackhole" exec blackhole Exec "bubble" exec bubble Exec "melt" exec melt Exec "mel2" exec mel2 Exec "mel3" exec mel3 Exec "mori1" exec mori1 Exec "mori2" exec mori2 Exec "ransi" exec ransi Exec "slide" exec slide Exec "yasiti" exec yasiti EndPopup Popup "LoginShells" Exec "UTAPHP7" exec kterm -T "UTAPHP7" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg cadetblue2 -e rlogin utaphp7.phys.s.u-tokyo.ac.jp Exec "UTAPHP6" exec kterm -T "UTAPHP6" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp6.phys.s.u-tokyo.ac.jp Exec "UTAPHP5" exec kterm -T "UTAPHP5" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp5.phys.s.u-tokyo.ac.jp Exec "UTAPHP4" exec kterm -T "UTAPHP4" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp4.phys.s.u-tokyo.ac.jp Exec "UTAPHP3" exec kterm -T "UTAPHP3" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp3.phys.s.u-tokyo.ac.jp Exec "UTAPHP2" exec kterm -T "UTAPHP2" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp2.phys.s.u-tokyo.ac.jp Exec "UTAPHP1" exec kterm -T "UTAPHP1" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utaphp1.phys.s.u-tokyo.ac.jp Nop "" Exec "UTAPDEC0" exec kterm -T "UTAPDEC0" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin utapdec0.phys.s.u-tokyo.ac.jp Nop "" Exec "GOMORRAH" exec kterm -T "GOMORRAH" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin gomorrah.resceu.s.u-tokyo.ac.jp Exec "SODOM" exec kterm -T "SODOM" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 -e rlogin sodom.resceu.s.u-tokyo.ac.jp EndPopup Popup "Shells" Exec "Kterm (7x14 font)" kterm -sl 1000 -sb -km euc -fn 7x14 -fr 7x14 -fk kanji14 -geometry 80x30 -bg AntiqueWhite2 Exec "Kterm (8x16 font)" kterm -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30 -bg AntiqueWhite2 Exec "Kterm (12x24 font)" kterm -sl 1000 -sb -km euc -fn 12x24 -fr 12x24 -fk kanji24 -geometry 80x30 -bg AntiqueWhite2 Nop "" Exec "Xterm (7x14 font)" xterm -sb -sl 1000 -j -ls -fn 7x14 -geometry 80x30 -bg AntiqueWhite2 Exec "Xterm (8x16 font)" xterm -sb -sl 1000 -j -ls -fn 8x16 -geometry 80x30 -bg AntiqueWhite2 Exec "Xterm (12x24 font)" xterm -sb -sl 1000 -j -ls -fn 12x24 -geometry 80x30 -bg AntiqueWhite2 Nop "" Exec "Color Xterm (7x14 font)" color_xterm -sb -sl 1000 -j -ls -fn 7x14 -fb 7x14bold -title "Color Xterm" Exec "Color Xterm (8x16 font)" color_xterm -sb -sl 1000 -j -ls -fn 8x16 -fb 7x14bold -title "Color Xterm" Exec "Color Xterm (12x24 font)" color_xterm -sb -sl 1000 -j -ls -fn 12x24 -fb 7x14bold -title "Color Xterm" EndPopup Popup "Editors" Exec "Mule (7x14 font)" exec mule -i -font 7x14 -geometry 80x41 -bg palegreen& Exec "Mule (8x16 font)" exec mule -i -font 8x16 -geometry 80x35 -bg palegreen& Exec "Mule (12x24 font)" exec mule -i -font 12x24 -geometry 80x27 -bg palegreen& Exec "XEdit" exec xedit -bg palegreen& EndPopup Popup "Communications" Exec "Netscape3.0" exec netscape3.0 -install Exec "Netscape4.0" exec netscape -install Exec "XArchie" exec xarchie Exec "xftp" exec xftp Exec "xmh" exec xmh Exec "OPAC" exec xterm -T 'OPAC at the Library' -bg black -fg green -e telnet opac EndPopup Popup "Drawings" Exec "Draw Tool" exec drawtool -font 8x16 -geometry 800x700 Exec "Graph Draw" exec graphdraw -font 8x16 -geometry 800x700 Exec "GNU plot" exec kterm -T "GNU plot" -name GNUplot -font 8x16 -e gnuplot Exec "Xpaint" exec xpaint EndPopup Popup "Root" Exec "black" exec xsetroot -solid black Exec "xearth" exec xearth Exec "hannya full" exec xsetroot -bitmap /home/matsu/xbm/hs.xbm -fg black -bg darkolivegreen3 Exec "hannya half" exec xsetroot -bitmap /home/matsu/xbm/hshalf.xbm -fg black -bg darkolivegreen3 Exec "hannya quart" exec xsetroot -bitmap /home/matsu/xbm/hsquart.xbm -fg black -bg darkolivegreen3 Exec "hyotantsugi" exec xsetroot -bitmap /home/matsu/xbm/hyotantsugi.xbm -fg black -bg darkolivegreen3 Exec "maruko2" exec xsetroot -bitmap /home/matsu/xbm/maruko2.xbm -fg black -bg darkolivegreen3 Exec "maruko3" exec xsetroot -bitmap /home/matsu/xbm/maruko3.xbm -fg blueviolet -bg blanchedalmond Exec "wood" exec xpmroot /home/matsu/xbm/wood.xpm Nop "" Exec "Browse" exec xbmbrowser /home/matsu/xbm EndPopup Popup "utils" Title "Utilities" Popup "LoginShells" LoginShells Popup "Shells" Shells Popup "Editors" Editors Popup "Communications" Communications Popup "Drawings" Drawings Popup "Games" Games Popup "Demos" Demos Popup "Root" Root Popup "Floppy" Floppy Nop "" Exec "xclipboard" exec xclipboard Exec "xdu" exec du | xdu Exec "xman" exec xman EndPopup Popup "Module-Popup" Title "Modules" Module "GoodStuff" GoodStuff Module "Clean-Up" FvwmClean Module "Identify" FvwmIdent Module "SaveDesktop" FvwmSave Module "Debug" FvwmDebug Module "Scroll" FvwmScroll Module "Pager" FvwmPager 0 1 Module "WinList" FvwmWinList Module "FileMgr" FvwmFileMgr Module "IconBox" FvwmIconBox Module "Audio" FvwmAudio EndPopup Popup "dsk" Title "Select a desk to use" Desk "0...." 0 0 Desk "1...." 0 1 Desk "2...." 0 2 Desk "3...." 0 3 Title "" Desk "next " 1 0 Desk "previous" -1 0 EndPopup Popup "Base" Title "Fvwm Control" Popup "Modules" Module-Popup Popup "switch desktops" dsk WindowList "Window List" Refresh "Refresh" Restart "Restart Fvwm" fvwm Nop "" Delete "Delete" Close "Close" Destroy "Destroy" Nop "" Quit "Exit" Nop "" EndPopup Popup "logins" Title "Logins " Exec "Local" exec mxterm -T local -xrm "MXTerm*background: yellow2" Exec "Lily" exec rsh lily mxterm -bg burlywood Exec "Holly" exec rsh holly mxterm -bg greenyellow Exec "Crocus" exec rsh crocus mxterm -T crocus -bg lightsteelblue # put any other logins here, such as DCS accounts # Exec "matcha@stone" exec xrsh -l matcha stone xterm -title stone Nop "" EndPopup ### Functions ### Function "Move-or-Raise" Raise "Motion" Move "Motion" Raise "Click" EndFunction Function "Move-or-Lower" Move "Motion" Lower "Motion" Lower "Click" RaiseLower "DoubleClick" EndFunction Function "Resize-or-Raise" Resize "Motion" Raise "Motion" Raise "Click" RaiseLower "DoubleClick" EndFunction Function "Move-or-Iconify" Move "Motion" #PopUp "Click" win Iconify "Click" EndFunction # this is called when fvwm is first run Function "InitFunction" # Exec "I" exec xsetroot -bitmap /home/matsu/xbm/hshalf.xbm -fg black -bg darkolivegreen3 Exec "I" exec xearth Module "I" GoodStuff Wait "I" GoodStuff Module "I" FvwmPager 0 0 Exec "I" exec xeyes -geometry 50x25+400+2 -outline gray65 Exec "I" exec xdaliclock -24 -noseconds -shape -bg gray20 -fg gray20 -font "-*-new century schoolbook-*-r-*-*-24-*" -geometry +379+44 Exec "I" exec kterm -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30+10+100 -bg AntiqueWhite2 Exec "I" exec mule -i -font 8x16 -geometry 80x34+343+96 -bg palegreen Exec "I" exec xcalendar -geometry +0-0 Exec "I" exec xautolock -time 10 -locker 'xlock -install' Exec "I" exec xhost +utaphp7.phys.s.u-tokyo.ac.jp EndFunction # this is called when fvwm is restarted Function "RestartFunction" Module "I" GoodStuff Wait "I" GoodStuff EndFunction ### Mouse bindings ### # First, for the mouse in the root window. # The AnyModifier option is used 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 "win" Mouse 2 R A PopUp "utils" Mouse 3 R A PopUp "Base" # Now the title bar buttons # Button Context Modifi Function Mouse 0 1 A Iconify Mouse 0 2 A Close # Now the rest of the frame Mouse 1 FS A Function "Resize-or-Raise" Mouse 2 FS A Function "Resize-or-Raise" Mouse 1 T A Function "Move-or-Raise" Mouse 2 T A RaiseLower "Click" Mouse 3 T A PopUp "win" Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Function "Move-or-Iconify" Mouse 3 I A PopUp "win" Mouse 1 W M Function "Move-or-Raise" ### Key bindings ### # 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 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 A GotoPage 0 0 Key F2 A A GotoPage 1 0 Key F3 A A GotoPage 2 0 Key F4 A A GotoPage 0 1 Key F5 A A GotoPage 1 1 Key F6 A A GotoPage 2 1 Key F7 A A GotoPage 0 2 Key F8 A A GotoPage 1 2 Key F9 A A GotoPage 2 2 Key F10 A A Refresh "Refresh" ### GoodStuff ### *GoodStuffFore Black *GoodStuffBack gray65 *GoodStuffGeometry 1024x80+0+0 *GoodStuffRows 2 *GoodStuffFont -adobe-helvetica-*-r-normal-*-11-*-*-*-*-*-*-* # the order of these affects their position in the GoodStuff box *GoodStuff(11x2) - junk Swallow "swxterm" xterm -T swxterm -C -bg gray65 -geometry -1500-1500 +sb *GoodStuff(3x2) - junk.xpm SwallowModule "FvwmPager" FvwmPager 0 0 *GoodStuff Xlock mini-lock.xpm Exec "" xlock -install *GoodStuff(2x1) xload junk.xpm Swallow "xload" xload -nolabel -bg grey60 -update 5 -geometry -1500-1500 *GoodStuff DrawTool mini-xfig.xpm Exec "drawtool" drawtool -font 8x16 -geometry 800x700& *GoodStuff Xv mini-xv.xpm Exec "xv" xv& *GoodStuff Xcalc mini-calc.xpm Exec "Calculator" xcalc& *GoodStuff Kill mini-bomb.xpm Destroy *GoodStuff GhostView mini-gv.xpm Exec "ghostview" ghostview& *GoodStuff HP7 mini-ftp.xpm Exec "HP7" kterm -T "UTAPHP7" -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30+50+150 -bg cadetblue2 -e rlogin utaphp7.phys.s.u-tokyo.ac.jp& *GoodStuff Netscape mini-nscape.xpm Exec "Netscape" netscape -install& *GoodStuff Xterm mini-term.xpm Exec "XTerm" color_xterm -ls -sb -fn 8x13 -geometry 80x30+50+150 -title "xterm"& *GoodStuff Kterm mini-term.xpm Exec "KTerm" kterm -sl 1000 -sb -km euc -fn 8x16 -fr 8x16 -fk kanji16 -geometry 80x30+50+150 -bg AntiqueWhite2& *GoodStuff Mule mini-edit.xpm Exec "Mule" mule -i -font 8x16 -geometry 80x35 -bg AntiqueWhite2& *GoodStuff Xfm mini-filemgr.xpm Exec "Xfm" xfm -title "File Manager"& *GoodStuff Xcolsel mini-colors.xpm Exec "Xcolorsel" xcolorsel& *GoodStuff Mathematica mini-math.xpm Exec "Mathematica" mathematica -geometry 50+150 & *GoodStuff ScrSaver mini.xlock.xpm Exec "" xlock -nolock -install *GoodStuff Xarchie mini.xarchie.xpm Exec "xarchie" xarchie& *GoodStuff - junk.xpm Swallow "xpbiff" xpbiff -geometry -1500-1500 -popup_geometry +0+0& *GoodStuff - clock.xpm Swallow "xclock" xclock -bg \#908090 -geometry -1500-1500 -padding 0& ### 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+0 ### Pager ### *FvwmPagerBack gray65 *FvwmPagerFore black *FvwmPagerFont none *FvwmPagerHilight gray75 *FvwmPagerGeometry -1500-1500 *FvwmPagerLabel 0 FvwmPager *FvwmPagerLabel 1 Reserve *FvwmPagerSmallFont 5x8 ### Window-Identifier ### *FvwmIdentBack gray65 *FvwmIdentFore black *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-* ### Icon-Box ### *FvwmIconBoxIconBack #cfcfcf *FvwmIconBoxIconHiFore black *FvwmIconBoxIconHiBack LightSkyBlue *FvwmIconBoxBack #5f9ea0 *FvwmIconBoxFore blue *FvwmIconBoxGeometry 5x1+0+0 *FvwmIconBoxMaxIconSize 64x38 *FvwmIconBoxFont -adobe-helvetica-medium-r-*-*-11-*-*-*-*-*-*-* *FvwmIconBoxSortIcons *FvwmIconBoxPadding 4 *FvwmIconBoxLines 5 *FvwmIconBoxPlacement Left Top *FvwmIconBoxPixmap wood.xpm # mouse bindings *FvwmIconBoxMouse 1 Click RaiseLower *FvwmIconBoxMouse 1 DoubleClick Iconify *FvwmIconBoxMouse 2 Click Iconify -1, Focus *FvwmIconBoxMouse 3 Click Module "FvwmIdent" FvwmIdent *FvwmIconBox "*" atom.xpm *FvwmIconBox "Fvwm*" fvwm.xpm *FvwmIconBox "xterm" xterm.xpm