########################################################################### # set up the colors # this is used for non-selected windows, menus, and the panner StdForeColor Black StdBackColor #60a0c0 # this is used for the selected window HiForeColor Black HiBackColor #c06077 PagerBackColor #5c54c0 PagerForeColor orchid StickyForeColor Black StickyBackColor #60c0a0 # Menu colors MenuForeColor Black MenuBackColor grey MenuStippleColor SlateGrey ############################################################################ # Now the fonts - one for menus, another for window titles, another for icons #Font -*-times-medium-i-*-*-*-120-*-*-*-*-*-* Font k14,7x14 #KanjiFont k14 WindowFont k14,7x14,-adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-* IconFont fixed ######################## ICON STUFF ############################## # 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. IconBox -70 1 -1 -140 # If you uncomment this, and make sure that the WindowList is bound to # something, it works pretty much like an icon manager. #SuppressIcons ######################## MISCELLANEOUS STUFF ####################### # flip by whole pages on the edge of the screen. #EdgeScroll 100 100 EdgeScroll 10 10 # 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 EdgeResistance 0 50 ######################## WINDOW PLACEMENT ####################### # SmartPlacement makes new windows pop-up in blank regions of screen if possible, # otherwise falls back to random or interactive placement. SmartPlacement # NoPPosition instructs fvwm to ignore the PPosition field in window geometry hints. # Emacs annoyingly sets PPosition to (0,0)! NoPPosition ######################## DECORATIONS ####################### # Width of decorations on otherwise undecorated windows: NoBoundaryWidth 3 # Width of side-bars on decorated windows: BoundaryWidth 4 ########################################################################### # Set up the virtual desktop and pager #set the desk top size in units of physical screen size DeskTopSize 3x3 # and the reduction scale used for the panner/pager #DeskTopScale 32 DeskTopScale 28 # Use the Fvwm Pager Pager -1 -1 ############################################################################ # list the windows that don't want a title bar NoTitle Fvwm Pager NoTitle xclock NoTitle xload NoTitle xbiff NoTitle xeyes ########################################################################### # Here's where I could list NoBorder windows that don't get frames. # If a window shows up with NoTitle and NoBorder, it gets a simple frame # whose width is specified by the NoBoundaryWidth option (can be 0). # # When windows are NoBordered, they look a bit like twm is handling them #NoBorder Clock ########################################################################## # now the windows that "Stick to the glass", ie don't scroll with the # desktop # The pager is automatically sticky Sticky xclock Sticky xload Sticky xeyes Sticky xbiff Sticky Fvwm Pager ############################################################################ # 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 Fvwm Pager ############################################################################ # now list windows that don't need to show up in the window list #WindowListSkip Clock ############################################################################ # define some common icon bitmaps PixmapPath /usr/X11R6/include/X11/pixmaps/ IconPath /usr/X11R6/include/X11/bitmaps/ Icon "rxvt" term.xpm Icon "xterm" xterm.xpm Icon "Fvwm Pager" map.xpm Icon "Appointment" datebook.xpm Icon "xcalc" xcalc.xpm Icon "xbiff" mail1.xpm Icon "xmh" mail1.xpm Icon "xman" xman.xpm Icon "xvgr" graphs.xpm Icon "matlab" math4.xpm Icon "xmag" magnifying_glass2.xpm Icon "xgraph" graphs.xpm Icon "GoodStuff" toolbox.xpm Icon "" unknown1.xpm # Here are some monchrome icon bitmaps that everyone should have #Icon "rxvt" terminal #Icon "xterm" Term #Icon "kterm" KTerm #Icon "xcalc" calculator # I have included a default.xbm in the fvwm_icons subdirectory #Icon "" 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. Popup "Internet" Title "< インターネット >" Exec "自動配信" exec kterm -ls -geometry 80x5 -e /home/m-ito/provider/iij4u/etc/ppp-auto & Nop "" Exec "PPP接続" exec kterm -ls -geometry 80x5 -e /home/m-ito/provider/iij4u/etc/pppstart & Exec "PPP切断" exec /home/m-ito/provider/iij4u/etc/pppstop & Exec "PPP切断(強制)" exec /home/m-ito/provider/iij4u/etc/pppstop -f & Nop "" Exec "メール受信" exec kterm -ls -geometry 80x5 -e /home/m-ito/provider/iij4u/etc/getmail & Exec "メール送信" exec /home/m-ito/provider/iij4u/etc/putmail & Nop "" Exec "ニュース受信" exec kterm -ls -geometry 80x5 -e /home/m-ito/provider/iij4u/etc/getnews & Exec "ニュース送信" exec kterm -ls -geometry 80x5 -e /home/m-ito/provider/iij4u/etc/putnews & Nop "" Exec "xarchie" exec xarchie & Nop "" Exec "w3m" exec kterm -ls -e w3m & Exec "mozilla" exec jmozilla.sh & Exec "netscape" exec jnetscape.sh & EndPopup Popup "Terminal" Title "< ターミナル >" Exec "漢字端末(kterm)" exec kterm -ls & Nop "" Exec "英字端末(xterm)" exec xterm -ls & EndPopup Popup "Utility" Title "< 道具箱 >" # Nop "" Exec "編集(emacs)" exec emacs & Nop "" Exec "私的DOC(mydoc.sh)" exec kterm -ls -e mydoc.sh & Exec "電卓(xcalc)" exec xcalc & Exec "時計(xclock)" exec xclock & Exec "負荷(xload)" exec xload & Nop "" Exec "CD-ROMマウント" exec mount /mnt/cdrom & Exec "CD-ROMアンマウント" exec umount /mnt/cdrom & Nop "" Exec "作図(tgif)" exec tgif & Exec "作画(xpaint)" exec xpaint & Exec "画像表示(display)" exec display & Exec "画像編集(gimp)" exec gimp & Nop "" Exec "ワープロ(word.sh)" exec word.sh & Nop "" Exec "ミキサー(mixer.tk)" exec mixer.tk & Exec "MIDI(midplay.tk)" exec midplay.tk ~/sound/mid & Exec "MPEG3(mp3play.tk)" exec mp3play.tk ~/sound/mp3 & Exec "CD(workbone.sh)" exec workbone.sh & Exec "MPEG(enjoympeg)" exec enjoympeg & Nop "" Exec "画面印字×0.5" exec xhardcopy.sh -scale 0.5 & Exec "画面印字×1.0" exec xhardcopy.sh -scale 1.0 & Exec "画面印字×2.0" exec xhardcopy.sh -scale 2.0 & EndPopup Popup "ToyBox" Title "< おもちゃ箱 >" Exec "目玉" exec xeyes & Exec "エンジン" exec xengine & EndPopup Popup "DataBase" Title "< データベース >" Exec "住所録処理" exec kterm -e adrs.sh & Exec "書籍管理処理" exec kterm -e book.sh & Exec "出納帳処理" exec kterm -e money.sh & Exec "出納帳グラフ" exec kterm -e money_grp.sh & EndPopup Popup "Quit-Verify" Title "< fvwm終了 >" Quit "終了する" Restart "再実行する" fvwm Restart "twm実行" twm Nop "" Nop "終了しない" EndPopup # This menu will fire up some very common utilities Popup "Utilities" Title "< 主メニュー >" Popup "インターネット" Internet Popup "ターミナル" Terminal Popup "道具箱" Utility Popup "おもちゃ箱" ToyBox Popup "データベース" DataBase Nop "" Popup "fvwm終了" Quit-Verify Nop "" Refresh "画面再生" EndPopup # This defines the most common window operations Popup "Window Ops" Title "< オプション >" Move "移動" Resize "サイズ変更" Raise "上へ" Lower "下へ" Iconify "アイコン化" Stick "常駐化" Maximize "全画面化" Maximize "縦最大化" 0 100 Maximize "横最大化" 100 0 Nop "" Destroy "強制破壊" Delete "破壊" EndPopup # This defines the most common window operations Popup "Other Utilities" Title "副メニュー" EndPopup ############################################################################## # This defines the mouse bindings # Button : Mouse 1 # Mouse 2 # Mouse 3 # Mouse 0 ... any button # Context : R ... root window # 1 ... most left button of title # 2 ... most right button of title # 4 ... right button of title # T ... title bar # S ... side border # I ... icon # F ... corner # W ... window # Modifi : A ... any modifi # M ... alt # # First, for the mouse in the root window # Button Context Modifi Function Mouse 1 R A PopUp "Utilities" Mouse 1 R M PopUp "Other Utilities" Mouse 2 R A PopUp "Window Ops" Mouse 3 R A WindowList # maximize function Function "Maximize-func" Maximize "Click" 0 100 Maximize "DoubleClick" 100 100 EndFunction # Now the title bar buttons # Button Context Modifi Function Mouse 0 1 A PopUp "Window Ops" Mouse 0 2 A Function "Maximize-func" Mouse 0 4 A Iconify # Now the rest of the frame # Button 1 in the corner pieces, with any modifiers, gives resize or raise Mouse 1 F A Resize # move and raise function Function "move-raise" Move "Motion" Raise "Motion" Raise "Click" EndFunction # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise Mouse 1 TS A Function "move-raise" # This one moves or (de)iconifies: Function "Move-or-Iconify" Move "Motion" Iconify "DoubleClick" EndFunction # Button 1 in an icons gives move for a drag, de-iconify for a double-click, # nothing for a single click # Button 2 in an icon, w/ any modifiers, gives de-iconify Mouse 1 I A Function "Move-or-Iconify" Mouse 2 I A Iconify # Button 3 anywhere in the decoration (except the title-bar buttons) # does a raise-lower Mouse 3 TSIF A RaiseLower # Button 3 in the window, with the Modifier-1 key (usually alt or diamond) # gives Raise-Lower. Used to use control here, but that interferes with xterm Mouse 3 W M RaiseLower ############################################################################ # Now some keyboard shortcuts. # 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 # # Motif Like Setting # MWMBorders MWMButtons MWMMenus MWMDecorHints MWMFunctionHints ClickToFocus ############################################################################