|
我把fvwm配置文件里能删的都删了,最后只省下不到200行了,感觉先前好多东西都是没用的,删了不会影响效果
配置文件如下:
[code:1]
EdgeResistance 250 100
EdgeScroll 0 0
ClickTime 750
DeskTopSize 2x1
Style * BorderWidth 2, HandleWidth 2, DepressableBorder
Style * MouseFocusClickRaises
Style * Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
Style * IconFont -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
Style * NoIconTitle
TitleStyle LeftJustified
TitleStyle height 20
MenuStyle * Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
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 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 4 50x25@1 75x75@0 25x75@0 50x25@1
ButtonStyle 6 4 50x65@1 35x35@1 65x35@1 50x65@0
ButtonStyle 2 - Clear
ButtonStyle 4 - Clear MWMDecorMax
ButtonStyle 6 - Clear MWMDecorShade
CursorStyle TITLE 62
CursorStyle root top_left_arrow
Style "Fvwm*" Layer 5, NoTitle, Sticky, WindowListSkip
Style "Fvwm*" BorderWidth 2, CirculateSkipIcon, CirculateSkip
Style "FvwmPager" StaysOnTop
Read fvwm.strokes
Mouse 3 T A Menu Window-Ops2 Close
Mouse 3 I A Menu Window-Ops2 Close
Mouse 0 2 A Close
Mouse 0 4 A Maximize
Mouse 0 6 A Iconify
Mouse 0 1 A Thumbnail
Mouse 1 R A Nop
Mouse 3 R A Menu RootMenu Nop
Mouse 2 R A Menu ProgramsMenu Nop
Mouse 1 FS A Resize-or-Raise
Mouse 1 T A Move-or-Raise
Mouse 1 I A Move-or-Iconify
######################## Initialization Functions ############################
DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmTaskBar
+ I Module FvwmButtons
+ I Module FvwmPager
+ I Exec fvwm-root -r $HOME/.fvwm/images/kde1.png
# InitProgram
DestroyFunc InitFunction
AddToFunc InitFunction
+ I Exec exec xscreensaver -no-splash
# Exit program
DestroyFunc ExitFunction
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec exec rm -f $[HOME]/.fvwm/icon.tmp.*
######################## Menus ###################
DestroyMenu start
AddToMenu start "主菜单" Title
+ "开始" Popup RootMenu
+ "系统" Popup system
+ "关机" Exec exec 'halt -p'
+ "重启" Exec exec init 6
+ "锁住屏幕" Exec xscreensaver-command --lock&
+ "截取屏幕" Exec exec ksnapshot
DestroyMenu system
AddToMenu system
+ "网络配置" Exec exec neat
DestroyMenu RootMenu
AddToMenu RootMenu
+ "刷新" Refresh
+ "" Nop
+ "konsole" Exec exec konsole
+ "" Nop
+ "konqueror" Exec exec konqueror
+ "" Nop
+ "Mozilla" Exec exec mozilla
+ "" Nop
+ "网络" Popup 网络
+ "" Nop
+ "文字处理" Popup wordedit
+ "" Nop
+ "媒体娱乐" Popup media
+ "" Nop
+ "图片处理" Popup picture
+ "" Nop
+ "运行" FvwmForm FvwmForm-Run
+ "Exit Fvwm" Popup Quit-Verify
DestroyMenu 网络
AddToMenu "网络"
+ "gaim" Exec exec gaim
+ "" Nop
+ "mozilla" Exec exec mozilla
DestroyMenu wordedit
AddToMenu "wordedit"
+ "gedit" Exec exec gedit
+ "" Nop
+ "kile" Exec exec kile
+ "" Nop
+ "acroread" Exec exec acroread
DestroyMenu media
AddToMenu "media"
+ "xmms" Exec exec xmms
DestroyMenu picture
AddToMenu "picture"
+ "gimp" Exec exec gimp
+ "" Nop
+ "gqview" Exec exec gqview
DestroyMenu Quit-Verify
AddToMenu Quit-Verify
+ "FvwmCommand" Module FvwmConsole -terminal xterm -geometry 25x3-0+0\
-bg gold -fg midnightblue \
-fn "-adobe-courier-medium-r-*-*-14-*-*-*-*-*-*-*"
+ "Restart Fvwm2" Restart fvwm2
+ "Yes, Really Quit" Quit
######################## Sample Functions ##########################
AddToMenu Window-Ops2 "!" Title
+ "close" Close
+ "min||max" Iconify
+ "destroyI" DeThumbnail
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" Iconify
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 Iconify
+ I Raise
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead "xwd -silent -id $[w.id] | convert -depth 8 -scale $[FVWM_ICON_SIZE] -frame 9x9 -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
#taskbar
Style "FvwmTaskBar" NoTitle,BorderWidth 2,HandleWidth 2,Sticky,StaysOnTop,WindowListSkip,CirculateSkip
*FvwmTaskBar: StartName FVWM
*FvwmTaskBar: StartMenu start
*FvwmTaskBar: Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
*FvwmTaskBar: SelFont -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
*FvwmTaskBar: Maximize 100 -30p
#*FvwmTaskBar: Back seagreen
#*FvwmTaskBar: Fore gold2
#*FvwmTaskBar: IconBack darkgreen
#*FvwmTaskBar: IconFore white
*FvwmTaskBarUseSkipList
#Button
#*FvwmButtonsFore red
#*FvwmButtonsBack gold
*FvwmButtonsFont 9x12
*FvwmButtonsGeometry +400-745
#*FvwmButtonsColumns 7 #设置FvwmButtons为七列,一行
*FvwmButtonsRows 1
*FvwmButtons(Title Terminal, Action 'Exec konsole &')
*FvwmButtons(Title konqueror, Action 'Exec konqueror &')
*FvwmButtons(Title Mozilla, Action 'Exec mozilla &')
*FvwmButtons(Title gedit, Action 'Exec gedit &')
*FvwmButtons(Title aterm, Action 'Exec aterm -tr &')
#*FvwmButtons(Title xmms, Action 'Exec xmms &')
#*FvwmButtons(Title gqview, Action 'Exec gqview &')
#*FvwmButtons(Title "restart fv", Action restart fvwm2)
*FvwmButtons(Title 开始, Action Menu RootMenu Nop)
#*FvwmButtons: (Size 6x8, Swallow "FvwmPager" "FvwmPager 0 0")
#Pager
*FvwmPagerBack #4a708b
*FvwmPagerFore #000000
*FvwmPagerGeometry 40x40+360-745
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
BorderStyle Inactive Colorset 42 -- flat
BorderStyle Active Colorset 41 -- flat
TitleStyle AllInactive Colorset 42 -- flat
TitleStyle AllActive Colorset 41 -- flat
ButtonStyle All -- UseTitleStyle flat
Colorset 23 RootTransparent, fg rgb:ff/ff/c4, bg average, Tint black 20, bgTint black 20
MenuStyle * MenuColorset 23
*FvwmPager: Colorset * 23
*FvwmButtons: Colorset 23
*FvwmIconMan: Colorset 23
Style FvwmPager ParentalRelativity
Style FvwmButtons ParentalRelativity
Style FvwmIconMan ParentalRelativity
SetEnv FVWM_ICON_SIZE 120
[/code:1] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|