|
发表于 2004-6-18 08:27:28
|
显示全部楼层
[code:1]################http://dxzhang.kmip.net/wangyin/fvwm_frame.html
ImagePath ${HOME}/.fvwm/images
SetEnv MINI_ICON_DIR $[HOME]/
SetEnv FVWM_ICON_SIZE 96
SetEnv FVWM_COLORSET_TINT "40"
######################Colorset
#CleanupColorsets
Colorset 0 Foreground black, Background black, Hilight black, Shadow black
Colorset 1 Foreground white, Background black, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 2 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 3 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 4 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 5 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 6 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 7 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint white 40
Colorset 8 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint gray 40
Colorset 9 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 10 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 11 Foreground white, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint black 40
Colorset 12 Foreground black, Background gray, Hilight gray, Shadow gray, RootTransparent, Tint gray 40
Colorset 13 Foreground white, Background black, NoShape, RootTransparent, Tint blue 20
Colorset 14 Foreground white, Background black, NoShape, RootTransparent, Tint black 40
Colorset 15 Foreground white, Background white
Colorset 16 Foreground white, Background white
Colorset 17 Foreground black, bg white, NoShape, RootTransparent, Tint #5a8ade 60
Colorset 18 Foreground black, bg white, NoShape, RootTransparent, Tint #f6f6f6 20
################Decor
DestroyDecor DefaultDecor
AddToDecor DefaultDecor
+ TitleStyle ActiveUp Colorset 13
+ TitleStyle ActiveDown Colorset 13
+ TitleStyle InActive Colorset 18
+ TitleStyle LeftJustified
+ TitleStyle -- flat
+ TitleStyle Height 20
#+ TitleStyle Font "xft:Verdana-12"
+ BorderStyle -- HiddenHandles
+ BorderStyle -- Flat
+ ButtonStyle 1 InActive 4 30x45@3 60x45@3 45x30@4 45x60@3 -- Flat
+ ButtonStyle 1 ActiveUp 4 30x45@3 60x45@3 45x30@4 45x60@3 -- Flat
+ ButtonStyle 1 ActiveDown 4 30x45@3 60x45@3 45x30@4 45x60@3 -- Flat
+ ButtonStyle 2 InActive 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 2 ActiveUp 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 2 ActiveDown 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
+ ButtonStyle 4 InActive 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 4 ActiveUp 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 4 ActiveDown 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
+ ButtonStyle 6 InActive 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 6 ActiveUp 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle 6 ActiveDown 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
+ ButtonStyle All -- UseTiTleStyle
+ ButtonStyle All -- flat
Style * TitleAtTop
Style * Colorset 15
Style * HilightColorset 16
Style * HandleWidth 1
Style * BorderWidth 1
Style * Font "xft:Verdena-12"
Style * IconBox 50 80 100 -15
Style * SmartPlacement, WindowShadeSteps 20, ResizeOutLine
Style * NoIconTitle
Style * UseDecor DefaultDecor
Mouse 1 1 A Close
#Mouse 3 1 A Thumbnail
Mouse 1 2 A Close
#Mouse 3 2 A Iconify
#Mouse 3 2 A Thumbnail
Mouse 1 4 A Maximize grow grow
Mouse 2 4 A Maximize 0 grow
Mouse 3 4 A Maximize grow 0
#Mouse 1 6 N Layer 0 5
#Mouse 2 6 N Layer 0 4
Mouse 1 6 A Thumbnail
Mouse 3 6 N Stick
Mouse 1 I A Move-or-Iconify
DestroyFunc Raise_LowerMoveRaise
AddToFunc Raise_LowerMoveRaise
+ C Raise
+ M Lower
+ M Move
+ M Raise
DestroyFunc Lower_Move
AddToFunc Lower_Move
+ C WindowShade True
+ D WindowShade False
+ M Move
DestroyFunc ShadeResize
AddToFunc ShadeResize
+ M Resize
DestroyFunc ResizeOnPress
AddToFunc ResizeOnPress
+ I Resize
#Mouse 1 WTI M Raise_LowerMoveRaise
#Mouse 2 WTI M ResizeOnPress
#Mouse 3 WTI M Lower_Move
Mouse 1 T N Raise_LowerMoveRaise
Mouse 2 T N ShadeResize
Mouse 3 T N Lower_Move
Mouse 3 R A Exec exec aterm &
#####################################Window styles
Style * MinOverlapPercentPlacement
#Style * NoIcon
#Style * MiniIcon $[FVWM_CRYSTAL_FRAME_ICON_SIZE]/fvwm-crystal/app_noicon.png
Style * IndexedWindowName
Style * IndexedIconName
Style * DecorateTransient
Style * WindowShadeSteps 32
Style * WindowShadeShrinks
EdgeScroll 0 0
EdgeResistance 500 100
EdgeThickness 1
HideGeometryWindow Move, Resize
OpaqueMoveSize 100
Style * ResizeOpaque
SnapAttraction 3 All
###################################Mouse action
Mouse 1 R A Popup RootMenu
Mouse 2 R N Nop
#Mouse 3 R A Exec exec aterm &
#Mouse 3 R M Exec exec rox &
Mouse 4 R A Nop
Mouse 5 R A Nop
################################Focus policy
Style * FPEnterToFocus
Style * !FPLeaveToUnfocus
Style * FPFocusByProgram
Style * FPFocusByFunction
Style * !FPFocusByFunctionWarpPointer
Style * !FPClickRaisesFocused
Style * FPClickDecorRaisesFocused
Style * FPAllowRaiseClickFunction
Style * FPGrabFocus
Style * FPGrabFocusTransient
Style * FPReleaseFocus
Style * FPReleaseFocusTransient
###############################Menu style
MenuStyle * MenuColorset 11
MenuStyle * ActiveColorset 12
MenuStyle * BorderWidth 1
MenuStyle * HilightBack
MenuStyle * ActiveFore
MenuStyle * Hilight3DOff
MenuStyle * Animation
MenuStyle * PopdownDelayed
MenuStyle * TitleUnderlines0
MenuStyle * Font "xft:Verdana-10"
MenuStyle * VerticalItemSpacing 1 6
MenuStyle * SeparatorsLong
DestroyMenu recreate RootMenu
AddToMenu RootMenu "Valas-FVWM" Title Top
+ "" Nop
+ "Aterm" Exec exec aterm
+ "Mutt" Exec exec mutt
+ "Mozilla" Exec exec mozilla
+ "Opera" Exec exec opera
+ "Gftp" Exec exec gftp
+ "Gaim" Exec exec gaim
+ "QQ" Exec exec /LumaQQ/lumaqq
+ "Sylpheed" Exec exec sylpheed
+ "Prozgui" Exec exec prozgui
+ "D4x" Exec exec nt
+ "BitTorrent" Exec exec azureus
+ "Gqview" Exec exec gqview
+ "Xpdf" Exec exec xpdf
+ "Abiword" Exec exec abiword-2.0
+ "Stardict" Exec exec stardict
+ "Eclipse" Exec exec /opt/eclipse/eclipse
+ "Xmms" Exec exec xmms
+ "Gmplayer" Exec exec gmplayer
+ "Xine" Exec exec xine
Key F3 A A Module FvwmConsole -terminal aterm
ClickTime 500
DesktopSize 8x1
CursorStyle root top_left_arrow
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead "xwd -silent -id $[w.id] | convert -depth 8 -scale $[FVWM_ICON_SIZE] -frame 1x1 -mattecolor black -quality 0 xwd:- png:$[HOME]/.fvwm/icon.tmp.$[w.id].png && echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png || echo Nop"
+ I Iconify
DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I DestroyWindowStyle
+ I Exec exec rm -f $[HOME]/.fvwm/icon.tmp.$[w.id].png
*FvwmEvent: deiconify DeThumbnail
################## Pager ##############
*module-pager: LabelsBelow
*module-pager: Balloons Pager
*module-pager: BalloonYOffset -5
*module-pager: MiniIcons
*module-pager: Font none
*module-pager: Colorset * 6
*module-pager: HilightColorset * 7
*module-pager: WindowColorsets 8 9
*module-pager: BalloonColorset * 10
Style module-pager NoIcon, NoTitle, NoHandles, WindowListSkip, Sticky, NeverFocus, FixedPosition, FixedSize
PipeRead "echo *module-pager: Geometry 223x24+$((($[vp.width]-223)/2))+3"
Module FvwmPager module-pager 0 0
################### Taskbar ################
#Colorset 21 fb white, bg #c6c3c6, sh black, bi black, RootTransparent
#DestroyModuleConfig module-taskbar: *
#*module-taskbar: Geometry +0-0
#*module-taskbar: Rows 1
#*module-taskbar: Font "xft:Bitstream Vera Sans Mono:style=Roman:size=10"
#*module-taskbar: StatusFont "xft:Bitstream Vera Sans Mono:style=Roman:size=10"
#*module-taskbar: SelFont "xft:Bitstream Vera Sans Mono:style=Roman:size=10"
#*module-taskbar: Colorset 21
#*module-taskbar: AutoStick
#*module-taskbar: UseSkipList
#*module-taskbar: PageOnly
#*module-taskbar: ShowTips
#*module-taskbar: NoDefaultStarButton
#*module-taskbar: NoBrightGFocus
#*module-taskbar: 3DFvwm
#*module-taskbar: MailCheck 0
#*module-taskbar: IconColorset 21
#*module-taskbar: FocusColorset 21
#*module-taskbar: WindowButtonsRightMargin 124
#*module-taskbar: ColckFormat
#Style module-taskbar NoIcon, NoTitle, CirculateSkip, NoHandles, WindowListSkip, Sticky, NeverFocus, FixedPosition, FixedSize, StaysOnBottom, BorderWidth 1
#Module FvwmTaskBar module-taskbar
*module-buttons-clock: BoxSize smart
*module-buttons-clock: Colorset 1
*module-buttons-clock: Font "xft:Verdana-8"
*module-buttons-clock: Padding 4 4
*module-buttons-clock: Frame 0
*module-buttons-clock: Geometry 60x24-3+3
*module-buttons-clock: Rows 1
*module-buttons-clock: (1x1, Swallow (NoClose, UseOld) "xdaliclock" 'Exec xdaliclock -24 -fg gray -noseconds -transparent -font -*-helvetica-*-r-*-*-20-*-*-*-*-*-iso8859-2')
Style module-buttons-clock NoTitle, NoHandles, Sticky, NoIcon, NeverFocus, WindowListSkip, FixedSize, StaysOnBottom
#Exec killall xdaliclock
Module FvwmButtons module-buttons-clock
#*module-buttons-docklet: BoxSize smart
#*module-buttons-docklet: Colorset 1
#*module-buttons-docklet: Font "xft:Verdana-8"
#*module-buttons-docklet: Padding 4 4
#*module-buttons-docklet: Frame 0
#*module-buttons-docklet: Geometry 24x24-214+3
#*module-buttons-docklet: Rows 1
#*module-buttons-docklet: (1x1, Swallow (NoClose, UseOld) "psidock")
#Style module-buttons-docklet NoTitle, NoHandles, Sticky, NoIcon, NeverFocus, WindowListSkip, FixedPosition, FixedSize, StaysOnBottom
#Module FvwmButtons module-buttons-docklet
*Module-iconman-taskbar: FocusAndSelectButton flat
*Module-iconman-taskbar: FocusButton flat
*Module-iconman-taskbar: Font "xft:Verdana-8"
*Module-iconman-taskbar: IconButton flat
*Module-iconman-taskbar: PlainButton flat
*Module-iconman-taskbar: Colorset 2
*Module-iconman-taskbar: PlainColorset 4
*Module-iconman-taskbar: FocusColorset 3
*Module-iconman-taskbar: SelectColorset 4
*Module-iconman-taskbar: FocusAndSelectColorset 5
PipeRead "echo *Module-iconman-taskbar: ButtonGeometry $((($[vp.width])))x24"
*Module-iconman-taskbar: ManagerGeometry 1x1+0-0
*Module-iconman-taskbar: Resolution Global
*Module-iconman-taskbar: DrawIcons True
*Module-iconman-taskbar: FollowFocus True
*Module-iconman-taskbar: UseWinList True
*Module-iconman-taskbar: ShowOnlyIcons Never
*Module-iconman-taskbar: Format "%t"
*Module-iconman-taskbar: Title ""
*Module-iconman-taskbar: Sort id
*Module-iconman-taskbar: Action Mouse 1 A SendCommand "Function Module-iconman-taskbar_ComeHere"
*Module-iconman-taskbar: Action Mouse 3 A SendCommand "Function Module-iconman-taskbar_GoThere"
DestroyFunc Module-iconman-taskbar_ComeHere
AddToFunc Module-iconman-taskbar_ComeHere
+ I Iconify False
+ I MoveToDesk 0 $[desk.n]
+ I MoveToPage $[page.nx] $[page.ny]
+ I WarpToWindow 50 50
DestroyFunc Module-iconman-taskbar_GoThere
AddToFunc Module-iconman-taskbar_GoThere
+ I Iconify False
+ I WarpToWindow 50 50
Style Module-iconman-taskbar NoIcon, NoTitle, WindowListSkip, FixedSize, NoHandles, Sticky, FixedPosition, NeverFocus, StaysOnBottom
#Module FvwmIconMan Module-iconman-taskbar
DestroyFunc Move-or-Iconify
AddToFunc Move-or-Iconify I Raise
+ M Move
+ D Iconify
+ D Exec exec rm -f $[HOME]/.fvwm/icon.tmp.$[w.id].png
*module-buttons-panel: BoxSize smart
*module-buttons-panel: Colorset 1
*module-buttons-panel: Frame 0
*module-buttons-panel: Padding 4 4
*module-buttons-panel: Font "xft:Verdana-10"
*module-buttons-panel: Geometry +3+3
*module-buttons-panel: Rows 1
*module-buttons-panel: (1x1, Icon "$[HOME]/.fvwm/Icons/panel_desktop.png", Action (Mouse 1) Popup panel-menu Root 0 5
Style module-buttons-panel NoTitle, NoHandles, Sticky, NoIcon, NeverFocus, WindowListSkip, FixedPosition, FixedSize, StaysOnBottom
Module FvwmButtons module-buttons-panel
DestroyMenu panel-menu
AddToMenu panel-menu
+ "Take screenshot" Exec exec scrot -q 50 'fvwm_%Y-%m-%d_%H-%M.jpg'
+ "%$[HOME]/.fvwm/Icons/panel_lock.png%Lock" Exec exec xlock -mode galaxy
+ "Restart fvwm" Restart
+ "Quit" Quit
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Exec exec fvwm-root -r $[HOME]/.fvwm/image/mushroom.png
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[HOME]/.fvwm/icon.tmp.*[/code:1] |
|