这是台老机器(非常经典的IBM ThinkPad 600X),用来写程序还是不错的。
# This file is copied to a new user's FVWM_USERDIR by FvwmForm-Setup form.
# This file contains the commands fvwm reads while starting.
#
EdgeResistance 250 10
EdgeScroll 0 0
ClickTime 750
ImagePath /usr/X11R6/share/fvwm/pixmaps
DeskTopSize 4x1
MenuStyle * Mwm, Foreground lightgrey, Background rgb:9f/45/5, Greyed lightgrey
MenuStyle * Font "StringEncoding=utf-8:xft:simsun:size=9:iso10646-1"
ColormapFocus FollowsMouse
# default Styles:
# make sure these fonts exist on your system:
Style * Font "StringEncoding=utf-8:xft:simsun:size=10:iso10646-1"
Style * IconFont "StringEncoding=utf-8:xft:simsun:size=9:iso10646-1"
Style * HilightFore lightgrey, HilightBack rgb:9f/45/5
Style * BorderWidth 5, HandleWidth 5
Style * Icon Monitor.xpm, Color lightgrey/rgb:80/80/80
Style * MWMFunctions, MWMDecor, HintOverride
Style * DecorateTransient, NoPPosition
Style * IconBox 0 -10 -280 -1
Style * SloppyFocus, ClickToFocusPassesClick
Style * TileCascadePlacement
Style * EWMHUseStackingOrderHints
# Styles for various Fvwm modules:
Style Fvwm* Sticky, WindowListSkip
Style Fvwm* BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style FvwmPager StaysOnTop, BorderWidth 0, Sticky, NoTitle, NoHandles
# Styles for various common programs:
Style *clock NoTitle, NoHandles, Sticky, WindowListSkip, StaysOnTop, BorderWidth 0, NeverFocus, NoLenience
Style top NoTitle, NoHandles, Sticky, WindowListSkip, BorderWidth 0, NeverFocus, NoLenience, Layer 0
Style xapm NoTitle, NoHandles, Sticky, WindowListSkip, StaysOnTop, BorderWidth 0, NeverFocus, NoLenience
Style xcalc Icon xcalc.xpm, NoButton 2,ClickToFocus
Style xman Icon xman.xpm, ClickToFocus
Style Console Icon Monitor.xpm, Sticky, WindowListSkip, StaysOnTop, CenterPlacement
# some simple default key bindings:
Key 1 A M GotoPage 0 0
Key 2 A M GotoPage 1 0
Key 3 A M GotoPage 2 0
Key 4 A M GotoPage 3 0
Key Print A A Exec scrot
Key F1 A M Menu MenuFvwmRoot Nop
#Key F2 A M Module FvwmConsole
Key F4 A M Current Close
Key F5 A A Refresh
Key F7 A A Exec urxvt -fn "xft:simsun:size=10" -name Console -sl 3000
Key Tab A M WindowList NoGeometryWithInfo, NoCurrentDeskTitle, SortByClass
# some simple default mouse bindings:
# for the root window:
Mouse 1 R A
Mouse 3 R A Menu MenuFvwmRoot Nop
# for the title bar buttons:
Mouse 0 1 A Menu MenuFvwmWindowOps2 Close
Mouse 0 2 A FuncFvwmMaximize
Mouse 0 4 A Iconify
# for other parts of the window/borders/icons:
Mouse 1 FS A FuncFvwmResizeOrRaise
Mouse 1 T A FuncFvwmMoveOrRaise
Mouse 1 I A FuncFvwmMoveOrIconify
######################## Initialization Functions ############################
AddToFunc StartFunction
+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70
+ I Module FvwmPager 0 0
+ I exec scim -d
+ I exec ~/.fvwm/xclock -geometry 150x19+874+749 -padding 3 -bg rgb:70/50/70 -fg rgb:10/ff/10 -norender
+ I wait xclock
#+ I exec xapm -percentauto -geometry x19+770+749 -bg rgb:70/55/70 -fg rgb:10/ff/10 -font 6x13
#+ I exec urxvtd -q
+ I exec urxvt -ip +sb -geometry +1+1 -fg rgb:80/80/80 -font 6x13 -name top -e systat -vm 3
+ I wait top
+ I exec stardict
+ I wait stardict
+ I All (StarDict) Iconify
+ I Refresh
AddToFunc InitFunction
#+ I exec xsetroot -mod 2 2 -fg rgb:55/40/55 -bg rgb:70/50/70
AddToFunc ExitFunction
+ I All (xapm) Close
+ I All (top) Close
+ I All (*clock) Close
+ I All (scim) Close
+ I All (stardict) Close
+ I All (urxvtd) Close
+ I All (xsetroot) Close
######################## Menus ###################
Read /etc/X11/fvwm/menudefs.hook Quiet
Read menudefs.hook Quiet
DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot "$[gt.Root Menu]" Title
+ "$[gt.Rxvt]" Exec urxvt -fn "xft:simsun:size=10"
+ "$[gt.Emacs]" Exec emacs
+ "" Nop
+ "$[gt.Applications]" Popup MenuApplications
+ "" Nop
+ "$[gt.Fvwm Window Ops]" Popup MenuFvwmWindowOps
+ "" Nop
+ "$[gt.Exit Fvwm]" Popup MenuFvwmQuitVerify
DestroyMenu MenuApplications
AddToMenu MenuApplications
+ "$[gt.Firefox]" Exec firefox
+ "$[gt.Gaim]" Exec gaim
+ "" Nop
+ "$[gt.Emacs]" Exec emacs
+ "" Nop
DestroyFunc FuncFvwmWindowCommon
AddToFunc FuncFvwmWindowCommon
+ I AddToMenu $0 "$[gt.&Move]" Move
+ I AddToMenu $0 "$[gt.&Resize]" Resize
+ I AddToMenu $0 "$[gt.&Stick]" Stick
+ I AddToMenu $0 "" Nop
+ I AddToMenu $0 "$[gt.Move&To]" Popup MenuMoveToPage
+ I AddToMenu $0 "$[gt.&Close]" Close
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps "$[gt.Window Ops]" Title
FuncFvwmWindowCommon MenuFvwmWindowOps
DestroyMenu MenuFvwmWindowOps2
AddToMenu MenuFvwmWindowOps2
FuncFvwmWindowCommon MenuFvwmWindowOps2
DestroyMenu MenuMoveToPage
AddToMenu MenuMoveToPage
+ "Page 0" MoveToPage 0 0
+ "Page 1" MoveToPage 1 0
+ "Page 2" MoveToPage 2 0
+ "Page 3" MoveToPage 3 0
DestroyMenu MenuFvwmQuitVerify
AddToMenu MenuFvwmQuitVerify "$[gt.Really Quit Fvwm?]" Title
+ "$[gt.Restart Fvwm]" Restart
+ "" Nop
+ "$[gt.Quit Session]" Quit
+ "" Nop
+ "$[gt.Reboot]" Exec sudo /sbin/init 6
+ "$[gt.Shutdown]" Exec sudo /sbin/init 0
######################## Sample Functions ##########################
DestroyFunc FuncFvwmMoveOrRaise
AddToFunc FuncFvwmMoveOrRaise
+ I Raise
+ M Move
+ D Lower
DestroyFunc FuncFvwmMaximize
AddToFunc FuncFvwmMaximize
+ C Maximize 100 98
+ D Maximize 100 100
DestroyFunc FuncFvwmMoveOrIconify
AddToFunc FuncFvwmMoveOrIconify
+ I Raise
+ M Move
+ D Iconify
DestroyFunc FuncFvwmResizeOrRaise
AddToFunc FuncFvwmResizeOrRaise
+ I Raise
+ M Resize
+ D Lower
############################### Pager #########################################
DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 150x19+725+749
*FvwmPager: Rows 1
*FvwmPager: Columns 1
*FvwmPager: Back rgb:70/50/70
*FvwmPager: Fore rgb:55/40/55
*FvwmPager: Font none
*FvwmPager: Hilight rgb:10/ff/10
*FvwmPager: DeskHilight
*FvwmPager: SmallFont 5x8
###############################################################################