|
发表于 2007-6-1 10:43:44
|
显示全部楼层
我以为你已经有一个了,就不要了,呵呵。
我的很简单:- ImagePath +:$HOME/.fvwm/icons:$HOME
- EdgeResistance 250 100
- ColormapFocus FollowsMouse
- ClickTime 550
- DeskTopSize 1x4
- EdgeScroll 0 0
- ############ default Styles: ####################
- Style * BorderWidth 1, HandleWidth 1, DepressableBorder
- Style * DecorateTransient, NoPPosition
- Style * SloppyFocus, MouseFocusClickRaises
- Style * CenterPlacement
- Style * Font 7x14
- Style * HilightFore black, HilightBack gainsboro
- Style * IconBox 0 16 200 -260, IconFill t l, StickyIcon
- Style * WindowShadeShrinks, WindowShadeSteps 100
- Style * NoTitle, !IconTitle
- Style * RaiseTransient, LowerTransient, StackTransientParent
- Style "beep*" Icon bmp.xpm, MiniIcon i_bmp.xpm
- Style "Firefox*" Icon firefox.xpm, MiniIcon i_firefox.xpm
- Style "Gaim" Icon gaim.xpm, MiniIcon i_gaim.xpm
- Style "gqview" Icon gqview.xpm, MiniIcon i_gqview.xpm
- Style "rox" Icon rox.xpm, MiniIcon i_rox.xpm
- Style "stardict" Icon stardict.xpm MiniIcon i_stardict.xpm
- Style "urxvt" Icon rxvt.xpm, MiniIcon i_term.xpm
- Style "gvim" Icon vim.xpm, MiniIcon i_vim.xpm
- Style "Xpdf" Icon xpdf.xpm, MiniIcon i_xpdf.xpm
- ##################### Menus ###################
- Read "menu"
- ################# Menu Style ####################
- Colorset 0 fg black, bg grey, Translucent #c6cbd6 90
- Colorset 1 fg black, bg #6b83b5, hi #dcdcdc, sh #dcdcdc
- MenuStyle * Hilight3DThin, PopupOffset 0 100, PopupDelay 300
- MenuStyle * Font "8x16"
- MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1
- MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, \
- TrianglesSolid, Animation
- MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|"
- MenuStyle * VerticalItemSpacing 3 4
- CopyMenuStyle * WindowList
- MenuStyle WindowList VerticalItemSpacing 1 2
- ChangeMenuStyle WindowList Window-Ops
- ##########################################
- # some simple default key bindings:
- ##########################################
- Key Tab A M WindowList Root c c CurrentDesk, NoGeometry, CurrentAtEnd, NoIcons, NoCurrentDeskTitle
- Key F1 A M Exec exec mrxvt # Alt+F1 -> run terminal
- Key W A 4 Menu RootMenu root o0 o100 # Win+S -> pop main manu from left-bottom
- Key M W 4 Menu Window-Ops Nop # Win+M -> pop win menu
- Key M W M Thumbnail # Alt+M -> Iconfy
- Key M I M DeThumbnail # Alt+M -> Iconfy
- Key F4 A M CloseOrNot # Alt+F4 -> close window
- Key X W M Maximize 100 0 # Alt+f3 -> max window in H
- Key R W M Resize # Alt+R -> resize window
- Key 1 A M GotoPage 0 0
- Key 2 A M GotoPage 0 1
- Key 3 A M GotoPage 0 2
- Key 4 A M GotoPage 0 3
- Mouse 1 R A Menu RootMenu Nop
- Mouse 1 A M Menu RootMenu Nop
- Mouse 3 WI SC CloseOrNot
- Mouse 3 A S Move
- Mouse 3 R N WindowList CurrentAtEnd, NoIcons Nop
- Mouse 3 A M Menu Window-Ops Nop # Alt+RightMouse -> win ops
- DestroyFunc CloseOrNot
- AddToFunc CloseOrNot
- + I ThisWindow (Iconic) Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png
- + C Silent Close
- + M Nop
- DestroyFunc RaiseFocus
- AddToFunc RaiseFocus
- + I Raise
- + I Focus
- # for other parts of the window/borders/icons:
- Mouse 1 F A Resize-or-Raise
- Mouse 1 TS A Move-or-Raise
- Mouse 1 I A Move-or-Iconify
- ############ Initialization Functions ###################
- DestroyFunc StartFunction
- AddToFunc StartFunction
- + I Exec exec conky
- + I Test (Restart) All (Iconic) Test (f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) \
- WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png
- # DestroyFunc InitFunction
- # AddToFunc InitFunction
- # + I Exec exec xscreensaver -no-splash
- DestroyFunc ExitFunction
- AddToFunc ExitFunction
- + I All (conky) Close
- + I Test (!ToRestart) Exec rm -f $[FVWM_USERDIR]/icon.tmp.*
- ############# Sample Functions ###################
- DestroyFunc Move-or-Raise
- AddToFunc Move-or-Raise I Raise
- + "M" Move
- + "D" WindowShade
- DestroyFunc Move-or-Raise2
- AddToFunc Move-or-Raise2 "M" Raise
- + "M" Move
- + "D" Lower
- DestroyFunc Maximize-Func
- AddToFunc Maximize-Func "M" Maximize 0 100
- + "C" Maximize 0 80
- + "D" Maximize 100 98
- DestroyFunc Maximize-Func2
- AddToFunc Maximize-Func2 "M" Maximize 100 0
- + "C" Maximize 80 0
- + "D" Maximize 100 98
- DestroyFunc Move-or-Iconify
- AddToFunc Move-or-Iconify I Raise
- + "M" Move
- + "D" DeThumbnail
- DestroyFunc Resize-or-Raise
- AddToFunc Resize-or-Raise I Raise
- + "M" Resize
- + "D" Lower
- DestroyFunc Resize-or-Raise2
- AddToFunc Resize-or-Raise2 "M" Raise
- + "M" Resize
- + "D" Lower
- DestroyFunc Iconify-and-Raise
- AddToFunc Iconify-and-Raise I DeThumbnail
- + I Raise
- #####################################
- ### Set 'Iconify' with a thumbnail
- #####################################
- DestroyFunc Thumbnail
- AddToFunc Thumbnail
- + I Raise
- + I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
- "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
- -mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
- && echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
- || echo Nop"
- + I Iconify
- DestroyFunc DeThumbnail
- AddToFunc DeThumbnail
- + I DestroyWindowStyle
- + I Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png
- + I Iconify
复制代码 |
|