附配置文件
########################################################################
##### Promethues's Fvwm2rc tiancaimouseAThotmail.com
########################################################################
ImagePath + HOME/.fvwm/icons
OpaqueMoveSize 100 # 20% ?eh? of screen size to be moved opaquely
EdgeResistance 100 5 # Resistance at edges of desks.
EdgeScroll 100 100 # Never scroll at edge of screen
XORValue 1234 # Color to use for move xors.
DeskTopSize 2x2 # Desk size is screen size * 12
Style "*" MinOverlapPlacement, ReCaptureIgnoresStartsOnPage
SnapAttraction 20 - Screen
##############################################################
####### Define a decor named Default #######################
##############################################################
AddtoDecor Default
+ Style * HilightFore white, HilightBack #004680
+ Style * Color #707038/#0032f4
+ Style * NoIcon, NoIconTitle
+ DefaultFont "-*-simsun-medium-r-*-*-16-*-*-*-*-*-*-0"
+ Style * Font Shadow=2 3 E "-*-simsun-medium-r-*-*-14-*-*-*-*-*-*-0"
# IconFont Also
+ TitleStyle Centered Height 20
+ TitleStyle Inactive CGradient 128 2 #D3D3DD 50 #9393AF 50 #515182
+ TitleStyle Active CGradient 128 2 #D3D3DD 50 #8C8CE7 50 #2D2DD5
+ TitleStyle -- flat
+ ButtonStyle 1 5 25x75@0 25x25@0 50x50@0 75x25@0 75x75@0
+ ButtonStyle 2 Active Pixmap max.png
+ ButtonStyle 2 Inactive Pixmap max_inactive.png
+ ButtonStyle 4 Active Pixmap min.png
+ ButtonStyle 4 Inactive Pixmap min_inactive.png
+ ButtonStyle 6 Active Pixmap close.png
+ ButtonStyle 6 Inactive Pixmap close_inactive.png
+ ButtonStyle All (-- UseTitleStyle flat)
+ MenuStyle * MenuFace DGradient 128 2 #5070a8 50 #003264 50 #001932, Animation
+ MenuStyle * ActiveFore brown, Foreground white, PopupImmediately, Hilight3DOff
+ MenuStyle * MenuColorset 5
+ MenuStyle * Font "-*-simsun-medium-r-normal-*-16-*-*-*-*-*-*-0"
# Now for some more custom stuff
+ Style "Fvwm*" NoTitle, NoHandles, Sticky, WindowListSkip
+ Style "panel" NoTitle, NoHandles, Sticky, WindowListSkip
+ Style "*" SloppyFocus, DecorateTransient
+ Style "*" HandleWidth 3
+ Style "*" NoPPosition
+ Style "*" ResizeOpaque
################################################################
####### Windows which start on specific desks/pages #########
################################################################
+ Style "Mozilla*" StartsOnPage 1 0 0, SkipMapping
+ Style "*Opera*" StartsOnPage 1 1 1, SkipMapping
+ Style "QTerm*" StartsOnPage 1 1 0,SkipMapping
+ Style "X-Chat*" StartsOnPage 1 0 1,SkipMapping
+ Style "Xpdf*" StartsOnPage 4, SkipMapping
+ Style "*" WindowShadeSteps 1
+ Style "XMMS*" StartsOnPage 4 1 1,NoTitle,SkipMapping
+ Style "*GQview*" StartsOnPage 3 1 0,SkipMapping
+ Style "*" BorderWidth 1, HandleWidth 1
+ Style "xterm" SkipMapping
+ Style "*rxvt*" SkipMapping,BorderWidth 0,HandleWidth 0
+ Style "FvwmPager" StaysOnBottom,WindowListSkip,BorderWidth 1,HandleWidth 1,NeverFocus,Nolenience,MoveByProgramMethod IgnoreGravity
+ Style "FvwmButtons" StaysOnBottom,WindowListSkip,BorderWidth 0,HandleWidth 0,NeverFocus,NoLenience
+ Style "*Mplayer" StartsOnPage 4 1 1,SkipMapping
+ Style "*emacs*" StartsOnPage 2 0 0,SkipMapping
+ Style "*Gimp*" StartsOnPage 3 1 0,SkipMapping,RaiseTransient,LowerTransient,StackTransientParent
+ Style "StarSuite 7" StartsOnPage 3 0 0,SkipMapping
+ Style "Stardict" StartsOnPage 3 1 1 ,SkipMapping
+ Style "WordNet*" StartsOnPage 3 1 1,SkipMapping
+ Style "Adobe Reader" StartsOnPage 3 0 0,SkipMapping
+ Style "173319950 " StartsOnPage 1 0 1,SkipMapping
+ Style "14206101 " StartsOnPage 1 0 1,SkipMapping
+ Style "gkrellm" Sticky,WindowListSkip,NeverFocus,StaysOnBottom,NoTitle,MoveByProgramMethod IgnoreGravity
#Style * UseStyle Default
#############################################################
########### what to do on staringup or exiting #############
#############################################################
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons PanelBar
+ I Module FvwmPager 0 4
+ I Exec exec gkrellm -geometry +0+0
AddToFunc "InitFunction"
+ I Exec exec xmodmap
+ I Module FvwmAuto 100
+ I Exec exec xplanet -longitude 120.06 -latitude 30.52 -transparency -config ~/.xplanet/config/config -starmap BSC -pango -font simsun.ttc -radius 40 -range 3 -log_magstep 0.6 -rotate -5 -origin moon
+ I Exec exec xscreensaver -no-splash
+ I Exec exec gnome-settings-daemon
AddToFunc "RestartFunction"
+ "I" Module FvwmAuto 100
AddToFunc "ExitFunction"
+ I All (xscreensaver) Close
+ I All (gkrellm) Close
+ I All (xplanet) Close
+ I All (gnome-settings-daemon) Close
#########################################################
########## functions used later #######################
#########################################################
AddToFunc CloseOrNot
+ C Silent Close
+ M Nop
AddToFunc MoveToDeskWith
+ I MoveToDesk $0 $1
+ I Desk $0 $1
AddToFunc ComeHere
+ I MoveToPage
+ I Iconify off
#########################################################
######### All of the Menus ############################
#########################################################
##############################################################
##############################################################
# This is the root menu ivoked when you press mouse1 in the root window
AddToMenu "Rootmenu" "promethues" Title
+ "&Rxvt%rxvt.png%" Exec exec crxvt-gb +sb -fm -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-* -fn 7x14 -fg white -bg black -geometry 72x25
+ "&Nautilus%nautilus.png%" Exec exec nautilus --no-desktop --browser
+ "&Gnome-control-center%gnome-control-center.png%" Exec exec gnome-control-center
+ "&Debian%debian.png%" Popup /Debian
+ "& rograms%program.png" Popup " rogram-Popup"
+ "&Desktop%desktop.png%" Popup "Desktop-Popup"
+ "" Nop
#+ "&Fvwm Modules" Popup "Module-Popup"
+ "" Nop
#+ "Lock_Saver" Menu Lock_Saver
+ "&Lock%lock.png%" Exec exec xscreensaver-command -lock
+ "" Nop
+ "&WindowList%windowlist.png" WindowList
+ "" Nop
+ "Exit Fvwm%exit.png%" Popup "Quit-Verify"
###############################################################
#This is the menu popups from the root menu containing most frequently used softwares or something else
AddtoMenu " rogram-Popup"
+ "&Internet%internet.png%" Popup "Internet-Popup"
+ "&Multimedia%multimedia.png%" Popup " layer-Popup"
+ "&Graphics%graphic.png%" Popup "Graphics-Popup"
+ "&Office%office.png%" Popup "Office-Popup"
+ "&Editor%editor.png%" Popup "Editor-Popup"
+ "&Learn%learn.png%" Popup "Learn-Popup"
+ "Game%game.png%" Popup "Game-Popup"
#This is the submenu of " rograms" containing the Internet softwares
AddtoMenu "Internet-Popup"
+ "&Opera%opera.png%" Exec exec opera
+ "&Firefox%firefox.png%" Exec exec firefox
+ "&Qterm%qterm.png%" Exec exec qterm
+ "&Xchat%xchat.png%" Exec exec xchat
+ "&LumaQQ%lumaqq.png%" Exec exec aoss ~/LumaQQ/lumaqq
+ "&Gnomemeeting%gnomemeeting.png%" Exec exec gnomemeeting
#This is the submenu of " rograms" containing the multimedia players
AddtoMenu " layer-Popup"
+ "&Xmms%xmms.png%" Exec exec xmms
+ "&Mplayer%mplayer.png%" Exec exec gmplayer
#This is the submenu of " rograms" containing the graphic tools
AddtoMenu "Graphics-Popup"
+ "&Gimp%gimp.png%" Exec exec gimp
+ "Gq&view%gqview.png%" Exec exec gqview
#This is the submenu of " rograms" containing the office tools
AddtoMenu "Office-Popup"
+ "&Starsuite%starsuite.png%" Exec exec /usr/share/starsuite7/soffice
+ "&AcrobatReader%acrobat.png%" Exec exec acroread
#This is the submenu of " rograms" containing editors
AddtoMenu "Editor-Popup"
+ "&Emacs%xemacs.png%" Exec exec emacs-snapshot-unicode-gtk
#This is the submenu of "Programs" containing learning tools
AddtoMenu "Learn-Popup"
+ "&Xchm%xchm.png%" Exec exec xchm
+ "&Chmsee%xchm.png%" Exec exec chmsee
+ "&Stardict%stardict.png%" Exec exec stardict
+ "&Wordnet%wordnet.png%" Exec exec wnb
#This is the submenu of "Programs" containing games
AddtoMenu "Game-Popup"
+ "QuakeIII%quakeiii.png%" Exec exec quake3
+ "xwelltris" Exec exec xwelltris
+ "DiabloII-cn%diablo.png%" Exec exec cedega /mnt/hda1/Program\ Files/diabloII1.10/D2Loader.exe -w -pdir d2cn -direct
+ "DiabloII-en%diablo.png%" Exec exec cedega /mnt/hda1/Program\ Files/diabloII1.10/D2Loader.exe -w -direct -ns -locale eng
################################################################
#######################################################################
#This Popups the submenu of root menu "Desktop"
AddtoMenu "Desktop-Popup"
+ "Tiling:" Nop
+ "&Veritcal" FvwmRearrange -tile -h -nostretch -noraise 0 10 100 100
+ "&Horizontal" FvwmRearrange -tile -v nostretch -noraise 0 10 100 100
+ "Auto Raise On" FvwmAuto 200 Raise Nop
+ "Auto Raise Off" KillModule FvwmAuto
+ "Backer (broken)" Module FvwmBacker
################################################################
############################################################
# This menu is invoked as a sub-menu - it allows you to quit,
# restart fvwm
AddToMenu "Quit-Verify"
+ "Really Quit ?" Title
+ "&No%no.png%" Nop
+ "&Restart%restart.png%" Restart fvwm2
+ "" Nop
+ "" Nop
+ "&Yes%yes.png%" Quit
##########################################################
###########################################################
###########################################################
# Provides a list of modules to fire off
AddToMenu "Module-Popup" "Modules" Title
+ "FvwmAnimate" FvwmAnimate
+ "FvwmAudio" FvwmAudio
+ "FvwmAuto" FvwmAuto
+ "FvwmBacker" Module FvwmBacker
+ "FvwmBanner" FvwmBanner
+ "FvwmButtons" FvwmButtons
+ "FvwmCommandS" FvwmCommandS
+ "FvwmConfig" FvwmConfig
+ "FvwmConsole" FvwmConsole
+ "FvwmConsoleC" FvwmConsoleC
+ "FvwmConsoleC.pl" FvwmConsoleC.pl
+ "FvwmCpp" FvwmCpp
+ "FvwmDebug" FvwmDebug
+ "FvwmEvent" FvwmEvent
+ "FvwmForm" FvwmForm
+ "FvwmGoodStuff" FvwmGoodStuff
+ "FvwmIconBox" FvwmIconBox
+ "FvwmIconMan" FvwmIconMan
+ "FvwmIdent" FvwmIdent
+ "FvwmM4" FvwmM4
+ "FvwmPager" FvwmPager 0 23
+ "FvwmPipe" FvwmPipe
+ "FvwmRearrange" FvwmRearrange
+ "FvwmSave" FvwmSave
+ "FvwmSaveDesk" FvwmSaveDesk
+ "FvwmScript" FvwmScript
+ "FvwmScroll" FvwmScroll
+ "FvwmTalk" FvwmTalk
+ "FvwmTaskBar" FvwmTaskBar
+ "FvwmWharf" FvwmWharf
+ "FvwmWinList" FvwmWinList
################################################################
################################################################
#This is the menu popups when you press mouse1 on the left button of a window title
AddToMenu "Window"
+ "Move" Move
+ "Resize" Resize
+ "&Iconify" Iconify
+ "(Un)Stick" Stick
+ "&Maximize" Maximize 100 grow
+ "Se&nd to desk" Popup send_window_to_desk
+ "Mo&ve to desk" Popup move_with_window_to_desk
+ "" Nop
+ "Destroy" Destroy
+ "Close" Close
+ "" Nop
+ "&Scroll bars" Module FvwmScroll 2 2
+ "" Nop
+ "Refresh Screen" Refresh
AddToMenu "move_with_window_to_desk"
+ "Desk &1" MoveToDeskWith 0 0
+ "Desk &2" MoveToDeskWith 0 1
+ "Desk &3" MoveToDeskWith 0 2
+ "Desk &4" MoveToDeskWith 0 3
+ "Desk &5" MoveToDeskWith 0 4
AddToMenu "send_window_to_desk"
+ "Desk &1" MoveToDesk 0 0
+ "Desk &2" MoveToDesk 0 1
+ "Desk &3" MoveToDesk 0 2
+ "Desk &4" MoveToDesk 0 3
+ "Desk &5" MoveToDesk 0 4
###########################################################
######## all of the bindings #############################
###########################################################
############ mouse bindings #############################
# Button Context Modifi Behaviour
Mouse 1 R A Menu "Rootmenu" Nop
Mouse 1 W CM Menu "Rootmenu" Nop
Mouse 3 R N WindowList
Mouse 3 WFST CM WindowList
Mouse 1 6 N CloseOrNot
Mouse 0 1 A Menu "Window"
Mouse 0 2 A Maximize 100 grow
Mouse 0 4 A Iconify
Mouse 1 FS A Resize
Mouse 2 T A WindowShade
########### keyboard bindings #########################
# Key Context Modifi Behaviour
Key Tab A M Next ["CurrentPage"] Focus
Key Tab A C RaiseLower
Key F1 A 4 Desk 0 0
Key F2 A 4 Desk 0 1
Key F3 A 4 Desk 0 2
Key F4 A 4 Desk 0 3
Key F5 A 4 Desk 0 4
Key F1 A N GotoPage 0 0
Key F2 A N GotoPage 1 0
Key F3 A N GotoPage 0 1
Key F4 A N GotoPage 1 1
Key L A 4 Exec exec xscreensaver-command -lock
Key S A 4 Exec exec scrot '%Y-%m-%d-%s.png'
#mark a window then jump to it or pull it to current position
Key 1 WI 4 SetEnv BOOKMARKED_WINDOW_1 $[w.id]
Key 2 WI 4 SetEnv BOOKMARKED_WINDOW_2 $[w.id]
Key 3 WI 4 SetEnv BOOKMARKED_WINDOW_3 $[w.id]
Key 4 WI 4 SetEnv BOOKMARKED_WINDOW_4 $[w.id]
Key 5 WI 4 SetEnv BOOKMARKED_WINDOW_5 $[w.id]
Key 6 WI 4 SetEnv BOOKMARKED_WINDOW_6 $[w.id]
Key 1 A M WindowId $[BOOKMARKED_WINDOW_1] WarpToWindow 50 50
Key 2 A M WindowId $[BOOKMARKED_WINDOW_2] WarpToWindow 50 50
Key 3 A M WindowId $[BOOKMARKED_WINDOW_3] WarpToWindow 50 50
Key 4 A M WindowId $[BOOKMARKED_WINDOW_4] WarpToWindow 50 50
Key 5 A M WindowId $[BOOKMARKED_WINDOW_5] WarpToWindow 50 50
Key 6 A M WindowId $[BOOKMARKED_WINDOW_6] WarpToWindow 50 50
Key 1 A C WindowId $[BOOKMARKED_WINDOW_1] ComeHere
Key 2 A C WindowId $[BOOKMARKED_WINDOW_2] ComeHere
Key 3 A C WindowId $[BOOKMARKED_WINDOW_3] ComeHere
Key 4 A C WindowId $[BOOKMARKED_WINDOW_4] ComeHere
Key 5 A C WindowId $[BOOKMARKED_WINDOW_5] ComeHere
Key 6 A C WindowId $[BOOKMARKED_WINDOW_6] ComeHere
#pull a marked window to current page
#Key 1 WI S Grouping
#Key 2 WI S Grouping
#Key 3 WI S Grouping
#Key 1 A MC All (State 1) ComeHere
#Key 2 A MC All (State 2) ComeHere
#Key 3 A MC All (State 3) ComeHere
#################################################################
############### FvwmModules ####################################
################################################################
########################## FvwmEvent ############################
########################## FvwmPager ############################
*FvwmPager: Geometry 70x410+0-0
*FvwmPager: Rows 5
*FvwmPager: Columns 1
*FvwmPager: LabelsAbove
*FvwmPager: Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-0
*FvwmPager: SmallFont -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-0
*FvwmPager: Fore white
#*FvwmPager: Back white
*FvwmPager: Hilight #6D6330
*FvwmPager: WindowLabelFormat %t
*FvwmPager: Label 0 Main
*FvwmPager: Label 1 Internet
*FvwmPager: Label 2 Program
*FvwmPager: Label 3 Work
*FvwmPager: Label 4 Amusement
*FvwmPager: Balloons All
*FvwmPager: BalloonFore Black
*FvwmPager: BalloonBack #0BEFCD
*FvwmPager: BalloonFont -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-0
*FvwmPager: BalloonYOffset +2
*FvwmPager: BalloonBorderWidth 0
*FvwmPager: BalloonBorderColor Black
*FvwmPager: Colorset * 1
*FvwmPager: HilightColorset * 0
*FvwmPager: WindowColorsets 6 7
*FvwmPager: UseSkipList
##################### PaperPanel ##############################
#*FvwmButtonsBack bisque4
#*MainPanel: Geometry 5x96+0+0
#*MainPanel: Back LightBlue
#*MainPanel:Colorset 1
#*MainPanel: (Panel(right, indicator, delay 30,smooth, steps 5) \
#PagerPanel "Module FvwmButtons PagerPanel")
#*MainPanel: Font -*-simsun-medium-r-*-*-16-*-*-*-*-*-gbk-0
#*PagerPanel: Geometry 384x96
#*PagerPanel: (Swallow FvwmPager "Module FvwmPager 0 4")
#*PagerPanel: Font -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-0
######################## WindowList ############################
# All about the windowlister
*FvwmWinListBack Black
*FvwmWinListFore burlywood1
*FvwmWinListFont -*-simsun-medium-r-*-*-16-*-*-*-*-*-*-0
*FvwmWinListAction Click1 Iconify -1,Focus
*FvwmWinListAction Click2 Iconify
*FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-0
*FvwmWinList: LeftJustify
*FvwmWinList: MinWidth 700
*FvwmWinList: MaxWidth 770
*FvwmScrollFore Azure4
*FvwmScrollBack MidnightBlue
# Animation Settings
*FvwmAnimateEffect Random
*FvwmAnimateWidth 0
*FvwmAnimateColor dodgerblue
########################### FvwmTaskBar ###########################
*FvwmTaskBar:Rows 1
*FvwmTaskBar:Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-0
*FvwmTaskBar:SelFont -unknown-simsun-medium-r-normal-*-14-*-*-*-*-*-0
*FvwmTaskBar:StatusFont -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-0
*FvwmTaskBar:Fore blue
*FvwmTaskBar:Back lightblue
*FvwmTaskBar:Colorset 3
*FvwmTaskBar:FocusFore red
#*FvwmTaskBar:FocusBack white
#*FvwmTaskBar:AutoHide
*FvwmTaskBar:UseSkipList
*FvwmTaskBar eskOnly
*FvwmTaskBar:UseIconNames
*FvwmTaskBar:3DFvwm
*FvwmTaskBar:AutoStick
*FvwmTaskBar:ShowTips
*FvmwmTasBar:ClockFormat HH:MM:SS
*FvwmTaskBar ateFormat
#*FvwmTaskBar:UpdateInterval 1
*FvwmTaskBar:StartName Promethues
*FvwmTaskBar:StartIcon start_24x24.png
*FvwmTaskBar:StartCommand (Mouse 1) Popup "Rootmenu"
*FvwmTaskBar:StartCommand (Mouse 3) WindowList
################### PanelBar ########################
FvwmButtons PanelBar
*PanelBar: BoxSize smart
*PanelBar: Colorset 1
*PanelBar: ActiveColorset 2
*PanelBar: PressColorset 2
*PanelBar: Columns 6
*PanelBar: Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-0
*PanelBar: Rows 1
*PanelBar: Frame 3
*PanelBar: Geometry -0-0
#*PanelBar: Padding 2 2
#*PanelBar: Pixmap none
*PanelBar ,Icon lumaqq.png,,Action(Mouse 1) `Exec exec $HOME/LumaQQ/lumaqq`)
*PanelBar ,Icon qterm.png,,Action(Mouse 1) `Exec exec esddsp /usr/bin/qterm`)
*PanelBar ,Icon firefox.png,,Action(Mouse 1) `Exec exec firefox`)
*PanelBar ,Icon xemacs.png,,Action(Mouse 1) `Exec exec emacs-snapshot-unicode-gtk`
*PanelBar ,Icon scrot.png,,Action(Mouse 1) `Exec exec scrot '%Y-%m-%d-%s.jpg'`,Action(Mouse 3)`Exec exec scrot '%Y-%m-%d-%s.png'`
*PanelBar ,Icon xcal.png,,Action(Mouse 1) `Exec exec xcalc`
#*PanelBar: (1x20,Swallow(UseOld) "*krellm" 'Exec exec gkrellm')
#*PanelBar: (2x1 Swallow "XCal" "Exec exec xcal")
####################### IconBox ##########################
*FvwmIconBox:Colorset 1
*FvwmIconBox:Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-0
*FvwmIconBox:UseSkipList
*FvwmIconBox:Geometry 8x2+500+0
*FvwmIconBox:Mouse 1 Click RaiseLower
*FvwmIconBox:Mouse 1 DoubleClick Iconify
*FvwmIconBox:Mouse 2 Click Iconify -1,Focus
*FvwmIconBox:Mouse 3 Click Module FvwmIdent
##################################################################
###################### Colorset ########################
##################################################################
Colorset 0 RootTransparent,Tint black 20,fg rgb:ef/8e/0b
Colorset 1 RootTransparent,Tint black 20,fg rgb:b3/ca/df
Colorset 3 RootTransparent,Tint black 20,fg rgb:f8/75/51
Colorset 3 Translucent,bg average,Tint black 20,fg blue
Colorset 4 Translucent,bg average,Tint black 20,fg white
Colorset 5 Translucent,bg average,Tint black 20,fg #68F703
Colorset 6 bg #E9CCAB,fg #EE44D6
Colorset 7 bg #1D5D64,fg #9CF608
################################################################
######## add the stroke config #################################
################################################################
Read .fvwm.strokes
Read /etc/X11/fvwm/menudefs.hook Quiet
Read menudefs.hook Quiet |