| |
 |
|
 |
 |
|
 |
[转贴]我的FVWM配置及注释
|
|
|
初次接触FVWM,在参考几位大虾的作品后,自己胡搞出了一个简单的配置。 本来只愿独自陋藏。基于一下原因,拿出来让大家共赏。 1,刚接触fvwm,有许多不当之处,希望得到高人指点。 2,我好忘事,如不趁热写下来,过一段时间,说不定就忘了如何配置。(^_^放在网上作个备份) 我的主要参考资源: 1,FVWM FAQ中文版 http://www.linuxfans.org/nuke/modul...ewtopic&t=676232,清华大学王垠博士的《FVWM使用指南》 http://learn.tsinghua.edu.cn/homepa...fvwm_frame.html3,主要参考的配置文件 http://www.pcshow.net/bbs/viewthrea...0683088&fpage=1FVWM的配置文件是用户目录中的 ./fvwm/.fvwm2rc在其中可以把所有的设置都写进去。但我感到把所有的定义都放在一起,不便查找。于是就就把. fvwm2rc分解开了,对于一些具体的方面单独写了配置。 具体说明如下: .fvwm2rc (起始文件,主要是些路径及起动时的设置) f.menu (菜单) f.buttonbar (buttonbar模块,就是在我的桌面左上角那一排快捷按钮) f.taskbar (taskbar模块,任务条) f.pager (pager模块,虚拟桌面切换程序。在我桌面的右上角) f.style (窗口样式) f.Mouse (鼠标,键盘设定) f.ButtonStyle (标题栏。按钮的排列,样式等) f.autohiding (模块自动隐藏设置) 想用图标,建一目录 ./fvwm/icons 我是把 /usr/share/icons/目录中的16X16的图标拷贝过来的 墙纸用的是png格式,你只要写上相应的路径即可。 ./fvwm/imgae目录放的是一些背景图片,用来装饰 buttonbar,pager等模块的。 另外:我的本地编码是gb2312 附件里的是所有配置,只需解压后,拷贝到./fvwm/目录即可。当然,要想显示图标和墙纸,还需按我上面说的做。^_^
.fvwm2c设置及解释
################**GKP**####################### # 虾米 :QQ: 391512866 # # Mail:gkp790522@yahoo.com.cn # # BLOG: # # http://www.linuxeden.com/forum/blog...hp?blogId=88495 # ############################################# # 2005.7.7第四次修改 # ############################################# # 加入一些路径,FVWM在这些路径中查找后面要用到的图标ImagePath ${HOME}/.fvwm/image:+ ImagePath ${HOME}/.fvwm/icons:+ #插入另外一个文件file的内容Read f.strokes Read f.menu Read f.buttonbar Read f.taskbar Read f.pager Read f.iconman Read f.style Read f.Mouse Read f.ButtonStyle Read f.autohiding # 窗口最大化是两边撑满,而上面留出20个(像素?),下面相应的留出25EwmhBaseStruts 0 0 20 25 #使用EdgeScroll命令禁止flipping pages(鼠标不会因为接近屏幕边缘而进入相近的桌面)EdgeScroll 0 0 # 用来设定桌面的大小,这里只设置了一个桌面,但是有8页DeskTopSize 8x1 # 这里是FVWM的启动函数,加载一些模块AddToFunc StartFunction + I Module FvwmAnimate + I Module FvwmPager + I Module FvwmButtons -g +0+0 + I Module FvwmTaskBar + I Exec exec fvwm-root -r ~/.fvwm/tp/g-259c.png #墙纸路径# 下面是FVWM的退出函数,你可以在这里加入一些FVWM退出时要执行的打操作AddToFunc ExitFunction + I Exec exec sync
f.menu设置及解释
##########################Menu############################
#下面这段是设定菜单的样式(透明的哦,我很喜欢),字体等相关参数。 MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white Colorset 0 Transparent,fg white MenuStyle * MenuColorset 0 MenuStyle * Foreground grey90 MenuStyle * Background #1c5572 MenuStyle * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*" #MenuStyle * MenuColorset 0, HilightBack, ActiveColorset 1 MenuStyle * BorderWidth 1, TitleUnderlines1, SeparatorsLong, TrianglesSolid MenuStyle * ItemFormat "%.2|%.5i%.5l%.5i%2.3>%2|" MenuStyle * AutomaticHotKeys MenuStyle * MenuFace VGradient 128 1 #2c80A0 1 #1c5572 ColormapFocus FollowsFocus
#下面这段是设定主菜单显示的程序及一些子菜单的名字,NOP是分割线。 #------------------------------------------------------------------------------------------------------------------- DestroyMenu MenuFvwmRoot AddToMenu MenuFvwmRoot + "Mlterm终端" Exec exec mlterm + "Konsole终端" Exec exec konsole + "gkp家目录" Exec exec konqueror /home/gkp + "" Nop + "OpenOffice办公套件" Exec exec openoffice + "Ark" Exec exec ark + "星际译王" Exec exec stardict + "网络工具" Popup MenuInternet + "Editor工具" Popup MenuEditors + "多媒体程序" Popup MenuMultimedia + "系统工具" Popup MenuUtilities + "&运行..." Module FvwmForm FvwmForm-Run #+ "Preferences" Popup MenuFvwmConfig + "" Nop + "退出窗口管理器" Popup MenuQuit-Verify
#下面是设定每个子菜单要显示的程序,可根据自己的情况删加
DestroyMenu MenuInternet AddToMenu MenuInternet + "Firefox-火狐" Exec exec firefox + "opera" Exec exec opera + "konqueror" Exec exec konqueror + "Gftp" Exec exec gftp + "Dillo" Exec exec dillo + "D4x" Exec exec d4x + "" nop + "Network Analyser" Exec exec ethereal + "Nmap security Scanner" Exec exec nmapfe + "IRC Client" Exec exec xchat + "Gaim" Exec exec gaim + "LumaQQ" Exec exec lumaqq DestroyMenu MenuEditors AddToMenu MenuEditors + "Kwrite" Exec exec kwrite + "Kate" Exec exec kate + "Vim Editor" Exec exec gvim -geom 115x46 + "Leafpad" Exec exec leafpad + "Gedit" Exec exec gedit + "Emacs CoffeeMachine" Exec exec emacs + "Bluefish Html Editor" Exec exec bluefish + "Amaya Html Editor" Exec exec amaya
DestroyMenu MenuMultimedia AddToMenu MenuMultimedia + "Kmix" Exec exec kmix + "Kaffeine" Exec exec kaffeine + "Totem" Exec exec totem + "Xmms Media Player" Exec exec xmms + "Amarok" Exec exec amarok + "Xine" Exec exec xine + "DisPlay" Exec exec display + "" nop + "TheGimp" Exec exec gimp + "Blender" Exex exec blender + "Gqview" Exec exec gqview + "Gwenview" Exec exec gwenview + "Ksnapshot" Exec exec ksnapshot + "" nop + "Sodipodi" Exec exec sodipodi + "Audio CD Player" Exec exec grip + "NeroLinux" Exec exec nero + "K3b cd-burner" Exec exec k3b + "Alsa Audio Mixer" Exec exec aterm -e alsamixer + "Video Recorder" Exec exec gvidcap + "Color controls" Exec exec gxvattr + "EE" Exec exec ee
DestroyMenu MenuUtilities AddToMenu MenuUtilities + "Adobe Reader" Exec exec acroread + "XPDF" Exec exec xpdf + "Rox File Manager" Exec exec rox + "VMware Workstation" Exec exec vmware + "Gtk2 Theme Changer" Exec exec gtk-chtheme + "GnuPg" Exec exec gpa + "Xfont Selector" Exec exec xfontsel + "&Screenshot" Exec exec ~/.fvwm/snapshot.sh + "Window Information" Exec exec xmessage "`xwininfo`" + "Magnifying Glass" Exec exec xmag + "Show Desktop" All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail + "Xdaliclock" Exec exec xdaliclock -24 -font or -fn -microsoft-Tahoma-medium-r-normal--24-0-0-0-p-0-iso8859-1 -geometry 100+100 DestroyMenu MenuGames AddToMenu MenuGames + MissingSubmenuFunction FuncFvwmMenuDirectory + "Chess Database analyser" Exec exec scid + "Eboard Chess Client" Exec exec eboard
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 + "&Lock Screen" Exec exec #xscreensaver-command -lock
DestroyMenu MenuFvwmConfig AddToMenu MenuFvwmConfig + "FvwmConsole" Module FvwmConsole -terminal rxvt + "Colour Browser" Exec exec gcolor + "Edit fvwm2rc" Exec exec gvim -geom 115x46 ~/.fvwm/.fvwm2rc + "R&efresh" Refresh + "&Xkill" Pick Destroy + "Configure Screensaver..." Exec exec xscreensaver
DestroyMenu MenuFvwmWindowOps AddToMenu MenuFvwmWindowOps + "Resize" Pick Resize + "Shade" Pick WindowShade Toggle + "" Nop + "Stick" Pick Stick + "Scroll" Pick Module FvwmScroll + "Refresh" Pick RefreshWindow + "" Nop + "Identify" Pick Module FvwmIdent + "Zoom" Pick Exec exec xmag -source $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2 + "" Nop + "Close" Close + "Destroy" Destroy
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.buttonbar设置及解释
######################## FvwmButtons ButtonBar ################################
#下面设定的是在我桌面的左上角的一排快捷程序按钮。其具体的样式(透明的),字体等。
FvwmButtons: Hilight3DOff, HilightBack #424164, ActiveFore white Colorset 0 Transparent,fg white #颜色 #*FvwmButtons: ShowTips #*FvwmButtons: FocusFore cornsilk #*FvwmButtons: NoSeparators #*FvwmButtons: UseSkipList *FvwmButtons: Colorset 0 *FvwmButtons: Foreground grey90 *FvwmButtons: Background #1c5572 *FvwmButtons: Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*" #显示的字体及大小 #*FvwmButtons: Face VGradient 128 1 #2c80A0 1 #1c5572 #*FvwmButtons: WindowBorderWidth 1 #*FvwmButtons: Window3DBorders *FvwmButtons: Geometry +000 #显示在屏幕上的位置》(在左上角) *FvwmButtons: Columns 8 #显示8个按钮 *FvwmButtons: Rows 1 #显示 一行 ColormapFocus FollowsFocus Style FvwmButtons NoTitle,WindowListSkip,BorderWidth 1, HandleWidth 1,Sticky,\ StaysOnTop,CirculateSkip
#下面的是具体设定了哪些程序 #*FvwmButtons: (Title (Side) "", Left, Back #dedbde, Icon term.png, \ Action (Mouse 1) `Exec exec xterm +sb -bg black -fg gray -fw -*-simsun-medium-r-normal-*-*-115-*-*-*-*-iso10646-1`) # *FvwmButtons: (Title (Side) "文件管理", Left, Back #dedbde, Icon file.png,Action (Mouse 1) `Exec exec xffm`) *FvwmButoons: (TiTle (Side) "Mlt", Left, Bach #dedbde,Action (Mouse 1) `Exec exec mlterm`) *FvwmButtons: (Title (Side) "", Left, Back #dedbde, Icon firefox.png,Action (Mouse 1) `Exec exec firefox`) *FvwmButtons: (Title (Side) "", Left, Back #dedbde, Icon kwrite.png,Action (Mouse 1) `Exec exec kwrite`) *FvwmButtons: (Title (Side) , Left, Back #dedbde, Icon opera.png,Action (Mouse 1) `Exec exec opera`) *FvwmButtons: (Title (Side) "", Left, Back #dedbde, Icon xmms.png,Action (Mouse 1) `Exec exec xmms`) *FvwmButtons: (Title (Side) "", Left, Back #dedbde, Icon gimp.png,Action (Mouse 1) `Exec exec gimp-2.0`) #*FvwmButtons: (Title (Side) "运行", Left, Back #dedbde, Icon run.png,Action (Mouse 1) `Exec exec grun`) #*FvwmButtons: (Title (Side) "锁屏", Left, Back #dedbde, Icon lock.png,Action (Mouse 1) `Exec exec xscreensaver-command --lock`) *FvwmButtons: (Title (Side) "重启", Left, Back #dedbde, Icon reload.png,Action (Mouse 1) `Restart`) *FvwmButtons: (Title (Side) "退出", Left, Back #dedbde, Icon exit.png,Action (Mouse 1) `Quit`)
f.taskbar设置及解释
####################FvwmTaskBar任务条######################
Style FvwmTaskBar NoTitle, WindowListSkip, CirculateSkip, Sticky, BorderWidth 1, NoHandles, StaysOnBottom Style FvwmTaskBar NeverFocus, Layer 0
DestroyModuleConfig FvwmTaskBar: * *FvwmTaskBar: Geometry -0-0 #位置 *FvwmTaskBar: Rows 1 *FvwmTaskBar: Font -adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-* *FvwmTaskBar: Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*" *FvwmTaskBar: SelFont -adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-* *FvwmTaskBar: Colorset 0 *FvwmTaskBar: AutoStick *FvwmTaskBar: UseSkipList *FvwmTaskBar: PageOnly *FvwmTaskBar: ShowTips *FvwmTaskBar: TipsColorset 0 *FvwmTaskBar: StartName Debian #开始按钮显示的名称。(这里是Debian,你可以换成“开始”字样) *FvwmTaskBar: StartMenu MenuFvwmRoot mouse -100p -104m #*FvwmTaskBar: Pixmap /home/gkp/.fvwm/image/title-active.png *FvwmTaskBar: NoBrightFocus *FvwmTaskBar: 3DFvwm *FvwmTaskBar: MailCheck 0 #下面五段是关于颜色的设定。(背景,黑色。字体,白色) *FvwmTaskBar: Back #3B3B3B *FvwmTaskBar: Fore white *FvwmTaskBar: FocusFore cornsilk *FvwmTaskBar: IconBack #3B3B3B *FvwmTaskBar: IconFore white *FvwmTaskBar: ClockFormat :%R %m/%d #右下角显示时间,日期 *FvwmTaskBar: Action Click 3 Menu MenuFvwmWindowOps mouse -1p -100m #点击“开始按钮”,菜单弹出的位置。
#在任务条上显示的快捷程序。 #*FvwmTaskBar: MailCommand Exec exec rxvt -e mutt #*FvwmTaskBar: Button NoTitle , Icon home.png, Action (Mouse 1) Exec exec kfmclient openURL $HOME *FvwmTaskBar: Button NoTitle , Icon mplayer.png, Action (Mouse 1) Exec exec gmplayer *FvwmTaskBar: Button NoTitle , Icon xmms.png, Action (Mouse 1) Exec exec xmms #*FvwmTaskBar: Button NoTitle , Icon stardict.png, Action (Mouse 1) Exec exec stardict *FvwmTaskBar: Button NoTitle , Icon ark.png, Action (Mouse 1) Exec exec ark *FvwmTaskBar: Button NoTitle , Icon gimp.png, Action (Mouse 1) Exec exec gimp
f.pager
########### FvwmPager虚拟桌面#################
#这是在我桌面右上角的,虚拟桌面切换器。 # FvwmPager #Style FvwmPager HandleWidth 3, BorderWidth 3 #SetEnv FvwmPager-Width "223" SetEnv FvwmPagerDesktops "8" #我设了8个虚拟的桌面
PipeRead "echo SetEnv FvwmPager-Width \"$[28*$FvwmPagerDesktops]\"" PipeRead "echo *FvwmPager: Geometry $[FvwmPager-Width]x24--1+-1" #“X24”是指它显示的大小是24象素。“-1+-1”是它显示在屏幕上的位置。(在右上角)
FvwmPager: Hilight3DOff, HilightBack #424164, ActiveFore white Colorset 0 Transparent,fg white #颜色 *FvwmPager: MiniIcons *FvwmPager: Font none #*FvwmPager: Maximize 100 -30p #*FvwmPager: AutoHide 1 *FvwmPager: WindowBorderWidth 1 *FvwmPager: Window3DBorders *FvwmPager: ShowTips *FvwmPager: FocusFore cornsilk #*FvwmPager: NoSeparators *FvwmPager: UseSkipList *FvwmPager: Colorset * 41 #前景色 *FvwmPager: HilightColorset * 42 #背景色 #*FvwmPager: Foreground grey90 #*FvwmPager: Background #1c5572 *FvwmPager: WindowColorsets $[cs-panel-wininactive] $[cs-panel-winactive] #*FvwmPager: Face VGradient 128 1 #2c80A0 1 #1c5572
Style FvwmPager NoTitle,WindowListSkip,BorderWidth 1, HandleWidth 1,Sticky,\ StaysOnTop,CirculateSkip #Style FvwmPager Sticky, NeverFocus, WindowListSkip, FixedPosition, \ FixedSize, StaysOnBottom, Handles, BorderWidth 1, HandleWidth 1, \ NoTitle, NoIcon, Colorset $[cs-panel-border], \ BorderColorset $[cs-panel-border], \ HilightColorset $[cs-panel-border], \ HilightBorderColorset $[cs-panel-border]
#PipeRead "echo DesktopSize ${FvwmPagerDesktops}x1" DesktopSize 8x1
style设置及解释
###########窗口样式#############
#以“style”开头的语句,用来设置所有窗口的样式。
style * Colorset 42, HilightColorset 41 # to use fg and bg #前景色和后景色 Style * Font "-adobe-helvetica-bold-r-*-*-12-*,-*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*" #字体 #Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine Style * Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff #标题栏上显示的按钮 Style * BorderWidth 0, HandleWidth 1 Style * NoIcon #关闭窗口最小化和最大化时的动画。(如你喜欢改变窗口时的动画,就注销此句) #窗口最小化时成图标时,默认放在屏幕的左侧。下句是可具体设置其放置在屏幕的位置。(这里设的是在屏幕下面) #Style * IconBox 50 1050 1050 +15, SloppyFocus, MouseFocusClickRaises Style * IndexedIconName Style * MinOverlapPercentPlacement Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50 Style * ResizeOutLine Style * MouseFocusClickRaises Style * FocusFollowsMouse #所有窗口,都是鼠标移进去的时候得到键盘聚焦,鼠标移出来就失去聚焦 Style * TileCascadePlacement #窗口出现的时候,先试图找一个可以放下它而不挡住其它窗口的地方,如果不行再采用层叠放置的方式 Style * DecorateTransient
#对所有名字以 "Fvwm" 开头的窗口(一般都是 FVWM 内部的模块)的设置。 #它们都没有标题栏(NoTitle),而且是sticky,也就是说即使桌面切换,它们也一直显示在屏幕上, Style "Fvwm*" NoTitle, Sticky, WindowListSkip #(BorderWidth 0)边框宽度为 0, CirculateSkip 说明当FVWM要求轮询窗口进行批量操作时,这些窗口不被计算在内 Style "Fvwm*" BorderWidth 0, CirculateSkipIcon, CirculateSkip #下面3行说明 FvwmPager, FvwmBanner ,FvwmButtons这3个模块一直显示在最上面,不被其他窗口覆盖。 #Style "FvwmPager" StaysOnTop #Style "FvwmBanner" StaysOnTop #Style "FvwmButtons" StaysOnTop,ClickToFocus
#下面是说明对于像“XMMS”等程序不添加标题栏。(XMMS自己有标题栏) #Style gaim NoTitle, EwmhMiniIconOverride Style xmms NoTitle Style xine NoTitle
#使用png图片装饰标题栏。 #AddToFunc StartFunction #+ I Exec fvwm-root -r $HOME/wallpapers/sea.png
#下面是定义了窗口使用的色彩。(其中41和42号是透明)其他文件里的色彩设定,我都用下面的号码表记。 #Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #4bba43, hi #91b6db, Translucent #283e5e 80 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 blut 15, bgTint blut 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
键盘,鼠标设定
#我的设定很简单,其具体的含义请看王哏的指南。
#Mouse 1 R A Nop Mouse 1 R A WindowList Mouse 1 1 A Menu MenuFvwmWindowOps Nop Mouse 1 2 A Close Mouse 1 6 A Iconify Mouse 1 4 A Maximize Mouse 3 R A Menu MenuFvwmRoot Mouse 1 T A Move-or-Raise Mouse 1 I A Move-or-Iconify Mouse 1 W M Move-or-Raise
Key F1 A M Exec exec xterm Key F2 A M Exec exec grun Key F3 A M Module FvwmConsole -terminal rxvt Key F4 A M Pick Close Key X A 4 Pick Destroy Key L A 4 Exec exec xscreensaver-command --lock Key I A 4 All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail Key X A CM Exec exec xmag Key F4 A CM Quit Key R A CM Restart
TitleStyle设置
#简单说,fvwm在标题栏里,于设了10个按钮的位置。基本上用不完,其排列为,从左边说,1 3 5 7 9 ,从右边说2 4 6 8 0。我只设了5个位置,其中8好位置还没完成。
# 设置标题栏的 # FVWM上面标题栏按扭的排列是 # 1 3 5 7 9 0 8 6 4 2 TitleStyle AllActive TiledPixmap bc.xpm ( ColorSet 8 -- Flat ) TitleStyle AllInactive TiledPixmap bc.xpm ( ColorSet 8 -- Flat ) TitleStyle Height 22 -- Flat
ButtonStyle All Simple -- UseTitleStyle ButtonStyle All -- Flat
AddButtonStyle 1 \ ActiveUp (Pixmap menu.png -- flat) \ ActiveDown (Pixmap menu.png -- flat) \ Inactive (Pixmap menu.png -- flat)
AddButtonStyle 2 \ ActiveUp (Pixmap close.png -- flat) \ ActiveDown (Pixmap close.png -- flat) \ Inactive (Pixmap close.png -- flat) AddButtonStyle 4 \ ActiveUp (Pixmap max.png -- flat) \ ActiveDown (Pixmap max.png -- flat) \ Inactive (Pixmap max.png -- flat) AddButtonStyle 6 \ ActiveUp (Pixmap min.png -- flat) \ ActiveDown (Pixmap min.png -- flat) \ Inactive (Pixmap min.png -- flat) AddButtonStyle 8 \ ActiveUp (Pixmap min.png -- flat) \ ActiveDown (Pixmap min.png -- flat) \ Inactive (Pixmap min.png -- flat)
#按钮的样式 ButtonStyle 2 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat ButtonStyle 6 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat ButtonStyle 4 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat ButtonStyle 8 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat ButtonStyle 1 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 2 active Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat ButtonStyle 4 active Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat ButtonStyle 6 active Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat ButtonStyle 8 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat ButtonStyle 1 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
f.autohiding设置
######模块自动隐藏##########
# The autohiding functions AddToFunc autohide + I ThisWindow ($0) Deschedule $[w.id] + I ThisWindow ($0) KeepRc ThisWindow (shaded) WindowShade off + I TestRc (!Match) All ($0, !shaded) autohide_hide $1 $2
AddToFunc autohide_hide + I Schedule $0 $[w.id] WindowShade $2 + I Schedule $0 $[w.id] Deschedule $[w.id]
# Start FvwmAuto AddToFunc StartFunction + I Module FvwmAuto FvwmAutohide -menter enter_handler
#下面以"+ I"开头的是你设定要隐藏的模块。最后一个参数“S”表示隐藏的方向,这里是“向上隐藏”。相应的参数有N, S, E, W, NW, NE, SW or SE。 # Add the windows you want to autohide AddToFunc enter_handler + I autohide FvwmButtons 500 S + I autohide FvwmPager 500 S # + I autohide FvwmTaskBar 500 N #由于taskbar(任务条)还可以在f.taskbar里设置隐藏功能,我就在这里注销了这句。
|
|
|
发表于: 2006-10-19,修改于: 2007-10-04 23:09,已浏览1914次,有评论4条
推荐
投诉
|
|
 |
|
 |
|  |
|
 |
 |
|
 |
网友评论
 |
|
 |
 |
网友:
gogo_u
| 时间:2006-10-20 10:23:40 IP地址:125.33.190.★ |
|
|
|
|
|
|
 |
|
 |
 |
|
 |
 |
网友:
本站网友 | 时间:2007-09-28 13:48:53 IP地址:222.64.9.★ |
|
|
|
强烈的顶顶顶!!!
15G空间=5个网站=500元/年 可免费试用
www.abcnic.com QQ:1012727
5GB 独立WEB空间、5GB 企业邮箱空间、5GB MSSQL数据库
IIS连接数据 500 个、500GB/月流量、共享日志文件空间
数据库功能
支持5GB MSSQL数据库空间,5个用户数据库、Access
主机功能支持
采用安全稳定的Win2003 .net2.0 架构
支持ASP、PHP、ASP.NET、PERL等脚本、支持自定义CGI
全面支持.net2.0版本,独立的Application应用池,
支持SSI(Shtml),支持FrontPage扩展
可免费自行绑定5个域名、500个解析、500个子域名
企业邮箱功能
赠送5GB 超大企业邮箱,500个Email企业邮箱用户
自动回复、自动转发、POP3、SMTP收发信、SMTP发信认证
邮件过滤、邮件拒收、邮件夹管理、邮件域管理、定制邮件数
|
|
|
|
 |
|
 |
 |
|
 |
 |
网友:
本站网友 | 时间:2007-12-01 15:22:37 IP地址:61.187.132.★ |
|
|
|
|
|
|
 |
|
 |
 |
|
 |
 |
网友:
leungfax | 时间:2007-12-04 13:30:00 IP地址:211.66.13.★ |
|
|
|
|
|
|
 |
|
 |
|  |
|
 |
|