|
|
请大家帮帮忙吧,我的fvwm没有任务栏,下载网上人家配置好的rc也不管用,现在只是有菜单和桌面,别的什么都没有,希望达人们帮帮忙,查阅了一些资料,还是配置不出来,我只是想先配出来一个简单的任务栏,然后再自己改动,可是现在用了一些办法都无法把任务栏显示出来
我把我的配置文件帖在下面,希望大家可以给指点一二,教教我怎么可以弄个任务栏出来,谢谢啦
#.fvwm2rc#
# FVWM will search the icons in these paths
ImagePath +:/root/.fvwm/image
ImagePath +:/root/.fvwm/icons
# load contents of other files
Read f.menu
Read f.style
Read f.simplestyle
Read f.Mouse
Read f.taskbar
# max both side,reserve:top 20,bottom25
EwmhBaseStruts 0 0 20 25
# use EdgeScroll to avoid flipping pages
EdgeScroll 0 0
# 8 pages 1 desktop
DeskTopSize 8x1
AddToFunc StartFunction
+ I Module FvwmTaskBar
# wallpaper
+ I Exec exec xloadimage -onroot -fullscreen /root/.fvwm/image/ffx.jpg
#Clock
+ I Exec exec xclock
# operation during exit
AddToFunc ExitFunction
+ I Exec exec sync
#################f.style#######################
###########Style of Window#############
style * Colorset 42, HilightColorset 41 # to use fg and bg
Style * Font "-simsun-medium-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*"
#buttons on the title
Style * Button 0,Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff
Style * BorderWidth 0, HandleWidth 1
#close the animation of minimum & maximum
Style * NoIcon
#when the window is minimum,it is put on the left of screen as default
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style * ResizeOutLine
Style * MouseFocusClickRaises
#for all the windows,focus when cursor is in,unfocus when out
Style * FocusFollowsMouse
#when the window appear,first try to find a place that can put it and can't overlap the others,when failed,use cascade instead
Style * TileCascadePlacement
Style * DecorateTransient
#for all the windows named by "Fvwm"(inside module of FVWM)
#they have no titles,and sticky,that is to say,even desktop switches,they stay on the screen all the time
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
#CirculateSkip claims that when FVWM requires bats,these windows is not caculated
Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip
#the next 3 lines indicates FvwmPager,FvwmBanner,FvwmButtons are always on top
Style "FvwmPager" StaysOnTop
Style "FvwmBanner" StaysOnTop
Style "FvwmButtons" StaysOnTop,ClickToFocus
#Style of xclock
Style "xclock" NoTitle,Sticky,WindowListSkip,CirculateSkipIcon,CirculateSkip,NoHandles
#Style of Term
Style "*root*" BackColor /root/.fvwm/image/earth1.png
#defines the colours windows use
#41 and 42 is clarity(without colour)
Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #6e90b3, hi #91b6db, Translucent #283e5e 80
Colorset 1 fg #000000, fgsh #b5b7b8, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 70
Colorset 3 fg #9aafbf, bg #000000, fgsh #000000, NoShape, RootTransparent, Tint #283e5e 70
Colorset 4 fg #ffffff, bg #000000, fgsh #000000, Noshape, RootTransparent, Tint #101f36 70
Colorset 41 RootTransparent buffer, fg white, bg average, Tint cyan 15, bgTint cyan 15 # tint is optional
Colorset 42 RootTransparent buffer, fg white, bg average, Tint red 15, bgTint red 15 # tint is optional
# Style * Colorset 41, HilightColorset 42 # to use fg and bg
# this is the clarity setting
BorderStyle Inactive Colorset 42 -- flat
BorderStyle Active Colorset 41 -- flat
TitleStyle AllInactive Colorset 42 -- flat
TitleStyle AllActive Colorset 41 -- flat
#####################f.simplestyle####################
#---------------------------------------------------------------------
#- File : ~/.fvwm/windowdecors/simple/config
#- Contents : fvwm window decoration description
#- Author : Uwe Pross
#---------------------------------------------------------------------
SetEnv COLOR LightYellow
SetEnv HICOLOR DodgerBlue
SetEnv FG_COLOR Black
SetEnv FG_HICOLOR White
# SetEnv HICOLOR firebrick
SetEnv MaxDeskNumber 1
ImagePath +:/root/.fvwm/image
#---------------------------------------------------------------------
AddToDecor SimpleDecor
+ TitleStyle VGradient 128 $[HICOLOR]3 $[HICOLOR]4 -- Flat
+ TitleStyle ActiveUp VGradient 128 $[HICOLOR]3 $[HICOLOR]4 -- Flat
+ TitleStyle ActiveDown VGradient 128 $[HICOLOR]4 $[HICOLOR]3 -- Flat
+ TitleStyle Inactive VGradient 128 $[COLOR]3 $[COLOR]4 -- Flat
+ TitleStyle ToggledInactive VGradient 128 $[COLOR]3 $[COLOR]4 -- Flat
+ ButtonStyle 1 7 70x15@0 30x55@1 50x55@0 40x85@1 80x45@0 60x45@1 70x15@0
+ ButtonStyle 2 13 60x20@0 60x40@0 80x40@1 80x60@0 60x60@0 60x80@0 40x80@0 40x60@1 20x60@0 20x40@1 40x40@1 40x20@1 60x20@1 --Flat
+ ButtonStyle 0 17 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x70@1 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
+ ButtonStyle 4 16 10x5@1 90x5@1 90x20@0 40x20@0 40x26@0 60x26@1 60x60@0 80x60@0 50x90@0 20x60@1 40x60@1 40x26@1 60x26@1 60x20@0 10x20@0 10x5@1 -- Flat UseTitleStyle
+ ButtonStyle 2 ToggledInactive Vector 10 15x35@3 15x85@3 65x85@3 65x35@3 15x35@3 35x35@3 35x15@3 85x15@3 85x65@3 65x65@3 -- Flat UseTitleStyle
+ ButtonStyle 2 ToggledActiveUp Vector 10 15x35@3 15x85@3 65x85@3 65x35@3 15x35@3 35x35@3 35x15@3 85x15@3 85x65@3 65x65@3 -- Flat UseTitleStyle
+ ButtonStyle 1 - MwmDecorMenu
+ ButtonStyle 2 - !MwmDecorMax
+ ButtonStyle 2 - MwmDecorMax
+ ButtonStyle 2 - !MwmDecorMin
+ TitleStyle LeftJustified Height 16
+ BorderStyle Active Colorset
+ BorderStyle Inactive Solid $[HICOLOR]3 -- HiddenHandles NoInset
+ BorderStyle Active Solid $[COLOR]3 -- HiddenHandles NoInset
Style SimpleStyle \
UseDecor SimpleDecor, \
NoButton 3, \
NoButton 5, \
NoButton 8, \
NoButton 6, \
Colorset, BorderColorset, \
HilightColorset, HilightBorderColorset, \
BorderWidth 4, HandleWidth 4, \
Font -*-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*, \
ForeColor $[FG_COLOR], BackColor $[COLOR]3, HilightFore $[FG_HICOLOR], HilightBack $[HICOLOR]3, \
MiniIcon terminal.xpm
#-------------------------------------------------------------------------------
#- menus
#-------------------------------------------------------------------------------
DestroyMenu MoveWindowToPageMenu
AddToMenu MoveWindowToPageMenu "Move window to another page" Title
+ "Desk left %mini.left2.xpm%" MoveToDesk 0 -1 0 $[MaxDeskNumber]
+ "Desk right%mini.right2.xpm%" MoveToDesk 0 +1 0 $[MaxDeskNumber]
+ "" Nop
+ " age up%mini.raise2.xpm%" MoveToPage +0p -1p
+ " age left%mini.left2.xpm%" MoveToPage -1p 0p
+ " age right%mini.right2.xpm%" MoveToPage +1p 0p
+ " age down%mini.lower2.xpm%" MoveToPage +0p +1p
+ "" Nop
+ " age 1 (left top) %window-move.xpm%" MoveToDeskAndPageFunc 0 0
+ " age 2 %window-move.xpm%" MoveToDeskAndPageFunc 0 1
+ " age 3 (left middle) %window-move.xpm%" MoveToDeskAndPageFunc 0 2
+ " age 4 %window-move.xpm%" MoveToDeskAndPageFunc 0 3
+ " age 5 (left bottom) %window-move.xpm%" MoveToDeskAndPageFunc 0 4
+ " age 6 (right top) %window-move.xpm%" MoveToDeskAndPageFunc 1 0
+ "Page 7 %window-move.xpm%" MoveToDeskAndPageFunc 1 1
+ "Page 8 (right middle)%window-move.xpm%" MoveToDeskAndPageFunc 1 2
+ "Page 9 %window-move.xpm%" MoveToDeskAndPageFunc 1 3
+ "Page 10 (right bottom)%window-move.xpm%" MoveToDeskAndPageFunc 1 4
DestroyMenu MaximizeMenu
AddToMenu MaximizeMenu "Maximize" Title
+ "Maximize%window-maximize.xpm%" Maximize 100 100
+ "Maximize vertical%mini.maximize-vert.xpm%" Maximize 0 100
+ "Maximize horizontal%mini.maximize-horiz.xpm%" Maximize 100 0
+ "" Nop
+ "Grow%window-maximize.xpm%" Maximize True grow grow
+ "Grow vertical%mini.maximize-vert.xpm%" Maximize True 0 grow
+ "Grow horizontal%mini.maximize-horiz.xpm%" Maximize True grow 0
+ "" Nop
+ "Iconify%window-iconify.xpm%" Iconify
DestroyMenu IconifyMenu
AddToMenu IconifyMenu "Iconify" Title
+ "Iconify%window-iconify.xpm%" Iconify
+ "" Nop
+ "Stick all icons%mini.stick1.xpm%" All (Currentpage, Iconic, CirculateHit) Stick on
+ "Stick all windows%mini.stick1.xpm%" All (Currentpage, !Iconic, CirculateHit) Stick on
+ "" Nop
+ "Unstick all icons%mini.stick.xpm%" All (Currentpage, Iconic, CirculateHit) Stick off
+ "Unstick all windows%mini.stick.xpm%" All (Currentpage, !Iconic, CirculateHit) Stick off
DestroyMenu WindowOptionsMenu
AddToMenu WindowOptionsMenu "Window menu" Title
+ "&Maximize/Normal%window-maximize.xpm%" Maximize 100 100
+ "(Un)S&tick %window-stick.xpm%" Stick
+ "&Shade %window-shade.xpm%" WindowShade
+ "&Iconify %window-iconify.xpm%" Iconify
+ "Mo&ve %window-move.xpm%" Move
+ "Resi&ze %window-resize.xpm%" Resize
+ "Raise %window-raise.xpm%" Raise
+ "Lower %window-lower.xpm%" Lower
+ "" Nop
+ "Ident %window-identify.xpm%" Module FvwmIdent
+ "" Nop
+ "Stays on Top %window-raise.xpm%" Layer 0 5
+ "Stays on Bottom %window-lower.xpm%" Layer 0 3
+ "Raise on Click %windows.xpm%" Layer 0 4
+ "" Nop
+ "&Close %window-delete.xpm%" Delete
+ "&Kill %window-destroy.xpm%" Destroy
#-------------------------------------------------------------------------------
#- functions
#-------------------------------------------------------------------------------
DestroyFunc ResizeOrRaiseOrLowerFunc
AddToFunc ResizeOrRaiseOrLowerFunc C Raise
+ M Resize
+ D Lower
DestroyFunc MoveOrRaiseOrLowerFunc
AddToFunc MoveOrRaiseOrLowerFunc
+ I Raise
# + I Current (!Raised) Raise
# + C TestRc (NoMatch) Lower
+ M Move
+ D Maximize 100 100
SetEnv APP_NAME XTerm
SetEnv APP_NAME *
Style $[APP_NAME] UseStyle SimpleStyle
#-------------------------------------------------------------------------------
#- mouse defs
#-------------------------------------------------------------------------------
## window frame and side
Mouse ($[APP_NAME]) 1 F A Function ResizeOrRaiseOrLowerFunc
Mouse ($[APP_NAME]) 2 F A Menu WindowOptionsMenu Nop
Mouse ($[APP_NAME]) 3 F A RaiseLower
#####################f.menu######################
DestroyMenu MenuUtilities
AddToMenu MenuUtilities
+ "XPDF" Exec exec xpdf
DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
+ "Exit FVWM Now... " Quit
+ "Restart FVWM ..." Restart
+ "Power Off" Exec exec /sbin/halt -p
+ "Reset" Exec exec /sbin/reboot
DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture
DestroyFunc DestroyOnHold
AddToFunc DestroyOnHold I Raise
+ C Schedule 50 Close
+ H Destroy
AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
AddToFunc Move-or-Raise I Raise
+ M Move
+ D WindowShade Toggle
AddToFunc Maximize-Func M Maximize 0 100
+ C Maximize 0 80
+ D Maximize 100 100
AddToFunc Move-or-Iconify I Raise
+ M Move
+ D Iconify
AddToFunc Resize-or-Raise I Raise
+ M Resize
+ D Lower
"f.menu" 89L, 2679C
##################f.taskbar####################
#
Style "FvwmTaskBar" NoTitle,BorderWidth 4, HandleWidth 4,Sticky,\
StaysOnTop,WindowListSkip,CirculateSkip
#------------------------------------ taskbar
*FvwmTaskBar: Back #c3c3c3
*FvwmTaskBar: Fore black
*FvwmTaskBar: TipsBack bisque
*FvwmTaskBar: TipsFore black
*FvwmTaskBar: Geometry +0-0
*FvwmTaskBar: Font -adobe-helvetica-medium-r-*-*-14-*-*-*-*-*-*-*
*FvwmTaskBar: SelFont -adobe-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
*FvwmTaskBar: StatusFont fixed
*FvwmTaskBar: Action Click1 DeiconifyRaiseAndFocus
*FvwmTaskBar: Action Click2 Iconify On
*FvwmTaskBar: Action Click3 Lower
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: UseIconNames
*FvwmTaskBar: AutoStick
*FvwmTaskBar: ShowTips
*FvwmTaskBar: NoIconAction SendToModule FvwmAnimate animate
*FvwmTaskBar: ButtonWidth 180
*FvwmTaskBar: BellVolume 20
*FvwmTaskBar: MailBox /var/spool/mail/
*FvwmTaskBar: MailCommand Exec xterm -e mail
*FvwmTaskBar: ClockFormat %I:%M %p
*FvwmTaskBar: StartName Start
*FvwmTaskBar: StartMenu StartMenu
*FvwmTaskBar: StartIcon mini-exp.xpm
*FvwmTaskBar: Button Title Mozilla, Action exec exec /usr/local/mozilla/mozilla
*FvwmTaskBar: Button Icon mini.term.xpm, Action exec exec xterm
*FvwmTaskBar: Button Title Freeamp, Icon mini.cd.xpm, Action exec exec freeamp
"f.taskbar" 56L, 1530C |
|