我也发一个我的桌面
- nmsfan
- 帖子: 18958
- 注册时间: 2009-10-16 22:46
- 来自: finland
Re: 我也发一个我的桌面
介四????????
我看见刷新了
我看见刷新了
>>>>推Ubuntu 桌面培训~~<<<<
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
>>>>想加入/了解gimp汉化吗,点我吧~<<<<
——————————————————————
不推荐wubi,也不推荐你给别人推荐wubi…………
随心而为的感觉真好……
强推mayhem!!
强推ensiferum
- 寒声碎
- 帖子: 1723
- 注册时间: 2009-07-31 16:50
- 联系:
- 黄美姬
- 帖子: 8428
- 注册时间: 2009-10-08 11:15
- 来自: 大城市铁岭
Re: 我也发一个我的桌面
我们是命运的妓女,它把我们都嫖了
N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
终端彩色:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
终端彩色:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
- qy117121
- 论坛版主
- 帖子: 50587
- 注册时间: 2007-12-14 13:40
- 系统: Winbuntu
- 来自: 志虚国乌由市
- 联系:
- SmallV
- 论坛版主
- 帖子: 9017
- 注册时间: 2011-01-26 17:52
- 来自: 万林丛中的一抹浓绿,夹带落日余晖的安祥
- 月下叹逍遥
- 论坛版主
- 帖子: 33994
- 注册时间: 2010-10-07 14:23
- 系统: Archdows10
- 来自: 某系某星某洲某国某省某市
- 联系:
- 黄美姬
- 帖子: 8428
- 注册时间: 2009-10-08 11:15
- 来自: 大城市铁岭
Re: 我也发一个我的桌面
刷新绝对要,经常在ubuntu下要刷新,比如我传上一张图,打开了文件管理器,打开了图片目录AA,与此同时我在下载图片保存到目录AA,就算我下载完了,在上传对话里找不到这张图,必须关闭文件管理器重新点“上传”打开新的文件管理器,gnome与KDE都是这样,KDE曾经下载图片到桌面居然看不到,刷新后才看到
我们是命运的妓女,它把我们都嫖了
N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
终端彩色:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
终端彩色:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
- 寒声碎
- 帖子: 1723
- 注册时间: 2009-07-31 16:50
- 联系:
-
- 帖子: 12
- 注册时间: 2008-04-25 8:44
Re: 我也发一个我的桌面
Hi-Stupid 写了:lz能否共享fvwm配置
代码: 全选
# 设定scripts的存放位置
SetEnv fvwm_scripts $[FVWM_USERDIR]/scripts/
# 设定thumbnails存放临时图像的位置
SetEnv fvwm_temp $[FVWM_USERDIR]/tmp/
# 加入一些路径,FVWM在这些路径中查找后面要用到的图标
ImagePath $[FVWM_USERDIR]/icons:+
Emulate Win
OpaqueMoveSize unlimited
IgnoreModifiers L25
ColormapFocus FollowsFocus
# 窗口最大化是两边撑满,下面相应的留出26 for taskbar ,wbar for 40
EwmhBaseStruts 0 64 0 26
#EwmhBaseStruts 0 0 0 40
#使用EdgeScroll命令禁止flipping pages(鼠标不会因为接近屏幕边缘而进入相近的桌面)
EdgeScroll 0 0
EdgeResistance 150 150
EdgeThickness 4
# 用来设定桌面的大小,
DeskTopSize 2x2
##########################Menu############################
#下面这段是设定菜单的样式(透明的哦,我很喜欢),字体等相关参数。
MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent,fg white
MenuStyle * MenuColorset 0
MenuStyle * Foreground black
MenuStyle * Background #1c5572
MenuStyle * Font "-*-微软雅黑-medium-r-*-*-14-*-*-*-*-*-*-*:encoding=iso10646-1"
#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 "主菜单" Title
+ "终端" Exec exec terminal
+ "刷新桌面" Refresh
+ "刷新窗口" RefreshWindow
+ "主文件夹" Exec exec thunar
+ "星际译王" Exec exec stardict
+ "" Nop
+ "文件管理器" Popup MenuFile
+ "文本编辑器" Popup MenuEditors
+ "音频播放器" Popup MenuAudio
+ "视频播放器" Popup MenuVideo
+ "显示桌面" ShowDesk
+ "运行..." Module FvwmForm FvwmForm-Run
+ "" Nop
+ "退出" Popup MenuQuit-Verify
#下面是设定每个子菜单要显示的程序,可根据自己的情况删加
DestroyMenu MenuFile
AddToMenu MenuFile
+ "dolphin" Exec exec dolphin
+ "thunar" Exec exec thunar
DestroyMenu MenuEditors
AddToMenu MenuEditors
+ "Kwrite" Exec exec kwrite
+ "Kate" Exec exec kate
+ "mousepad" Exec exec mousepad
DestroyMenu MenuAudio
AddToMenu MenuAudio
+ "xmms" Exec exec xmms
+ "audacious" Exec exec audacious
DestroyMenu MenuVideo
AddToMenu MenuVideo
+ "Gmplayer" Exec exec gmplayer
+ "Xine" Exec exec xine
DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify "Really Quit Fvwm?" Title
+ "重启FVWM" Restart
+ "退出FVWM" QuiT
+ "锁定屏幕" Exec exec xlock
+ "" Nop
+ "关机" Exec exec sudo /sbin/halt
+ "重启" Exec exec sudo /sbin/reboot
+ "" Nop
#+ "取消" Nop
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+ "更改大小" Pick Resize
+ "移动窗口" Pick Move
+ "窗口置顶" Pick SetWinLev 6
+ "窗口置底" Pick SetWinLev 2
+ "恢复正常" Pick SetWinLev 4
+ "" Nop
+ "卷起窗口" Pick WindowShade Toggle
+ "全屏显示" Pick FuncFullScreen
+ "" Nop
#+ "Stick" Pick Stick
+ "滚动条显示" Pick Module FvwmScroll
+ "刷新窗口" Pick RefreshWindow
#+ "" Nop
#+ "Identify" Pick Module FvwmIdent
+ "放大显示" Pick Exec exec xmag -source $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2
+ "" Nop
+ "关闭窗口" Close
+ "强行中止" 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
DestroyFunc ThumbnailFunc
AddToFunc ThumbnailFunc
+ I Raise
+ M Nop
+ C Thumbnail
DestroyFunc SetWinLev
AddToFunc SetWinLev
+ I Pick (Layer $0) Layer 0 4
+ I TestRc (Match) Current Raise
+ I TestRc (Match) Break 1
+ I Pick Layer 0 $0
###################运行对话框 ###############################
DestroyModuleConfig FvwmForm-Run: *
*FvwmForm-Run: WarpPointer
*FvwmForm-Run: Title "运行 ..."
*FvwmForm-Run: Line left
*FvwmForm-Run: Font -*-微软雅黑-medium-r-*-*-12-*-*-*-*-*-*-*:encoding=iso10646-1
*FvwmForm-Run: ButtonFont -微软雅黑-medium-r-*-*-12-*-*-*-*-*-*-*:encoding=iso10646-1
*FvwmForm-Run: Text " "
*FvwmForm-Run: Line left
*FvwmForm-Run: Text "命令:"
*FvwmForm-Run: Input CMD 25 ""
*FvwmForm-Run: Line left
*FvwmForm-Run: Text " "
*FvwmForm-Run: Line expand
*FvwmForm-Run: Text ""
*FvwmForm-Run: Button quit " 运行 " ^M
*FvwmForm-Run: Command Exec exec $(CMD) &
*FvwmForm-Run: Text ""
*FvwmForm-Run: Text ""
*FvwmForm-Run: Button quit " 取消 "
*FvwmForm-Run: Command Nop
*FvwmForm-Run Hilight3DOff, HilightBack #424164, ActiveFore white
*FvwmForm-Run: Colorset 41, Transparent, fg white
*FvwmForm-Run: Foreground white
*FvwmForm-Run: Background #1c5572
###################关于show desktop ###############################
###参见Tavis Ormandy的配置
# FvwmEvent can bind Commands to Events
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: deiconify DeThumbnail
*FvwmEvent: add_window NewWindowFunc
*FvwmEvent: new_desk "SendToModule DeskControl ChangeButton desk Title $$[desk.n]"
# Enroulement de la fenêtre
DestroyFunc ShadeOrMoveFunc
AddToFunc ShadeOrMoveFunc
+ I Raise
+ D WindowShade
+ M Move
# Fermeture de la fenêtre
DestroyFunc CloseFunc
AddToFunc CloseFunc
+ I Raise
+ C Close
+ M Nop
# Maximisation de la fenêtre
DestroyFunc MaximizeFunc
AddToFunc MaximizeFunc
+ I Raise
+ C Maximize
+ M Nop
# Maximisation horizontale de la fenêtre
DestroyFunc HoryMaximizeFunc
AddToFunc HoryMaximizeFunc
+ I Raise
+ C Maximize 100 0
+ M Nop
# Maximisation verticale de la fenêtre
DestroyFunc VertMaximizeFunc
AddToFunc VertMaximizeFunc
+ I Raise
+ C Maximize 0 100
+ M Nop
# Iconification de la fenêtre
DestroyFunc IconifyFunc
AddToFunc IconifyFunc
+ I Raise
+ C Iconify
+ M Nop
DestroyFunc ThumbnailFunc
AddToFunc ThumbnailFunc
+ I Raise
+ M Nop
+ C Thumbnail
# Déiconification de la fenêtre en réorganisant les autres icônes
DestroyFunc IconFunc
AddToFunc IconFunc
+ C DeiconifyAndRearrange
+ D DeiconifyAndRearrange
+ M Raise
+ M Move
DestroyFunc DeiconifyAndRearrange
AddToFunc DeiconifyAndRearrange
+ I DeThumbnail
+ I All (CurrentPage, Iconic) PlaceAgain Anim Icon
# Colle la fenêtre à tous les écrans et bureaux
DestroyFunc StickFunc
AddToFunc StickFunc
+ I Raise
+ C Stick
+ M Nop
# Déplacement de la fenêtre
DestroyFunc MoveFunc
AddToFunc MoveFunc
+ I Raise
+ M Move
# Redimensionnement de la fenêtre
DestroyFunc ResizeFunc
AddToFunc ResizeFunc
+ I Raise
+ M Resize direction SE warptoborder
+ C Menu WindowMenu
# Centrage de la fenêtre
DestroyFunc CenterWindow
AddToFunc CenterWindow
+ I ThisWindow Piperead 'echo AnimatedMove \
$$(( $[vp.width]/2-$[w.width]/2 ))p \
$$(( $[vp.height]/2-$[w.height]/2 ))p'
DestroyModuleConfig FvwmEvent: *
*FvwmEvent: deiconify DeThumbnail
###最小化桌面缩略图大小
SetEnv fvwm_icon_size 256
###
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (!Iconic) SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
"xwd -silent -id $[w.id] | convert -scale 256 -frame 1x1 \
-mattecolor black -quality 0 -filter blackman xwd:- png:$[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png \
&& echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png \
|| echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png) PipeRead \
"composite -geometry +2+4 $[w.miniiconfile] $[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png \
$[FVWM_USERDIR]/tmp/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify
DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead "echo Test \\(i \\$\\[Icon-$[w.id]\\]\\) WindowStyle Icon \\$\\[Icon-$[w.id]\\]"
+ I TestRc (NoMatch) WindowStyle NoIconOverride, Icon
+ I Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png
+ I All (Iconic, CurrentPage, AnyScreen) PlaceAgain icon
+ I UnsetEnv Icon-$[w.id]
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
## Redéfinition de l'action du selecteur de fenêtre
#DestroyFunc WindowListFunc
#AddToFunc WindowListFunc
#+ I Iconify off
#+ I FlipFocus
#+ I Raise
#+ I WindowShade False
#+ I WarpToWindow 50 50
#自定义的获取焦点函数,获取焦点的同时把窗口移到当前的桌面(页面)
DestroyFunc cFlipFocus
AddToFunc cFlipFocus
+ I FlipFocus $*
+ I MoveToPage $[page.nx] $[page.ny]
#自定义图标化窗口,记住窗口当前所处的高度(底部/正常/置顶),
#因为我的默认是把图标化的窗口置底,鼠标碰桌面底边是所有图标升起,
#这就改变了原因的高度,所有有必要记录原来的状态。
#前两行可以实现用缩略图代替图标,不过因为是convert处理出来的有点慢。
DestroyFunc cusIconify
AddToFunc cusIconify
+ I Pick (!Iconic) SetEnv layer-$[w.id] $[w.layer]
+ I Iconify $*
+ I Pick (Iconic) Layer 0 2
+ I TestRc PipeRead `echo Layer 0 \$[layer-$[w.id]];echo UnsetEnv layer-$[w.id]`
DestroyFunc WindowListFunc
AddToFunc WindowListFunc
+ I cusIconify off
+ I cFlipFocus NoWarp
+ I WindowShade False
+ I Raise
##############窗口图标化(Iconify) 和取消图标化(Deinconify) 的时候都有漂亮的动画########
*FvwmAnimate: Effect Random
*FvwmAnimate: Twist 2
*FvwmAnimate: Delay 10
*FvwmAnimate: Iterations 10
*FvwmAnimate: Width 2
###########窗口样式#############
#以“style”开头的语句,用来设置所有窗口的样式。
style * Colorset 42, HilightColorset 41 # to use fg and bg
#前景色和后景色
Style * Font -*-微软雅黑-medium-r-*-*-12-*-*-*-*-*-*-*:encoding=iso10646-1
#字体
#Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine
Style * Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff
#标题栏上显示的按钮
Style * BorderWidth 10, HandleWidth 2
#Style * NoIcon #关闭窗口最小化和最大化时的动画。(如你喜欢改变窗口时的动画,就注销此句)
#窗口最小化时成图标时,默认放在屏幕的左侧。下句是可具体设置其放置在屏幕的位置。(这里设的是在屏幕下面)
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style * ResizeOutLine
#窗口获得焦点方式,点击获得,新窗口自动获得焦点
Style * MouseFocusClickRaises
Style * FPGrabFocus
#所有窗口,都是鼠标移进去的时候得到键盘聚焦,鼠标移出来就失去聚焦
#Style * TileCascadePlacement
#窗口出现的时候,先试图找一个可以放下它而不挡住其它窗口的地方,如果不行再采用层叠放置的方式
Style * DecorateTransient
Style * ClickToFocus, NoLenience
Style FvwmForm MouseFocus, NoLenience
#对所有名字以 "Fvwm" 开头的窗口(一般都是 FVWM 内部的模块)的设置。
#它们都没有标题栏(NoTitle),而且是sticky,也就是说即使桌面切换,它们也一直显示在屏幕上,
Style "Fvwm*" NoTitle, Sticky, WindowListSkip
#(BorderWidth 0)边框宽度为 0, CirculateSkip 说明当FVWM要求轮询窗口进行批量操作时,这些窗口不被计算在内
#Style "Fvwm*" BorderWidth 1, CirculateSkipIcon, CirculateSkip
#下面3行说明 FvwmPager, FvwmBanner ,FvwmButtons这3个模块一直显示在最上面,不被其他窗口覆盖。
#Style "FvwmPager" StaysOnTop
#Style "FvwmBanner" StaysOnTop
#Style "FvwmButtons" StaysOnTop,NeverFocus
#下面是说明对于像“XMMS”等程序不添加标题栏。(XMMS自己有标题栏)
Style xmms NoTitle, EwmhMiniIconOverride
Style qq NoTitle, EwmhMiniIconOverride
Style *QQ* NoTitle, EwmhMiniIconOverride#wineqq
Style gmplayer NoTitle, EwmhMiniIconOverride
style beep-media-player NoTitle, EwmhMiniIconOverride
Style lrcShow-X NoTitle, EwmhMiniIconOverride
#下面是定义了窗口使用的色彩。(其中41和42号是透明)其他文件里的色彩设定,我都用下面的号码表记。
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 41 RootTransparent buffer, fg white, bg average, Tint black 15, bgTint Tint 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 6 A Thumbnail
Mouse 2 6 A All (CurrentPage,!Fvwm*,!Iconic,!This,!benliu*) Thumbnail
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 F2 A M Module FvwmForm FvwmForm-Run
Key F3 A M Menu MenuFvwmRoot
Key F4 A M Pick Close
Key D A M Pick Thumbnail
Key X A 4 Pick Destroy
Key L A 4 Exec exec xscreensaver-command --lock
#Key D A C All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail
Key X A CM Exec exec xmag
Key Q A CM Quit
Key R A CM Restart
#替换默认的alt+tab
Key Tab A M -
Key Tab A M WindowList
Key XF86AudioLowerVolume A A exec exec amixer set Master 2%-
Key XF86AudioRaiseVolume A A exec exec amixer set Master 2%+
Key XF86AudioMute A A exec exec amixer set Master toggle
Key F5 A M Refresh
#win键+f当前窗口全屏显示切换
Key F A 4 FuncFullScreen
#win键+D显示桌面
Key D A 4 ShowDesk
#win键+L锁定计算机
Key L A 4 exec exec xlock
#简单说,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 option.png -- flat) \
ActiveDown (Pixmap option.png-- flat) \
Inactive (Pixmap option.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 max.xpm -- flat) \
#ActiveDown (Pixmap max.xpm -- flat) \
#Inactive (Pixmap max.xpm -- 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
#===========================================================================
#==========================================================================
#这个是For-fvwm2rc-FvwmPager文件
#================================================
#================================================
#这个就是fvwm-2.5.16的自己的配置文件,我只是稍微修改
AddToFunc StartFunction I FvwmButtons BarButtons
AddToFunc StartFunction I FvwmButtons DeskerPanelButtons
#AddToFunc StartFunction I FvwmButtons MiniButtons
#------------------------------------------------------------------------------
#------------------ FvwmButtons: BarButtons
#------------------------------------------------------------------------------
Style BarButtons NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 1, CirculateSkip,StaysOnTop,NeverFocus
DestroyModuleConfig BarButtons:
*BarButtons: Colorset 41
*BarButtons: Foreground white
*BarButtons: Background #1c5572
*BarButtons: Font "xft:微软雅黑:Bold:pixelsize=10;-*-微软雅黑-bold-r-*-*-10-*-*-*-*-*-*-*:encoding=iso10646-1"
# Geometry - really likes to pick its own size, but giving a position is OK
# Warning: I've added a size geometry to avoid pbs if the fvwm_icons are
# not in the image path ! Remove the size in this geometry especially if
# you add buttons
*BarButtons: Geometry 65x740-0-25
# Layout: specify rows or columns, not both
*BarButtons: Columns 1
#PREF 3
#这些图标都是系统自带的,在/usr/share/icons里面,我只是把它们放到这里了,改了#名字好记住,左右健的功能以及那9个小图标的功能
*BarButtons: (1x1, Title 主菜单, Icon start.png, Action(Mouse 1) Menu MenuFvwmRoot,\
Action(Mouse 3) WindowList)
*BarButtons: (1x1, Title 文件管理, Icon folder_home32.png, Action(Mouse 1) 'Exec exec thunar')
*BarButtons: (1x1, Title 终端, Icon terminal32.png, Action(Mouse 1) 'Exec exec terminal')
*BarButtons: (1x1, Title 音乐播放, Icon audacious.png, Action(Mouse 1) 'Exec exec audacious',\
Action(Mouse 3)'Exec exec xmms' )
*BarButtons: (1x1, Title 视频播放, Icon vlc.png, Action(Mouse 1) 'Exec exec gmplayer')
*BarButtons: (1x1, Title 文本编辑 , Icon abiword32.png, Action(Mouse 1) 'Exec exec mousepad',\
Action(Mouse 3)'Exec exec /opt/libreoffice3.4/program/soffice.bin' )
*BarButtons: (1x1, Title 浏览器, Icon opera.png, Action(Mouse 1) 'Exec exec opera',\
Action(Mouse 2)'Exec exec firefox',\
Action(Mouse 3)'Exec exec freedom' )
*BarButtons: (1x1, Title QQ, Icon eva.png, Action(Mouse 1) 'Exec exec eva',\
Action(Mouse 2)'Exec exec wine /home/XXXXXXXXX/.wine/drive_c/Program\ Files/Tencent/QQIntl/Bin/QQ.exe',\
Action(Mouse 3)'Exec exec QQLnk' )
#*BarButtons: (1x1, Swallow "wmclock" "Exec exec wmclock")
#*BarButtons: (1x1, Swallow "wmmixer" "Exec exec wmmixer -a")
*BarButtons: (1x1, Swallow "FvwmPagerPager" 'FvwmPager FvwmPagerPager * *')
#*BarButtons: (1x2, Swallow (NoClose,UseOld) "stalonetray" "Exec exec stalonetray -t --max-width 50 --no-shrink true")
*BarButtons: (1x1, Swallow "wmmon" "Exec exec wmmon")
*BarButtons: (1x1, Swallow "wmsystemtray" "Exec exec wmsystemtray --non-wmaker --bgcolor black")
#------------------------------------------------------------------------------
#------------------ FvwmPager: Swallowed by ButtonBar
#------------------------------------------------------------------------------
Style "FvwmPagerPager" !Title, !Handles, Sticky, WindowListSkip, CirculateSkip
DestroyModuleConfig FvwmPagerPager: *
*FvwmPagerPager: UseSkipList
*FvwmPagerPager: Back white
*FvwmPagerPager: Fore black
*FvwmPagerPager: Colorset * 41
*FvwmPager: HilightColorset * 41
*FvwmPagerPager: Font "xft:微软雅黑:Bold:pixelsize=10;-微软雅黑-bold-r-*-*-10-*-*-*-*-*-*-*:encoding=iso10646-1"
*FvwmPagerPager: Hilight black
*FvwmPagerPager: MiniIcons
*FvwmPagerPager: Balloons
*FvwmPagerPager: BalloonFore white
*FvwmPagerPager: BalloonBack black
*FvwmPagerPager: BalloonFont "xft:微软雅黑:Medium:pixelsize=10;-微软雅黑-bold-r-*-*-10-*-*-*-*-*-*-*:encoding=iso10646-1"
*FvwmPagerPager: Geometry 319x69+5000+5000
*FvwmPagerPager: WindowColors black white white SlateBlue
*FvwmPagerPager: Label 0 我的桌面
*FvwmPagerPager: SmallFont "xft:微软雅黑:Medium:pixelsize=8;-微软雅黑-bold-r-*-*-10-*-*-*-*-*-*-*:encoding=iso10646-1"
#全屏显示
DestroyFunc FuncFullScreen
AddtoFunc FuncFullScreen
+ I Current (State 0) Fullscreen-Stop
+ I TestRc Current (Maximizable) Fullscreen-Start
DestroyFunc Fullscreen-Start
AddtoFunc Fullscreen-Start
+ I WindowStyle NoTitle,HandleWidth 0,FixedSize,FixedPosition
+ I Current (!Maximized) Maximize
+ I ResizeMaximize 100 100
+ I State 0 true
DestroyFunc Fullscreen-Stop
AddtoFunc Fullscreen-Stop
+ I DestroyWindowStyle
+ I State 0 false
+ I Maximize
AddToFunc Raisetotop
+ I Layer 0 ontop
+ I Raise
####################FvwmTaskBar任务条######################
Style FvwmTaskBar NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 1, CirculateSkip,StaysOnTop,NeverFocus
DestroyModuleConfig FvwmTaskBar: *
*FvwmTaskBar: Geometry -0-0
*FvwmTaskBar: Rows 1
*FvwmTaskBar: Columns 1
*FvwmTaskBar: Font -*-微软雅黑-medium-r-*-*-12-*-*-*-*-*-*-*:encoding=iso10646-1
*FvwmTaskBar: SelFont -*-微软雅黑-medium-r-*-*-12-*-*-*-*-*-*-*:encoding=iso10646-1
*FvwmTaskBar: AutoStick
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: PageOnly
*FvwmTaskBar: ShowTips
*FvwmTaskBar: TipsColorset 0
*FvwmTaskBar: NoBrightFocus
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: MailCheck 0
*FvwmTaskBar: Colorset 41, Transparent, fg white
*FvwmTaskBar: IconColorset 41
*FvwmTaskBar: TipFore black
#在任务条上显示的快捷程序。
*FvwmTaskBar: Button NoTitle , Icon desktop.png, Action (Mouse 1) ShowDesk
#*FvwmTaskBar: Button NoTitle , Icon folder_home.png, Action (Mouse 1) Exec exec kfmclient openURL $HOME
#右下角显示时间,日期macDock
#*FvwmTaskBar: ClockFormat %R
#*FvwmTaskBar: ClockFormat %R %d/%m
#这个函数实现的是Windows的Win+D键的功能,基本思想是如果桌面上有没有 最小化的窗口那么最小化所有的桌面上的窗口,如果所有的窗口都已最小化了那 么还原所有的窗口。函数代码如下:
DestroyFunc ShowDesk
AddToFunc ShowDesk
+ I All (AcceptsFocus CurrentPage !Iconic !Shaded) Thumbnail
+ I TestRc (NoMatch) All (CurrentPage Iconic) Iconify
# 这里是FVWM的启动函数,加载一些模块
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Module FvwmEvent
+ I Module FvwmTaskBar
+ I Exec exec /home/XXXXXXXXX/.kde/Autostart/fcitx.sh
+ I Exec exec wicd-gtk
#+ I Exec exec fbsetbg -f ~/.fvwm/wallpapers/1.jpg
+ I Exec exec volumeicon
+ I Exec exec wmsetbg ~/.fvwm/wallpapers/f1.jpg
# 下面是FVWM的退出函数,你可以在这里加入一些FVWM退出时要执行的打操作
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec rm -f ${HOME}/.fvwm/tmp/*
+ I Exec exec sync