当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 16 篇帖子 ]  前往页数 1, 2  下一页
作者 内容
1 楼 
 文章标题 : 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 9:17 

注册: 2005-07-29 0:42
帖子: 140
送出感谢: 0 次
接收感谢: 0 次
算是备份了:)

鼠标右键和文件管理器
附件:
3.png
3.png [ 1.09 MiB | 被浏览 1287 次 ]



音乐播放器,便签,pidgin,opera
附件:
2.png
2.png [ 815.93 KiB | 被浏览 1197 次 ]



工作用文档处理,abiword,gnumeric,cxoffice装的visio
附件:
1.png
1.png [ 694.46 KiB | 被浏览 1501 次 ]



代码:
##设置环境路径
SetEnv fvwm_home   $[HOME]/.fvwm
SetEnv fvwm_scripts   $[fvwm_home]/scripts
SetEnv fvwm_wallpapers   $[fvwm_home]/wallpapers
SetEnv fvwm_thumbnail   $[fvwm_home]/thumb
SetEnv fvwm_config      $[fvwm_home]/configure
##设置系统用到的字体,这里中英文只用一种字体
#setEnv fvwm_font        "xft:微软雅黑:Bold:size=8:encoding=iso10646-1"
setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Book:size=9:encoding=iso10646-1"
#setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Bold:size=8:encoding=iso10646-1"
#setEnv fvwm_font        "xft:iYaHei:Bold:size=8:encoding=iso10646-1"
################################################################################
#                           全局设置
################################################################################
#设置默认字体
DefaultFont        $[fvwm_font]
Style * Font       $[fvwm_font]
#----------------------------global--------------------------------------
#设置程序风格
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
Style "Fvwm*"      Sticky, Title, Handles, WindowListHit, CirculateSkip
Style "FvwmPager"   !Title, !Handles, WindowListSkip,!WindowListHit
Style  "xpad*"       !Iconifiable,  !Title ,StaysOnBottom , Sticky, WindowListSkip
#设置程序启动所在的page
Style  *gmpc             StartsOnPage 0 2
Style  *MPlayer          StartsOnPage 1 2
Style  *Liferea          StartsOnPage 2 1
Style  *opera            StartsOnPage 2 2
#Style  *thunar           geometry 100x60+240+240
#Style  *evince           StartsOnPage 3 0
#Style  *gvim             StartsOnPage 3 1
#Style  *pcmanfm          StartsOnPage 3 2
#Style  *          StartsOnPage 3 0
#Style  *          StartsOnPage 3 1
#Style  *          StartsOnPage 3 2
# -------------------------- Focus and Placement --------------------------
Style * ResizeHintOverride
Style * ClickToFocus, ClickToFocusPassesClick, ClickToFocusRaises, MouseFocusClickRaises
ColormapFocus FollowsMouse
Style * TileCascadePlacement, GrabFocus, NoPPosition
# ---------------------------- Move and Resize ----------------------------
Style * ResizeOutLine
OpaqueMoveSize 5
Emulate FVWM
HideGeometryWindow All
BugOpts FlickeringMoveWorkaround Off
Style * SnapAttraction SameType
Style * SnapGrid 1 1
XorValue 0
## ---------------------- Paging and Mouse Parameters ----------------------
EdgeScroll 0 0
EdgeResistance 500 
Style * EdgeMoveDelay 50
Style * EdgeMoveResistance 0
EdgeThickness 2
ClickTime 10
#DoubleClickTime 500
EwmhBaseStruts 0 0 0 0
MoveThreshold 3
## -------------------- Transient Windows and Animation --------------------
Style * DecorateTransient, DontRaiseTransient, DontLowerTransient, DontStackTransientParent, GrabFocusTransient
Style * WindowShadeSteps 20, WindowShadeScrolls
SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
## -------------------- Hints, Busy Cursor and Advanced --------------------
Style * MwmDecor, OLDecor, NoOverride, MwmFunctions, GNOMEUseHints
BugOpts ModalityIsEvil on
BusyCursor Read on, Wait on, ModuleSynchronous on
BugOpts MixedVisualWorkaround off
BugOpts RaiseOverNativeWindows off
Style * SaveUnderOff, BackingStoreOff
ModuleTimeout 10
##############################################################################
#                           窗口修饰以及按钮动作
##############################################################################
Style * BorderWidth 2, HandleWidth 1
Style * MWMBorder, FirmBorder
Style * UseDecor MyDecor
Style * IconBox 900x700+10+50, IconGrid 4 4, IconFill top left
Style * NoIconTitle

DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle   Active   (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/top.png) \
      InActive (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/un_top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/un_top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/un_top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/un_top.png) \
          Centered
+ TitleStyle Height 22
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ BorderStyle Active   TiledPixmap $[fvwm_config]/window/border.png
+ BorderStyle Inactive TiledPixmap $[fvwm_config]/window/border.png
+ ButtonStyle 2 \
  Active         (Pixmap $[fvwm_config]/window/close-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/close-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/close-inactive.png -- Flat)
+ ButtonStyle 4 \
  Active         (Pixmap $[fvwm_config]/window/maximize-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/maximize-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/maximize-inactive.png -- Flat)
#+ ButtonStyle 6 MiniIcon
+ ButtonStyle 6 \
  Active         (Pixmap $[fvwm_config]/window/iconify-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/iconify-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/iconify-inactive.png -- Flat)
+ ButtonStyle 1 \
  Active         (Pixmap $[fvwm_config]/window/menu-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/menu-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/menu-inactive.png -- Flat)
+ ButtonStyle All -- UseTitleStyle

Mouse 1 4 A FuncFvwmMaximize
Mouse 1 6 A FuncFvwmIconify
Mouse 1 I A FuncFvwmDeIconify
Mouse 1 2 A Close
Mouse 1 W M Move
Mouse 3 6 A All (CurrentPage,!Fvwm*B*) Thumbnail_on
#Mouse 1       
###############################################################################
#                            鼠标主题
###############################################################################
CursorStyle root     left_ptr
CursorStyle default  left_ptr
CursorStyle position left_ptr
CursorStyle sys      left_ptr
CursorStyle menu     left_ptr
CursorStyle title    left_ptr
CursorStyle resize   fleur
CursorStyle stroke   crosshair
CursorStyle select   draped_box
###############################################################################
#                            调用函数
###############################################################################
DestroyFunc FuncFvwmMaximize
AddToFunc   FuncFvwmMaximize
+ C Maximize

DestroyFunc FuncFvwmSimpleMaximize
AddToFunc   FuncFvwmSimpleMaximize
+ I Maximize $0

DestroyFunc FuncFvwmIconifySameResource
AddToFunc   FuncFvwmIconifySameResource
+ I All ($r) Iconify $0

DestroyFunc FuncFvwmIconify
AddToFunc   FuncFvwmIconify
+ C Thumbnail

DestroyFunc FuncFvwmDeIconify
AddToFunc   FuncFvwmDeIconify
+ C DeThumbnail

DestroyFunc Thumbnail_on
AddToFunc Thumbnail_on
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify on

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify

DestroyFunc   DeThumbnail
AddToFunc   DeThumbnail
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*.png 2>>/dev/null
+ I Iconify
###############################################################################
#                            fvwm初始化启动注销重启
###############################################################################
*FvwmAnimate: Delay 15
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 0

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Module FvwmPager  FvwmPager
+ I Module FvwmButtons MyDock
+ I Module FvwmAnimate
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 204  --heighttype pixel --height 24 --align right  --transparent true --alpha 255  --edge bottom --margin 1
#+ I Exec exec xcompmgr -Ss -n -Cc -fF -I-10 -O-10 -D1 -t-3 -l-4 -r4
+ I Exec exec wicd-client
#+ I Exec exec xpad
+ I Exec exec mpd
+ I Exec exec xscreensaver  -no-splash
+ I Exec exec fcitx

DestroyFunc InitFunction
AddToFunc   InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/ww.png

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I Nop

AddToFunc ExitFunction
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*$[w.id].png 2>>/dev/null
+ I Exec exec killall  FvwmPager               > /dev/null 2>&1
+ I Exec exec killall  FvwmAnimate             > /dev/null 2>&1
+ I Exec exec killall  FvwmButtons             > /dev/null 2>&1
+ I Exec exec killall  trayer                  > /dev/null 2>&1
+ I Exec exec killall  mpd                     > /dev/null 2>&1
###############################################################################
#                            FvwmPager
###############################################################################
Colorset 32  fg #F6EF04,RootTransparent
Module FvwmPager 0 0
Style "FvwmPager" !Title, !Handles, !Borders, Sticky, WindowListSkip, \
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 5x3

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry -1-24
*FvwmPager: Font none
*FvwmPager: Columns 1
*FvwmPager: Colorset        * 32
*FvwmPager: BackColorset    * 32
*FvwmPager: HilightColorset * 32
*FvwmPager: BalloonColorset * 32
*FvwmPager: WindowColorset  * 32
*FvwmPager: Font  $[fvwm_font]
*FvwmPager: Balloons
*FvwmPager: BalloonFont $[fvwm_font]
*FvwmPager: BallonYOffset 1
*FvwmPager: MiniIcons
*FvwmPager: Rows 1
Style "MyDock" !Title, !Handles, Sticky, WindowListSkip, \
        CirculateSkip, BorderWidth 0, HandleWidth 0
DestroyModuleConfig MyDock: *
*MyDock: ButtonGeometry   64x64-1+0
*MyDock: Columns          1
*MyDock: Frame            0
*MyDock: (Frame 0 ,Swallow  "wmcalclock" 'Exec wmcalclock -24 -b 100')

###############################################################################
#menu
###############################################################################
#Colorset 42 fg #FA0508 , bg #E8E8E8
Colorset 42 fg #ffffff , bg #366AE9
Colorset 43 fg #000000 , bg #EDE8D4

MenuStyle * Mwm
MenuStyle * Hilight3DOff, HilightBack
MenuStyle * MenuColorset 43
MenuStyle * ActiveColorset 42
MenuStyle * TitleColorset 43
MenuStyle * BorderWidth 1, SidePic, SideColor
MenuStyle * ItemFormat "%|%i%6p%l%|%|%|%>%i%"
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * PopupDelayed, PopupDelay 0, PopdownImmediately, PopdownDelay 0
MenuStyle * Animation
#MenuStyle * NoCurrentDeskTitle
MenuStyle * TrianglesSolid
MenuStyle * Font $[fvwm_font]
################################################################################
#                            快捷键
################################################################################
DestroyFunc single-thread
AddToFunc single-thread
+ I All ($0) EWMHActivateWindowFunc
+ I TestRc (NoMatch) Exec exec $1 &

Key 1     A M     Gotopage 0 0
Key 2     A M     Gotopage 1 0
Key 3     A M     Gotopage 0 1
Key 4     A M     Gotopage 1 1
Key 5     A M     Gotopage 4 2
#关闭
Key W     A M     Silent Close
#最大化
Key M     A M     Silent Maximize
#最小化到桌面
Key V     A M     Silent Thumbnail
#调用文件管理器
Key E     A M     Exec exec thunar
#单进程程序
Key S     A M     single-thread "stardict" stardict
Key F     A M     single-thread "Opera" opera
#打开运行对话框
Key R     A M     Exec exec  grun
#打开鼠标右键
Key C     A M     Exec exec  apwal
#gvim
Key G     A M     Exec exec  gvim -geometry 80x20+240+240
#终端
Key T     A M     Exec exec  rxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
#自己的脚本,声音控制,抓图,延迟抓图
Key F12   A N     Exec exec $[fvwm_scripts]/sound_up
Key F11   A N     Exec exec $[fvwm_scripts]/sound_down
Key Print A M     Exec exec $[fvwm_scripts]/snapshot
Key Print A N     Exec exec $[fvwm_scripts]/snapshot_w
#切换应用程序
Key Tab   A M     WindowList Root c c CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#下面是调用刷新桌面函数
Key b     A M     All (CurrentPage,!Fvwm*B*) Thumbnail_on
###############################################################################
#                            鼠标操作
###############################################################################
Mouse 1   R A   -
Mouse 3     R A   Exec exec apwal
Mouse 2     R A   WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke 620  1 R N All (CurrentPage,!Fvwm*B*) Thumbnail_o
#Stroke N620 1 A C WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke N7896321 0 A C Exec exec stardict


.Xdefaults配置文件
代码:
#URxvt.perl-ext-common: default,tabbed
#URxvt.preeditType:Root
URxvt.background:black
URxvt.foreground:      green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.color12:         #AAAAFF
URxvt.cursorColor:     orange
#URxvt.scrollBar:True
#URxvt.scrollBar_right:True
#URxvt.scrollBar_floating: False
#URxvt.scrollstyle: next
#URxvt.cursorBlink:     true
#URxvt.title:python's urxvt
#Xft.dpi:96
URxvt.preeditType:OverTheSpot
URxvt.multichar_encoding:utf8
URxvt.scrollBar:False
URxvt.saveLines:       10000
URxvt.geometry:        80x13+240+240
URxvt.font:            xft:DejaVuSansYuanTiMono:Bold:size=9
URxvt*imlocale: zh_CN
URxvt.inputMethod:fcitx
Xcursor.theme:bb_cursor
##
!look and feel
xterm*inputMethod:fcitx
xterm*geometry: 100x13+240+240
xterm*background:black
xterm*foreground:      green
xterm*colorBD:yellow
xterm*colorUL:green
xterm*color12:         #AAAAFF
xterm*cursorColor:     orange
!fix alt key input
xterm*eightBitInput: false
xterm*altSendsEscape: true
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*faceName:           xft:DejaVuSansYuanTiMono:Bold:size=9:antialias=True
#xterm*font:   DejaVuSansYuanTiMono:bold:size=9
#xterm*fontMenu*fontdefault*Label: Default
#xterm*faceName: Monaco:antialias=True:pixelsize=15
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9
#xterm*faceName:           DejaVuSansYuanTiMono:bold:size=9:antialias=True
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9:antialias=True
#!xterm*faceName: monofur:antialias=True:pixelsize=20
#!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
#xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
#xterm*cjkWidth:false


.gtkrc-2.0配置文件
代码:
#这将设置 GTK 程序的主题。将引号中的内容换成你自己喜欢的主题名称(下同)
gtk-theme-name = "bb_theme"
#设置所用的图标主题
gtk-icon-theme-name = "bb_icon"
#设置鼠标指针主题
gtk-cursor-theme-name = "bb_cursor"
#设置 GTK 程序用的字体
#gtk-font-name = "微软雅黑 Bold 8"
#gtk-font-name = "iYaHei Normal 8"
gtk-font-name = "DejaVuSansYuanTiCondensed Book 9"
#gtk-toolbar-style = GTK_TOOLBAR_ICONS


最后由 pythonlong 编辑于 2009-05-09 9:40,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 9:20 
头像

注册: 2007-11-29 9:41
帖子: 8455
送出感谢: 0 次
接收感谢: 0 次
好多个虚拟桌面啊


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 9:29 

注册: 2005-07-29 0:42
帖子: 140
送出感谢: 0 次
接收感谢: 0 次
lerosua 写道:
好多个虚拟桌面啊

嘿嘿,

不多不少:)

其实开始是为了主题好看。。

后来觉得还购用就这样了:)


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 9:31 
头像

注册: 2005-11-17 15:45
帖子: 2996
地址: 湖北
送出感谢: 0 次
接收感谢: 1
太复杂了,难搞。


_________________
代码:
枪杆子里面出政权


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 9:37 
头像

注册: 2007-09-29 3:09
帖子: 5773
送出感谢: 0 次
接收感谢: 3
不错~~


_________________
HUNT Unfortunately No Talent...


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 10:32 

注册: 2009-05-04 0:13
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
这么好的帖子,竟然没几个人顶,太不像话了
:em11 :em11 :em11 :em11 :em11 :em11 :em11 :em11


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 10:40 
头像

注册: 2008-04-26 12:41
帖子: 10974
送出感谢: 11
接收感谢: 38
pythonlong 写道:
算是备份了:)

鼠标右键和文件管理器
附件:
3.png


音乐播放器,便签,pidgin,opera
附件:
2.png


工作用文档处理,abiword,gnumeric,cxoffice装的visio
附件:
1.png


代码:
##设置环境路径
SetEnv fvwm_home   $[HOME]/.fvwm
SetEnv fvwm_scripts   $[fvwm_home]/scripts
SetEnv fvwm_wallpapers   $[fvwm_home]/wallpapers
SetEnv fvwm_thumbnail   $[fvwm_home]/thumb
SetEnv fvwm_config      $[fvwm_home]/configure
##设置系统用到的字体,这里中英文只用一种字体
#setEnv fvwm_font        "xft:微软雅黑:Bold:size=8:encoding=iso10646-1"
setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Book:size=9:encoding=iso10646-1"
#setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Bold:size=8:encoding=iso10646-1"
#setEnv fvwm_font        "xft:iYaHei:Bold:size=8:encoding=iso10646-1"
################################################################################
#                           全局设置
################################################################################
#设置默认字体
DefaultFont        $[fvwm_font]
Style * Font       $[fvwm_font]
#----------------------------global--------------------------------------
#设置程序风格
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
Style "Fvwm*"      Sticky, Title, Handles, WindowListHit, CirculateSkip
Style "FvwmPager"   !Title, !Handles, WindowListSkip,!WindowListHit
Style  "xpad*"       !Iconifiable,  !Title ,StaysOnBottom , Sticky, WindowListSkip
#设置程序启动所在的page
Style  *gmpc             StartsOnPage 0 2
Style  *MPlayer          StartsOnPage 1 2
Style  *Liferea          StartsOnPage 2 1
Style  *opera            StartsOnPage 2 2
#Style  *thunar           geometry 100x60+240+240
#Style  *evince           StartsOnPage 3 0
#Style  *gvim             StartsOnPage 3 1
#Style  *pcmanfm          StartsOnPage 3 2
#Style  *          StartsOnPage 3 0
#Style  *          StartsOnPage 3 1
#Style  *          StartsOnPage 3 2
# -------------------------- Focus and Placement --------------------------
Style * ResizeHintOverride
Style * ClickToFocus, ClickToFocusPassesClick, ClickToFocusRaises, MouseFocusClickRaises
ColormapFocus FollowsMouse
Style * TileCascadePlacement, GrabFocus, NoPPosition
# ---------------------------- Move and Resize ----------------------------
Style * ResizeOutLine
OpaqueMoveSize 5
Emulate FVWM
HideGeometryWindow All
BugOpts FlickeringMoveWorkaround Off
Style * SnapAttraction SameType
Style * SnapGrid 1 1
XorValue 0
## ---------------------- Paging and Mouse Parameters ----------------------
EdgeScroll 0 0
EdgeResistance 500 
Style * EdgeMoveDelay 50
Style * EdgeMoveResistance 0
EdgeThickness 2
ClickTime 10
#DoubleClickTime 500
EwmhBaseStruts 0 0 0 0
MoveThreshold 3
## -------------------- Transient Windows and Animation --------------------
Style * DecorateTransient, DontRaiseTransient, DontLowerTransient, DontStackTransientParent, GrabFocusTransient
Style * WindowShadeSteps 20, WindowShadeScrolls
SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
## -------------------- Hints, Busy Cursor and Advanced --------------------
Style * MwmDecor, OLDecor, NoOverride, MwmFunctions, GNOMEUseHints
BugOpts ModalityIsEvil on
BusyCursor Read on, Wait on, ModuleSynchronous on
BugOpts MixedVisualWorkaround off
BugOpts RaiseOverNativeWindows off
Style * SaveUnderOff, BackingStoreOff
ModuleTimeout 10
##############################################################################
#                           窗口修饰以及按钮动作
##############################################################################
Style * BorderWidth 2, HandleWidth 1
Style * MWMBorder, FirmBorder
Style * UseDecor MyDecor
Style * IconBox 900x700+10+50, IconGrid 4 4, IconFill top left
Style * NoIconTitle

DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle   Active   (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/top.png) \
      InActive (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/un_top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/un_top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/un_top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/un_top.png) \
          Centered
+ TitleStyle Height 22
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ BorderStyle Active   TiledPixmap $[fvwm_config]/window/border.png
+ BorderStyle Inactive TiledPixmap $[fvwm_config]/window/border.png
+ ButtonStyle 2 \
  Active         (Pixmap $[fvwm_config]/window/close-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/close-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/close-inactive.png -- Flat)
+ ButtonStyle 4 \
  Active         (Pixmap $[fvwm_config]/window/maximize-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/maximize-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/maximize-inactive.png -- Flat)
#+ ButtonStyle 6 MiniIcon
+ ButtonStyle 6 \
  Active         (Pixmap $[fvwm_config]/window/iconify-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/iconify-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/iconify-inactive.png -- Flat)
+ ButtonStyle 1 \
  Active         (Pixmap $[fvwm_config]/window/menu-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/menu-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/menu-inactive.png -- Flat)
+ ButtonStyle All -- UseTitleStyle

Mouse 1 4 A FuncFvwmMaximize
Mouse 1 6 A FuncFvwmIconify
Mouse 1 I A FuncFvwmDeIconify
Mouse 1 2 A Close
Mouse 1 W M Move
Mouse 3 6 A All (CurrentPage,!Fvwm*B*) Thumbnail_on
#Mouse 1       
###############################################################################
#                            鼠标主题
###############################################################################
CursorStyle root     left_ptr
CursorStyle default  left_ptr
CursorStyle position left_ptr
CursorStyle sys      left_ptr
CursorStyle menu     left_ptr
CursorStyle title    left_ptr
CursorStyle resize   fleur
CursorStyle stroke   crosshair
CursorStyle select   draped_box
###############################################################################
#                            调用函数
###############################################################################
DestroyFunc FuncFvwmMaximize
AddToFunc   FuncFvwmMaximize
+ C Maximize

DestroyFunc FuncFvwmSimpleMaximize
AddToFunc   FuncFvwmSimpleMaximize
+ I Maximize $0

DestroyFunc FuncFvwmIconifySameResource
AddToFunc   FuncFvwmIconifySameResource
+ I All ($r) Iconify $0

DestroyFunc FuncFvwmIconify
AddToFunc   FuncFvwmIconify
+ C Thumbnail

DestroyFunc FuncFvwmDeIconify
AddToFunc   FuncFvwmDeIconify
+ C DeThumbnail

DestroyFunc Thumbnail_on
AddToFunc Thumbnail_on
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify on

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify

DestroyFunc   DeThumbnail
AddToFunc   DeThumbnail
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*.png 2>>/dev/null
+ I Iconify
###############################################################################
#                            fvwm初始化启动注销重启
###############################################################################
*FvwmAnimate: Delay 15
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 0

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Module FvwmPager  FvwmPager
+ I Module FvwmButtons MyDock
+ I Module FvwmAnimate
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 204  --heighttype pixel --height 24 --align right  --transparent true --alpha 255  --edge bottom --margin 1
#+ I Exec exec xcompmgr -Ss -n -Cc -fF -I-10 -O-10 -D1 -t-3 -l-4 -r4
+ I Exec exec wicd-client
#+ I Exec exec xpad
+ I Exec exec mpd
+ I Exec exec xscreensaver  -no-splash
+ I Exec exec fcitx

DestroyFunc InitFunction
AddToFunc   InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/ww.png

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I Nop

AddToFunc ExitFunction
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*$[w.id].png 2>>/dev/null
+ I Exec exec killall  FvwmPager               > /dev/null 2>&1
+ I Exec exec killall  FvwmAnimate             > /dev/null 2>&1
+ I Exec exec killall  FvwmButtons             > /dev/null 2>&1
+ I Exec exec killall  trayer                  > /dev/null 2>&1
+ I Exec exec killall  mpd                     > /dev/null 2>&1
###############################################################################
#                            FvwmPager
###############################################################################
Colorset 32  fg #F6EF04,RootTransparent
Module FvwmPager 0 0
Style "FvwmPager" !Title, !Handles, !Borders, Sticky, WindowListSkip, \
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 5x3

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry -1-24
*FvwmPager: Font none
*FvwmPager: Columns 1
*FvwmPager: Colorset        * 32
*FvwmPager: BackColorset    * 32
*FvwmPager: HilightColorset * 32
*FvwmPager: BalloonColorset * 32
*FvwmPager: WindowColorset  * 32
*FvwmPager: Font  $[fvwm_font]
*FvwmPager: Balloons
*FvwmPager: BalloonFont $[fvwm_font]
*FvwmPager: BallonYOffset 1
*FvwmPager: MiniIcons
*FvwmPager: Rows 1
Style "MyDock" !Title, !Handles, Sticky, WindowListSkip, \
        CirculateSkip, BorderWidth 0, HandleWidth 0
DestroyModuleConfig MyDock: *
*MyDock: ButtonGeometry   64x64-1+0
*MyDock: Columns          1
*MyDock: Frame            0
*MyDock: (Frame 0 ,Swallow  "wmcalclock" 'Exec wmcalclock -24 -b 100')

###############################################################################
#menu
###############################################################################
#Colorset 42 fg #FA0508 , bg #E8E8E8
Colorset 42 fg #ffffff , bg #366AE9
Colorset 43 fg #000000 , bg #EDE8D4

MenuStyle * Mwm
MenuStyle * Hilight3DOff, HilightBack
MenuStyle * MenuColorset 43
MenuStyle * ActiveColorset 42
MenuStyle * TitleColorset 43
MenuStyle * BorderWidth 1, SidePic, SideColor
MenuStyle * ItemFormat "%|%i%6p%l%|%|%|%>%i%"
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * PopupDelayed, PopupDelay 0, PopdownImmediately, PopdownDelay 0
MenuStyle * Animation
#MenuStyle * NoCurrentDeskTitle
MenuStyle * TrianglesSolid
MenuStyle * Font $[fvwm_font]
################################################################################
#                            快捷键
################################################################################
DestroyFunc single-thread
AddToFunc single-thread
+ I All ($0) EWMHActivateWindowFunc
+ I TestRc (NoMatch) Exec exec $1 &

Key 1     A M     Gotopage 0 0
Key 2     A M     Gotopage 1 0
Key 3     A M     Gotopage 0 1
Key 4     A M     Gotopage 1 1
Key 5     A M     Gotopage 4 2
#关闭
Key W     A M     Silent Close
#最大化
Key M     A M     Silent Maximize
#最小化到桌面
Key V     A M     Silent Thumbnail
#调用文件管理器
Key E     A M     Exec exec thunar
#单进程程序
Key S     A M     single-thread "stardict" stardict
Key F     A M     single-thread "Opera" opera
#打开运行对话框
Key R     A M     Exec exec  grun
#打开鼠标右键
Key C     A M     Exec exec  apwal
#gvim
Key G     A M     Exec exec  gvim -geometry 80x20+240+240
#终端
Key T     A M     Exec exec  rxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
#自己的脚本,声音控制,抓图,延迟抓图
Key F12   A N     Exec exec $[fvwm_scripts]/sound_up
Key F11   A N     Exec exec $[fvwm_scripts]/sound_down
Key Print A M     Exec exec $[fvwm_scripts]/snapshot
Key Print A N     Exec exec $[fvwm_scripts]/snapshot_w
#切换应用程序
Key Tab   A M     WindowList Root c c CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#下面是调用刷新桌面函数
Key b     A M     All (CurrentPage,!Fvwm*B*) Thumbnail_on
###############################################################################
#                            鼠标操作
###############################################################################
Mouse 1   R A   -
Mouse 3     R A   Exec exec apwal
Mouse 2     R A   WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke 620  1 R N All (CurrentPage,!Fvwm*B*) Thumbnail_o
#Stroke N620 1 A C WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke N7896321 0 A C Exec exec stardict


.Xdefaults配置文件
代码:
#URxvt.perl-ext-common: default,tabbed
#URxvt.preeditType:Root
URxvt.background:black
URxvt.foreground:      green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.color12:         #AAAAFF
URxvt.cursorColor:     orange
#URxvt.scrollBar:True
#URxvt.scrollBar_right:True
#URxvt.scrollBar_floating: False
#URxvt.scrollstyle: next
#URxvt.cursorBlink:     true
#URxvt.title:python's urxvt
#Xft.dpi:96
URxvt.preeditType:OverTheSpot
URxvt.multichar_encoding:utf8
URxvt.scrollBar:False
URxvt.saveLines:       10000
URxvt.geometry:        80x13+240+240
URxvt.font:            xft:DejaVuSansYuanTiMono:Bold:size=9
URxvt*imlocale: zh_CN
URxvt.inputMethod:fcitx
Xcursor.theme:bb_cursor
##
!look and feel
xterm*inputMethod:fcitx
xterm*geometry: 100x13+240+240
xterm*background:black
xterm*foreground:      green
xterm*colorBD:yellow
xterm*colorUL:green
xterm*color12:         #AAAAFF
xterm*cursorColor:     orange
!fix alt key input
xterm*eightBitInput: false
xterm*altSendsEscape: true
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*faceName:           xft:DejaVuSansYuanTiMono:Bold:size=9:antialias=True
#xterm*font:   DejaVuSansYuanTiMono:bold:size=9
#xterm*fontMenu*fontdefault*Label: Default
#xterm*faceName: Monaco:antialias=True:pixelsize=15
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9
#xterm*faceName:           DejaVuSansYuanTiMono:bold:size=9:antialias=True
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9:antialias=True
#!xterm*faceName: monofur:antialias=True:pixelsize=20
#!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
#xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
#xterm*cjkWidth:false


.gtkrc-2.0配置文件
代码:
#这将设置 GTK 程序的主题。将引号中的内容换成你自己喜欢的主题名称(下同)
gtk-theme-name = "bb_theme"
#设置所用的图标主题
gtk-icon-theme-name = "bb_icon"
#设置鼠标指针主题
gtk-cursor-theme-name = "bb_cursor"
#设置 GTK 程序用的字体
#gtk-font-name = "微软雅黑 Bold 8"
#gtk-font-name = "iYaHei Normal 8"
gtk-font-name = "DejaVuSansYuanTiCondensed Book 9"
#gtk-toolbar-style = GTK_TOOLBAR_ICONS

文件管理器是哪个?pcmanfm吗? :em09


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-09 11:25 

注册: 2008-11-13 16:03
帖子: 817
送出感谢: 0 次
接收感谢: 0 次
太复杂了


_________________
HP ProBook4321s,I3+ATI
OS : Fedora + Debian

http://box-look.org/


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 0:23 

注册: 2005-07-29 0:42
帖子: 140
送出感谢: 0 次
接收感谢: 0 次
photor 写道:
pythonlong 写道:
算是备份了:)

鼠标右键和文件管理器
附件:
3.png


音乐播放器,便签,pidgin,opera
附件:
2.png


工作用文档处理,abiword,gnumeric,cxoffice装的visio
附件:
1.png


代码:
##设置环境路径
SetEnv fvwm_home   $[HOME]/.fvwm
SetEnv fvwm_scripts   $[fvwm_home]/scripts
SetEnv fvwm_wallpapers   $[fvwm_home]/wallpapers
SetEnv fvwm_thumbnail   $[fvwm_home]/thumb
SetEnv fvwm_config      $[fvwm_home]/configure
##设置系统用到的字体,这里中英文只用一种字体
#setEnv fvwm_font        "xft:微软雅黑:Bold:size=8:encoding=iso10646-1"
setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Book:size=9:encoding=iso10646-1"
#setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Bold:size=8:encoding=iso10646-1"
#setEnv fvwm_font        "xft:iYaHei:Bold:size=8:encoding=iso10646-1"
################################################################################
#                           全局设置
################################################################################
#设置默认字体
DefaultFont        $[fvwm_font]
Style * Font       $[fvwm_font]
#----------------------------global--------------------------------------
#设置程序风格
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
Style "Fvwm*"      Sticky, Title, Handles, WindowListHit, CirculateSkip
Style "FvwmPager"   !Title, !Handles, WindowListSkip,!WindowListHit
Style  "xpad*"       !Iconifiable,  !Title ,StaysOnBottom , Sticky, WindowListSkip
#设置程序启动所在的page
Style  *gmpc             StartsOnPage 0 2
Style  *MPlayer          StartsOnPage 1 2
Style  *Liferea          StartsOnPage 2 1
Style  *opera            StartsOnPage 2 2
#Style  *thunar           geometry 100x60+240+240
#Style  *evince           StartsOnPage 3 0
#Style  *gvim             StartsOnPage 3 1
#Style  *pcmanfm          StartsOnPage 3 2
#Style  *          StartsOnPage 3 0
#Style  *          StartsOnPage 3 1
#Style  *          StartsOnPage 3 2
# -------------------------- Focus and Placement --------------------------
Style * ResizeHintOverride
Style * ClickToFocus, ClickToFocusPassesClick, ClickToFocusRaises, MouseFocusClickRaises
ColormapFocus FollowsMouse
Style * TileCascadePlacement, GrabFocus, NoPPosition
# ---------------------------- Move and Resize ----------------------------
Style * ResizeOutLine
OpaqueMoveSize 5
Emulate FVWM
HideGeometryWindow All
BugOpts FlickeringMoveWorkaround Off
Style * SnapAttraction SameType
Style * SnapGrid 1 1
XorValue 0
## ---------------------- Paging and Mouse Parameters ----------------------
EdgeScroll 0 0
EdgeResistance 500 
Style * EdgeMoveDelay 50
Style * EdgeMoveResistance 0
EdgeThickness 2
ClickTime 10
#DoubleClickTime 500
EwmhBaseStruts 0 0 0 0
MoveThreshold 3
## -------------------- Transient Windows and Animation --------------------
Style * DecorateTransient, DontRaiseTransient, DontLowerTransient, DontStackTransientParent, GrabFocusTransient
Style * WindowShadeSteps 20, WindowShadeScrolls
SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
## -------------------- Hints, Busy Cursor and Advanced --------------------
Style * MwmDecor, OLDecor, NoOverride, MwmFunctions, GNOMEUseHints
BugOpts ModalityIsEvil on
BusyCursor Read on, Wait on, ModuleSynchronous on
BugOpts MixedVisualWorkaround off
BugOpts RaiseOverNativeWindows off
Style * SaveUnderOff, BackingStoreOff
ModuleTimeout 10
##############################################################################
#                           窗口修饰以及按钮动作
##############################################################################
Style * BorderWidth 2, HandleWidth 1
Style * MWMBorder, FirmBorder
Style * UseDecor MyDecor
Style * IconBox 900x700+10+50, IconGrid 4 4, IconFill top left
Style * NoIconTitle

DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle   Active   (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/top.png) \
      InActive (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/un_top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/un_top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/un_top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/un_top.png) \
          Centered
+ TitleStyle Height 22
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ BorderStyle Active   TiledPixmap $[fvwm_config]/window/border.png
+ BorderStyle Inactive TiledPixmap $[fvwm_config]/window/border.png
+ ButtonStyle 2 \
  Active         (Pixmap $[fvwm_config]/window/close-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/close-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/close-inactive.png -- Flat)
+ ButtonStyle 4 \
  Active         (Pixmap $[fvwm_config]/window/maximize-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/maximize-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/maximize-inactive.png -- Flat)
#+ ButtonStyle 6 MiniIcon
+ ButtonStyle 6 \
  Active         (Pixmap $[fvwm_config]/window/iconify-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/iconify-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/iconify-inactive.png -- Flat)
+ ButtonStyle 1 \
  Active         (Pixmap $[fvwm_config]/window/menu-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/menu-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/menu-inactive.png -- Flat)
+ ButtonStyle All -- UseTitleStyle

Mouse 1 4 A FuncFvwmMaximize
Mouse 1 6 A FuncFvwmIconify
Mouse 1 I A FuncFvwmDeIconify
Mouse 1 2 A Close
Mouse 1 W M Move
Mouse 3 6 A All (CurrentPage,!Fvwm*B*) Thumbnail_on
#Mouse 1       
###############################################################################
#                            鼠标主题
###############################################################################
CursorStyle root     left_ptr
CursorStyle default  left_ptr
CursorStyle position left_ptr
CursorStyle sys      left_ptr
CursorStyle menu     left_ptr
CursorStyle title    left_ptr
CursorStyle resize   fleur
CursorStyle stroke   crosshair
CursorStyle select   draped_box
###############################################################################
#                            调用函数
###############################################################################
DestroyFunc FuncFvwmMaximize
AddToFunc   FuncFvwmMaximize
+ C Maximize

DestroyFunc FuncFvwmSimpleMaximize
AddToFunc   FuncFvwmSimpleMaximize
+ I Maximize $0

DestroyFunc FuncFvwmIconifySameResource
AddToFunc   FuncFvwmIconifySameResource
+ I All ($r) Iconify $0

DestroyFunc FuncFvwmIconify
AddToFunc   FuncFvwmIconify
+ C Thumbnail

DestroyFunc FuncFvwmDeIconify
AddToFunc   FuncFvwmDeIconify
+ C DeThumbnail

DestroyFunc Thumbnail_on
AddToFunc Thumbnail_on
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify on

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify

DestroyFunc   DeThumbnail
AddToFunc   DeThumbnail
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*.png 2>>/dev/null
+ I Iconify
###############################################################################
#                            fvwm初始化启动注销重启
###############################################################################
*FvwmAnimate: Delay 15
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 0

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Module FvwmPager  FvwmPager
+ I Module FvwmButtons MyDock
+ I Module FvwmAnimate
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 204  --heighttype pixel --height 24 --align right  --transparent true --alpha 255  --edge bottom --margin 1
#+ I Exec exec xcompmgr -Ss -n -Cc -fF -I-10 -O-10 -D1 -t-3 -l-4 -r4
+ I Exec exec wicd-client
#+ I Exec exec xpad
+ I Exec exec mpd
+ I Exec exec xscreensaver  -no-splash
+ I Exec exec fcitx

DestroyFunc InitFunction
AddToFunc   InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/ww.png

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I Nop

AddToFunc ExitFunction
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*$[w.id].png 2>>/dev/null
+ I Exec exec killall  FvwmPager               > /dev/null 2>&1
+ I Exec exec killall  FvwmAnimate             > /dev/null 2>&1
+ I Exec exec killall  FvwmButtons             > /dev/null 2>&1
+ I Exec exec killall  trayer                  > /dev/null 2>&1
+ I Exec exec killall  mpd                     > /dev/null 2>&1
###############################################################################
#                            FvwmPager
###############################################################################
Colorset 32  fg #F6EF04,RootTransparent
Module FvwmPager 0 0
Style "FvwmPager" !Title, !Handles, !Borders, Sticky, WindowListSkip, \
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 5x3

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry -1-24
*FvwmPager: Font none
*FvwmPager: Columns 1
*FvwmPager: Colorset        * 32
*FvwmPager: BackColorset    * 32
*FvwmPager: HilightColorset * 32
*FvwmPager: BalloonColorset * 32
*FvwmPager: WindowColorset  * 32
*FvwmPager: Font  $[fvwm_font]
*FvwmPager: Balloons
*FvwmPager: BalloonFont $[fvwm_font]
*FvwmPager: BallonYOffset 1
*FvwmPager: MiniIcons
*FvwmPager: Rows 1
Style "MyDock" !Title, !Handles, Sticky, WindowListSkip, \
        CirculateSkip, BorderWidth 0, HandleWidth 0
DestroyModuleConfig MyDock: *
*MyDock: ButtonGeometry   64x64-1+0
*MyDock: Columns          1
*MyDock: Frame            0
*MyDock: (Frame 0 ,Swallow  "wmcalclock" 'Exec wmcalclock -24 -b 100')

###############################################################################
#menu
###############################################################################
#Colorset 42 fg #FA0508 , bg #E8E8E8
Colorset 42 fg #ffffff , bg #366AE9
Colorset 43 fg #000000 , bg #EDE8D4

MenuStyle * Mwm
MenuStyle * Hilight3DOff, HilightBack
MenuStyle * MenuColorset 43
MenuStyle * ActiveColorset 42
MenuStyle * TitleColorset 43
MenuStyle * BorderWidth 1, SidePic, SideColor
MenuStyle * ItemFormat "%|%i%6p%l%|%|%|%>%i%"
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * PopupDelayed, PopupDelay 0, PopdownImmediately, PopdownDelay 0
MenuStyle * Animation
#MenuStyle * NoCurrentDeskTitle
MenuStyle * TrianglesSolid
MenuStyle * Font $[fvwm_font]
################################################################################
#                            快捷键
################################################################################
DestroyFunc single-thread
AddToFunc single-thread
+ I All ($0) EWMHActivateWindowFunc
+ I TestRc (NoMatch) Exec exec $1 &

Key 1     A M     Gotopage 0 0
Key 2     A M     Gotopage 1 0
Key 3     A M     Gotopage 0 1
Key 4     A M     Gotopage 1 1
Key 5     A M     Gotopage 4 2
#关闭
Key W     A M     Silent Close
#最大化
Key M     A M     Silent Maximize
#最小化到桌面
Key V     A M     Silent Thumbnail
#调用文件管理器
Key E     A M     Exec exec thunar
#单进程程序
Key S     A M     single-thread "stardict" stardict
Key F     A M     single-thread "Opera" opera
#打开运行对话框
Key R     A M     Exec exec  grun
#打开鼠标右键
Key C     A M     Exec exec  apwal
#gvim
Key G     A M     Exec exec  gvim -geometry 80x20+240+240
#终端
Key T     A M     Exec exec  rxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
#自己的脚本,声音控制,抓图,延迟抓图
Key F12   A N     Exec exec $[fvwm_scripts]/sound_up
Key F11   A N     Exec exec $[fvwm_scripts]/sound_down
Key Print A M     Exec exec $[fvwm_scripts]/snapshot
Key Print A N     Exec exec $[fvwm_scripts]/snapshot_w
#切换应用程序
Key Tab   A M     WindowList Root c c CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#下面是调用刷新桌面函数
Key b     A M     All (CurrentPage,!Fvwm*B*) Thumbnail_on
###############################################################################
#                            鼠标操作
###############################################################################
Mouse 1   R A   -
Mouse 3     R A   Exec exec apwal
Mouse 2     R A   WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke 620  1 R N All (CurrentPage,!Fvwm*B*) Thumbnail_o
#Stroke N620 1 A C WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke N7896321 0 A C Exec exec stardict


.Xdefaults配置文件
代码:
#URxvt.perl-ext-common: default,tabbed
#URxvt.preeditType:Root
URxvt.background:black
URxvt.foreground:      green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.color12:         #AAAAFF
URxvt.cursorColor:     orange
#URxvt.scrollBar:True
#URxvt.scrollBar_right:True
#URxvt.scrollBar_floating: False
#URxvt.scrollstyle: next
#URxvt.cursorBlink:     true
#URxvt.title:python's urxvt
#Xft.dpi:96
URxvt.preeditType:OverTheSpot
URxvt.multichar_encoding:utf8
URxvt.scrollBar:False
URxvt.saveLines:       10000
URxvt.geometry:        80x13+240+240
URxvt.font:            xft:DejaVuSansYuanTiMono:Bold:size=9
URxvt*imlocale: zh_CN
URxvt.inputMethod:fcitx
Xcursor.theme:bb_cursor
##
!look and feel
xterm*inputMethod:fcitx
xterm*geometry: 100x13+240+240
xterm*background:black
xterm*foreground:      green
xterm*colorBD:yellow
xterm*colorUL:green
xterm*color12:         #AAAAFF
xterm*cursorColor:     orange
!fix alt key input
xterm*eightBitInput: false
xterm*altSendsEscape: true
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*faceName:           xft:DejaVuSansYuanTiMono:Bold:size=9:antialias=True
#xterm*font:   DejaVuSansYuanTiMono:bold:size=9
#xterm*fontMenu*fontdefault*Label: Default
#xterm*faceName: Monaco:antialias=True:pixelsize=15
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9
#xterm*faceName:           DejaVuSansYuanTiMono:bold:size=9:antialias=True
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9:antialias=True
#!xterm*faceName: monofur:antialias=True:pixelsize=20
#!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
#xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
#xterm*cjkWidth:false


.gtkrc-2.0配置文件
代码:
#这将设置 GTK 程序的主题。将引号中的内容换成你自己喜欢的主题名称(下同)
gtk-theme-name = "bb_theme"
#设置所用的图标主题
gtk-icon-theme-name = "bb_icon"
#设置鼠标指针主题
gtk-cursor-theme-name = "bb_cursor"
#设置 GTK 程序用的字体
#gtk-font-name = "微软雅黑 Bold 8"
#gtk-font-name = "iYaHei Normal 8"
gtk-font-name = "DejaVuSansYuanTiCondensed Book 9"
#gtk-toolbar-style = GTK_TOOLBAR_ICONS

文件管理器是哪个?pcmanfm吗? :em09

thunar原来用pcmanfm不过有些特性不是很爽,还是换成thunar了,


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 0:56 
头像

注册: 2007-07-18 18:56
帖子: 1806
送出感谢: 0 次
接收感谢: 0 次
看来还是我的合自己用


_________________
我的小站imtho.com
3n6uv7 2vw <---- 332 ?语星火是么什


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 1:50 
头像

注册: 2007-01-06 21:00
帖子: 920
送出感谢: 2
接收感谢: 0 次
右下角是什么?我的ob没有这个效果


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 2:09 
头像

注册: 2007-07-18 18:56
帖子: 1806
送出感谢: 0 次
接收感谢: 0 次
princelai 写道:
右下角是什么?我的ob没有这个效果

那是trayer,要装的


_________________
我的小站imtho.com
3n6uv7 2vw <---- 332 ?语星火是么什


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 2:14 
头像

注册: 2008-10-08 13:48
帖子: 3476
送出感谢: 0 次
接收感谢: 1
:em06


_________________
--------------------------------------
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 9:10 
头像

注册: 2008-04-26 12:41
帖子: 10974
送出感谢: 11
接收感谢: 38
pythonlong 写道:
photor 写道:
pythonlong 写道:
算是备份了:)

鼠标右键和文件管理器
附件:
3.png


音乐播放器,便签,pidgin,opera
附件:
2.png


工作用文档处理,abiword,gnumeric,cxoffice装的visio
附件:
1.png


代码:
##设置环境路径
SetEnv fvwm_home   $[HOME]/.fvwm
SetEnv fvwm_scripts   $[fvwm_home]/scripts
SetEnv fvwm_wallpapers   $[fvwm_home]/wallpapers
SetEnv fvwm_thumbnail   $[fvwm_home]/thumb
SetEnv fvwm_config      $[fvwm_home]/configure
##设置系统用到的字体,这里中英文只用一种字体
#setEnv fvwm_font        "xft:微软雅黑:Bold:size=8:encoding=iso10646-1"
setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Book:size=9:encoding=iso10646-1"
#setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Bold:size=8:encoding=iso10646-1"
#setEnv fvwm_font        "xft:iYaHei:Bold:size=8:encoding=iso10646-1"
################################################################################
#                           全局设置
################################################################################
#设置默认字体
DefaultFont        $[fvwm_font]
Style * Font       $[fvwm_font]
#----------------------------global--------------------------------------
#设置程序风格
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
Style "Fvwm*"      Sticky, Title, Handles, WindowListHit, CirculateSkip
Style "FvwmPager"   !Title, !Handles, WindowListSkip,!WindowListHit
Style  "xpad*"       !Iconifiable,  !Title ,StaysOnBottom , Sticky, WindowListSkip
#设置程序启动所在的page
Style  *gmpc             StartsOnPage 0 2
Style  *MPlayer          StartsOnPage 1 2
Style  *Liferea          StartsOnPage 2 1
Style  *opera            StartsOnPage 2 2
#Style  *thunar           geometry 100x60+240+240
#Style  *evince           StartsOnPage 3 0
#Style  *gvim             StartsOnPage 3 1
#Style  *pcmanfm          StartsOnPage 3 2
#Style  *          StartsOnPage 3 0
#Style  *          StartsOnPage 3 1
#Style  *          StartsOnPage 3 2
# -------------------------- Focus and Placement --------------------------
Style * ResizeHintOverride
Style * ClickToFocus, ClickToFocusPassesClick, ClickToFocusRaises, MouseFocusClickRaises
ColormapFocus FollowsMouse
Style * TileCascadePlacement, GrabFocus, NoPPosition
# ---------------------------- Move and Resize ----------------------------
Style * ResizeOutLine
OpaqueMoveSize 5
Emulate FVWM
HideGeometryWindow All
BugOpts FlickeringMoveWorkaround Off
Style * SnapAttraction SameType
Style * SnapGrid 1 1
XorValue 0
## ---------------------- Paging and Mouse Parameters ----------------------
EdgeScroll 0 0
EdgeResistance 500 
Style * EdgeMoveDelay 50
Style * EdgeMoveResistance 0
EdgeThickness 2
ClickTime 10
#DoubleClickTime 500
EwmhBaseStruts 0 0 0 0
MoveThreshold 3
## -------------------- Transient Windows and Animation --------------------
Style * DecorateTransient, DontRaiseTransient, DontLowerTransient, DontStackTransientParent, GrabFocusTransient
Style * WindowShadeSteps 20, WindowShadeScrolls
SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
## -------------------- Hints, Busy Cursor and Advanced --------------------
Style * MwmDecor, OLDecor, NoOverride, MwmFunctions, GNOMEUseHints
BugOpts ModalityIsEvil on
BusyCursor Read on, Wait on, ModuleSynchronous on
BugOpts MixedVisualWorkaround off
BugOpts RaiseOverNativeWindows off
Style * SaveUnderOff, BackingStoreOff
ModuleTimeout 10
##############################################################################
#                           窗口修饰以及按钮动作
##############################################################################
Style * BorderWidth 2, HandleWidth 1
Style * MWMBorder, FirmBorder
Style * UseDecor MyDecor
Style * IconBox 900x700+10+50, IconGrid 4 4, IconFill top left
Style * NoIconTitle

DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle   Active   (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/top.png) \
      InActive (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/un_top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/un_top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/un_top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/un_top.png) \
          Centered
+ TitleStyle Height 22
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ BorderStyle Active   TiledPixmap $[fvwm_config]/window/border.png
+ BorderStyle Inactive TiledPixmap $[fvwm_config]/window/border.png
+ ButtonStyle 2 \
  Active         (Pixmap $[fvwm_config]/window/close-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/close-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/close-inactive.png -- Flat)
+ ButtonStyle 4 \
  Active         (Pixmap $[fvwm_config]/window/maximize-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/maximize-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/maximize-inactive.png -- Flat)
#+ ButtonStyle 6 MiniIcon
+ ButtonStyle 6 \
  Active         (Pixmap $[fvwm_config]/window/iconify-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/iconify-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/iconify-inactive.png -- Flat)
+ ButtonStyle 1 \
  Active         (Pixmap $[fvwm_config]/window/menu-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/menu-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/menu-inactive.png -- Flat)
+ ButtonStyle All -- UseTitleStyle

Mouse 1 4 A FuncFvwmMaximize
Mouse 1 6 A FuncFvwmIconify
Mouse 1 I A FuncFvwmDeIconify
Mouse 1 2 A Close
Mouse 1 W M Move
Mouse 3 6 A All (CurrentPage,!Fvwm*B*) Thumbnail_on
#Mouse 1       
###############################################################################
#                            鼠标主题
###############################################################################
CursorStyle root     left_ptr
CursorStyle default  left_ptr
CursorStyle position left_ptr
CursorStyle sys      left_ptr
CursorStyle menu     left_ptr
CursorStyle title    left_ptr
CursorStyle resize   fleur
CursorStyle stroke   crosshair
CursorStyle select   draped_box
###############################################################################
#                            调用函数
###############################################################################
DestroyFunc FuncFvwmMaximize
AddToFunc   FuncFvwmMaximize
+ C Maximize

DestroyFunc FuncFvwmSimpleMaximize
AddToFunc   FuncFvwmSimpleMaximize
+ I Maximize $0

DestroyFunc FuncFvwmIconifySameResource
AddToFunc   FuncFvwmIconifySameResource
+ I All ($r) Iconify $0

DestroyFunc FuncFvwmIconify
AddToFunc   FuncFvwmIconify
+ C Thumbnail

DestroyFunc FuncFvwmDeIconify
AddToFunc   FuncFvwmDeIconify
+ C DeThumbnail

DestroyFunc Thumbnail_on
AddToFunc Thumbnail_on
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify on

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify

DestroyFunc   DeThumbnail
AddToFunc   DeThumbnail
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*.png 2>>/dev/null
+ I Iconify
###############################################################################
#                            fvwm初始化启动注销重启
###############################################################################
*FvwmAnimate: Delay 15
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 0

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Module FvwmPager  FvwmPager
+ I Module FvwmButtons MyDock
+ I Module FvwmAnimate
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 204  --heighttype pixel --height 24 --align right  --transparent true --alpha 255  --edge bottom --margin 1
#+ I Exec exec xcompmgr -Ss -n -Cc -fF -I-10 -O-10 -D1 -t-3 -l-4 -r4
+ I Exec exec wicd-client
#+ I Exec exec xpad
+ I Exec exec mpd
+ I Exec exec xscreensaver  -no-splash
+ I Exec exec fcitx

DestroyFunc InitFunction
AddToFunc   InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/ww.png

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I Nop

AddToFunc ExitFunction
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*$[w.id].png 2>>/dev/null
+ I Exec exec killall  FvwmPager               > /dev/null 2>&1
+ I Exec exec killall  FvwmAnimate             > /dev/null 2>&1
+ I Exec exec killall  FvwmButtons             > /dev/null 2>&1
+ I Exec exec killall  trayer                  > /dev/null 2>&1
+ I Exec exec killall  mpd                     > /dev/null 2>&1
###############################################################################
#                            FvwmPager
###############################################################################
Colorset 32  fg #F6EF04,RootTransparent
Module FvwmPager 0 0
Style "FvwmPager" !Title, !Handles, !Borders, Sticky, WindowListSkip, \
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 5x3

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry -1-24
*FvwmPager: Font none
*FvwmPager: Columns 1
*FvwmPager: Colorset        * 32
*FvwmPager: BackColorset    * 32
*FvwmPager: HilightColorset * 32
*FvwmPager: BalloonColorset * 32
*FvwmPager: WindowColorset  * 32
*FvwmPager: Font  $[fvwm_font]
*FvwmPager: Balloons
*FvwmPager: BalloonFont $[fvwm_font]
*FvwmPager: BallonYOffset 1
*FvwmPager: MiniIcons
*FvwmPager: Rows 1
Style "MyDock" !Title, !Handles, Sticky, WindowListSkip, \
        CirculateSkip, BorderWidth 0, HandleWidth 0
DestroyModuleConfig MyDock: *
*MyDock: ButtonGeometry   64x64-1+0
*MyDock: Columns          1
*MyDock: Frame            0
*MyDock: (Frame 0 ,Swallow  "wmcalclock" 'Exec wmcalclock -24 -b 100')

###############################################################################
#menu
###############################################################################
#Colorset 42 fg #FA0508 , bg #E8E8E8
Colorset 42 fg #ffffff , bg #366AE9
Colorset 43 fg #000000 , bg #EDE8D4

MenuStyle * Mwm
MenuStyle * Hilight3DOff, HilightBack
MenuStyle * MenuColorset 43
MenuStyle * ActiveColorset 42
MenuStyle * TitleColorset 43
MenuStyle * BorderWidth 1, SidePic, SideColor
MenuStyle * ItemFormat "%|%i%6p%l%|%|%|%>%i%"
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * PopupDelayed, PopupDelay 0, PopdownImmediately, PopdownDelay 0
MenuStyle * Animation
#MenuStyle * NoCurrentDeskTitle
MenuStyle * TrianglesSolid
MenuStyle * Font $[fvwm_font]
################################################################################
#                            快捷键
################################################################################
DestroyFunc single-thread
AddToFunc single-thread
+ I All ($0) EWMHActivateWindowFunc
+ I TestRc (NoMatch) Exec exec $1 &

Key 1     A M     Gotopage 0 0
Key 2     A M     Gotopage 1 0
Key 3     A M     Gotopage 0 1
Key 4     A M     Gotopage 1 1
Key 5     A M     Gotopage 4 2
#关闭
Key W     A M     Silent Close
#最大化
Key M     A M     Silent Maximize
#最小化到桌面
Key V     A M     Silent Thumbnail
#调用文件管理器
Key E     A M     Exec exec thunar
#单进程程序
Key S     A M     single-thread "stardict" stardict
Key F     A M     single-thread "Opera" opera
#打开运行对话框
Key R     A M     Exec exec  grun
#打开鼠标右键
Key C     A M     Exec exec  apwal
#gvim
Key G     A M     Exec exec  gvim -geometry 80x20+240+240
#终端
Key T     A M     Exec exec  rxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
#自己的脚本,声音控制,抓图,延迟抓图
Key F12   A N     Exec exec $[fvwm_scripts]/sound_up
Key F11   A N     Exec exec $[fvwm_scripts]/sound_down
Key Print A M     Exec exec $[fvwm_scripts]/snapshot
Key Print A N     Exec exec $[fvwm_scripts]/snapshot_w
#切换应用程序
Key Tab   A M     WindowList Root c c CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#下面是调用刷新桌面函数
Key b     A M     All (CurrentPage,!Fvwm*B*) Thumbnail_on
###############################################################################
#                            鼠标操作
###############################################################################
Mouse 1   R A   -
Mouse 3     R A   Exec exec apwal
Mouse 2     R A   WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke 620  1 R N All (CurrentPage,!Fvwm*B*) Thumbnail_o
#Stroke N620 1 A C WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke N7896321 0 A C Exec exec stardict


.Xdefaults配置文件
代码:
#URxvt.perl-ext-common: default,tabbed
#URxvt.preeditType:Root
URxvt.background:black
URxvt.foreground:      green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.color12:         #AAAAFF
URxvt.cursorColor:     orange
#URxvt.scrollBar:True
#URxvt.scrollBar_right:True
#URxvt.scrollBar_floating: False
#URxvt.scrollstyle: next
#URxvt.cursorBlink:     true
#URxvt.title:python's urxvt
#Xft.dpi:96
URxvt.preeditType:OverTheSpot
URxvt.multichar_encoding:utf8
URxvt.scrollBar:False
URxvt.saveLines:       10000
URxvt.geometry:        80x13+240+240
URxvt.font:            xft:DejaVuSansYuanTiMono:Bold:size=9
URxvt*imlocale: zh_CN
URxvt.inputMethod:fcitx
Xcursor.theme:bb_cursor
##
!look and feel
xterm*inputMethod:fcitx
xterm*geometry: 100x13+240+240
xterm*background:black
xterm*foreground:      green
xterm*colorBD:yellow
xterm*colorUL:green
xterm*color12:         #AAAAFF
xterm*cursorColor:     orange
!fix alt key input
xterm*eightBitInput: false
xterm*altSendsEscape: true
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*faceName:           xft:DejaVuSansYuanTiMono:Bold:size=9:antialias=True
#xterm*font:   DejaVuSansYuanTiMono:bold:size=9
#xterm*fontMenu*fontdefault*Label: Default
#xterm*faceName: Monaco:antialias=True:pixelsize=15
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9
#xterm*faceName:           DejaVuSansYuanTiMono:bold:size=9:antialias=True
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9:antialias=True
#!xterm*faceName: monofur:antialias=True:pixelsize=20
#!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
#xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
#xterm*cjkWidth:false


.gtkrc-2.0配置文件
代码:
#这将设置 GTK 程序的主题。将引号中的内容换成你自己喜欢的主题名称(下同)
gtk-theme-name = "bb_theme"
#设置所用的图标主题
gtk-icon-theme-name = "bb_icon"
#设置鼠标指针主题
gtk-cursor-theme-name = "bb_cursor"
#设置 GTK 程序用的字体
#gtk-font-name = "微软雅黑 Bold 8"
#gtk-font-name = "iYaHei Normal 8"
gtk-font-name = "DejaVuSansYuanTiCondensed Book 9"
#gtk-toolbar-style = GTK_TOOLBAR_ICONS

文件管理器是哪个?pcmanfm吗? :em09

thunar原来用pcmanfm不过有些特性不是很爽,还是换成thunar了,

thunar有个弱点,不能管理固定存储介质(挂载和卸载),只能管理移动存储介质;pcmanfm就可以,左边栏里有固定存储介质 :em20


_________________
[新手必读]wubi安装常见问题(FAQ)
[分享]装双系统的同学必看——Windows与Linux系统共享交换分区的方法
kde下唯美的暗黑内透主题(无需编译)
无穷老机上的Trinity Desktop Environment


页首
 用户资料  
 
15 楼 
 文章标题 : Re: 再show下fvwm,外加说明:)
帖子发表于 : 2009-05-16 23:44 

注册: 2005-07-29 0:42
帖子: 140
送出感谢: 0 次
接收感谢: 0 次
photor 写道:
pythonlong 写道:
photor 写道:
pythonlong 写道:
算是备份了:)

鼠标右键和文件管理器
附件:
3.png


音乐播放器,便签,pidgin,opera
附件:
2.png


工作用文档处理,abiword,gnumeric,cxoffice装的visio
附件:
1.png


代码:
##设置环境路径
SetEnv fvwm_home   $[HOME]/.fvwm
SetEnv fvwm_scripts   $[fvwm_home]/scripts
SetEnv fvwm_wallpapers   $[fvwm_home]/wallpapers
SetEnv fvwm_thumbnail   $[fvwm_home]/thumb
SetEnv fvwm_config      $[fvwm_home]/configure
##设置系统用到的字体,这里中英文只用一种字体
#setEnv fvwm_font        "xft:微软雅黑:Bold:size=8:encoding=iso10646-1"
setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Book:size=9:encoding=iso10646-1"
#setEnv fvwm_font        "xft:DejaVuSansYuanTiCondensed:Bold:size=8:encoding=iso10646-1"
#setEnv fvwm_font        "xft:iYaHei:Bold:size=8:encoding=iso10646-1"
################################################################################
#                           全局设置
################################################################################
#设置默认字体
DefaultFont        $[fvwm_font]
Style * Font       $[fvwm_font]
#----------------------------global--------------------------------------
#设置程序风格
Style * !IconTitle, IconTitleRelief 0, IndexedIconName, IconBackgroundPadding 0, IconBackgroundRelief 0
Style "Fvwm*"      Sticky, Title, Handles, WindowListHit, CirculateSkip
Style "FvwmPager"   !Title, !Handles, WindowListSkip,!WindowListHit
Style  "xpad*"       !Iconifiable,  !Title ,StaysOnBottom , Sticky, WindowListSkip
#设置程序启动所在的page
Style  *gmpc             StartsOnPage 0 2
Style  *MPlayer          StartsOnPage 1 2
Style  *Liferea          StartsOnPage 2 1
Style  *opera            StartsOnPage 2 2
#Style  *thunar           geometry 100x60+240+240
#Style  *evince           StartsOnPage 3 0
#Style  *gvim             StartsOnPage 3 1
#Style  *pcmanfm          StartsOnPage 3 2
#Style  *          StartsOnPage 3 0
#Style  *          StartsOnPage 3 1
#Style  *          StartsOnPage 3 2
# -------------------------- Focus and Placement --------------------------
Style * ResizeHintOverride
Style * ClickToFocus, ClickToFocusPassesClick, ClickToFocusRaises, MouseFocusClickRaises
ColormapFocus FollowsMouse
Style * TileCascadePlacement, GrabFocus, NoPPosition
# ---------------------------- Move and Resize ----------------------------
Style * ResizeOutLine
OpaqueMoveSize 5
Emulate FVWM
HideGeometryWindow All
BugOpts FlickeringMoveWorkaround Off
Style * SnapAttraction SameType
Style * SnapGrid 1 1
XorValue 0
## ---------------------- Paging and Mouse Parameters ----------------------
EdgeScroll 0 0
EdgeResistance 500 
Style * EdgeMoveDelay 50
Style * EdgeMoveResistance 0
EdgeThickness 2
ClickTime 10
#DoubleClickTime 500
EwmhBaseStruts 0 0 0 0
MoveThreshold 3
## -------------------- Transient Windows and Animation --------------------
Style * DecorateTransient, DontRaiseTransient, DontLowerTransient, DontStackTransientParent, GrabFocusTransient
Style * WindowShadeSteps 20, WindowShadeScrolls
SetAnimation  10  -.01 0 .01 .03 .08 .18 .3 .45 .6 .75 .85 .90 .94 .97 .99 1.0
## -------------------- Hints, Busy Cursor and Advanced --------------------
Style * MwmDecor, OLDecor, NoOverride, MwmFunctions, GNOMEUseHints
BugOpts ModalityIsEvil on
BusyCursor Read on, Wait on, ModuleSynchronous on
BugOpts MixedVisualWorkaround off
BugOpts RaiseOverNativeWindows off
Style * SaveUnderOff, BackingStoreOff
ModuleTimeout 10
##############################################################################
#                           窗口修饰以及按钮动作
##############################################################################
Style * BorderWidth 2, HandleWidth 1
Style * MWMBorder, FirmBorder
Style * UseDecor MyDecor
Style * IconBox 900x700+10+50, IconGrid 4 4, IconFill top left
Style * NoIconTitle

DestroyDecor MyDecor
AddToDecor MyDecor
+ TitleStyle   Active   (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/top.png) \
      InActive (MultiPixmap \
                          Main            TiledPixmap     $[fvwm_config]/window/un_top.png, \
           Buttons         TiledPixmap     $[fvwm_config]/window/un_top.png, \
                          LeftEnd         AdjustedPixmap  $[fvwm_config]/window/un_top.png, \
                          RightEnd        AdjustedPixmap  $[fvwm_config]/window/un_top.png) \
          Centered
+ TitleStyle Height 22
+ TitleStyle -- Flat
+ BorderStyle Simple -- NoInset Flat
+ BorderStyle Active   TiledPixmap $[fvwm_config]/window/border.png
+ BorderStyle Inactive TiledPixmap $[fvwm_config]/window/border.png
+ ButtonStyle 2 \
  Active         (Pixmap $[fvwm_config]/window/close-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/close-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/close-inactive.png -- Flat)
+ ButtonStyle 4 \
  Active         (Pixmap $[fvwm_config]/window/maximize-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/maximize-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/maximize-inactive.png -- Flat)
#+ ButtonStyle 6 MiniIcon
+ ButtonStyle 6 \
  Active         (Pixmap $[fvwm_config]/window/iconify-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/iconify-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/iconify-inactive.png -- Flat)
+ ButtonStyle 1 \
  Active         (Pixmap $[fvwm_config]/window/menu-active.png -- Flat) \
  ActiveDown    (Pixmap $[fvwm_config]/window/menu-activedown.png -- Flat) \
  Inactive      (Pixmap $[fvwm_config]/window/menu-inactive.png -- Flat)
+ ButtonStyle All -- UseTitleStyle

Mouse 1 4 A FuncFvwmMaximize
Mouse 1 6 A FuncFvwmIconify
Mouse 1 I A FuncFvwmDeIconify
Mouse 1 2 A Close
Mouse 1 W M Move
Mouse 3 6 A All (CurrentPage,!Fvwm*B*) Thumbnail_on
#Mouse 1       
###############################################################################
#                            鼠标主题
###############################################################################
CursorStyle root     left_ptr
CursorStyle default  left_ptr
CursorStyle position left_ptr
CursorStyle sys      left_ptr
CursorStyle menu     left_ptr
CursorStyle title    left_ptr
CursorStyle resize   fleur
CursorStyle stroke   crosshair
CursorStyle select   draped_box
###############################################################################
#                            调用函数
###############################################################################
DestroyFunc FuncFvwmMaximize
AddToFunc   FuncFvwmMaximize
+ C Maximize

DestroyFunc FuncFvwmSimpleMaximize
AddToFunc   FuncFvwmSimpleMaximize
+ I Maximize $0

DestroyFunc FuncFvwmIconifySameResource
AddToFunc   FuncFvwmIconifySameResource
+ I All ($r) Iconify $0

DestroyFunc FuncFvwmIconify
AddToFunc   FuncFvwmIconify
+ C Thumbnail

DestroyFunc FuncFvwmDeIconify
AddToFunc   FuncFvwmDeIconify
+ C DeThumbnail

DestroyFunc Thumbnail_on
AddToFunc Thumbnail_on
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify on

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (Iconifiable, !Iconic) PipeRead \
    "xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
    -mattecolor black -quality 0 xwd:- png:$[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    && echo WindowStyle IconOverride, Icon $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    || echo Nop"
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[fvwm_thumbnail]/icon.tmp.$[w.id].png) PipeRead \
    "composite -geometry +2+4 $[w.miniiconfile] $[fvwm_thumbnail]/icon.tmp.$[w.id].png \
    $[fvwm_thumbnail]/icon.tmp.$[w.id].png; echo Nop"
+ I Iconify

DestroyFunc   DeThumbnail
AddToFunc   DeThumbnail
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*.png 2>>/dev/null
+ I Iconify
###############################################################################
#                            fvwm初始化启动注销重启
###############################################################################
*FvwmAnimate: Delay 15
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 0

DestroyFunc StartFunction
AddToFunc   StartFunction
+ I Module FvwmPager  FvwmPager
+ I Module FvwmButtons MyDock
+ I Module FvwmAnimate
+ I Exec exec trayer --SetDockType true --widthtype pixel --width 204  --heighttype pixel --height 24 --align right  --transparent true --alpha 255  --edge bottom --margin 1
#+ I Exec exec xcompmgr -Ss -n -Cc -fF -I-10 -O-10 -D1 -t-3 -l-4 -r4
+ I Exec exec wicd-client
#+ I Exec exec xpad
+ I Exec exec mpd
+ I Exec exec xscreensaver  -no-splash
+ I Exec exec fcitx

DestroyFunc InitFunction
AddToFunc   InitFunction
+ I Exec exec fvwm-root -r $[fvwm_wallpapers]/ww.png

DestroyFunc RestartFunction
AddToFunc   RestartFunction
+ I Nop

AddToFunc ExitFunction
+ I Exec exec \rm -rf $[fvwm_thumbnail]/icon.tmp.*$[w.id].png 2>>/dev/null
+ I Exec exec killall  FvwmPager               > /dev/null 2>&1
+ I Exec exec killall  FvwmAnimate             > /dev/null 2>&1
+ I Exec exec killall  FvwmButtons             > /dev/null 2>&1
+ I Exec exec killall  trayer                  > /dev/null 2>&1
+ I Exec exec killall  mpd                     > /dev/null 2>&1
###############################################################################
#                            FvwmPager
###############################################################################
Colorset 32  fg #F6EF04,RootTransparent
Module FvwmPager 0 0
Style "FvwmPager" !Title, !Handles, !Borders, Sticky, WindowListSkip, \
  CirculateSkip, StaysOnBottom, FixedPosition, FixedSize, !Iconifiable

DesktopSize 5x3

DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry -1-24
*FvwmPager: Font none
*FvwmPager: Columns 1
*FvwmPager: Colorset        * 32
*FvwmPager: BackColorset    * 32
*FvwmPager: HilightColorset * 32
*FvwmPager: BalloonColorset * 32
*FvwmPager: WindowColorset  * 32
*FvwmPager: Font  $[fvwm_font]
*FvwmPager: Balloons
*FvwmPager: BalloonFont $[fvwm_font]
*FvwmPager: BallonYOffset 1
*FvwmPager: MiniIcons
*FvwmPager: Rows 1
Style "MyDock" !Title, !Handles, Sticky, WindowListSkip, \
        CirculateSkip, BorderWidth 0, HandleWidth 0
DestroyModuleConfig MyDock: *
*MyDock: ButtonGeometry   64x64-1+0
*MyDock: Columns          1
*MyDock: Frame            0
*MyDock: (Frame 0 ,Swallow  "wmcalclock" 'Exec wmcalclock -24 -b 100')

###############################################################################
#menu
###############################################################################
#Colorset 42 fg #FA0508 , bg #E8E8E8
Colorset 42 fg #ffffff , bg #366AE9
Colorset 43 fg #000000 , bg #EDE8D4

MenuStyle * Mwm
MenuStyle * Hilight3DOff, HilightBack
MenuStyle * MenuColorset 43
MenuStyle * ActiveColorset 42
MenuStyle * TitleColorset 43
MenuStyle * BorderWidth 1, SidePic, SideColor
MenuStyle * ItemFormat "%|%i%6p%l%|%|%|%>%i%"
MenuStyle * PopupOffset 0 100, TitleWarp
MenuStyle * PopupDelayed, PopupDelay 0, PopdownImmediately, PopdownDelay 0
MenuStyle * Animation
#MenuStyle * NoCurrentDeskTitle
MenuStyle * TrianglesSolid
MenuStyle * Font $[fvwm_font]
################################################################################
#                            快捷键
################################################################################
DestroyFunc single-thread
AddToFunc single-thread
+ I All ($0) EWMHActivateWindowFunc
+ I TestRc (NoMatch) Exec exec $1 &

Key 1     A M     Gotopage 0 0
Key 2     A M     Gotopage 1 0
Key 3     A M     Gotopage 0 1
Key 4     A M     Gotopage 1 1
Key 5     A M     Gotopage 4 2
#关闭
Key W     A M     Silent Close
#最大化
Key M     A M     Silent Maximize
#最小化到桌面
Key V     A M     Silent Thumbnail
#调用文件管理器
Key E     A M     Exec exec thunar
#单进程程序
Key S     A M     single-thread "stardict" stardict
Key F     A M     single-thread "Opera" opera
#打开运行对话框
Key R     A M     Exec exec  grun
#打开鼠标右键
Key C     A M     Exec exec  apwal
#gvim
Key G     A M     Exec exec  gvim -geometry 80x20+240+240
#终端
Key T     A M     Exec exec  rxvt -fg lightgray -bg black -bc -tr -tint lightgray -sh 60 -sr
#自己的脚本,声音控制,抓图,延迟抓图
Key F12   A N     Exec exec $[fvwm_scripts]/sound_up
Key F11   A N     Exec exec $[fvwm_scripts]/sound_down
Key Print A M     Exec exec $[fvwm_scripts]/snapshot
Key Print A N     Exec exec $[fvwm_scripts]/snapshot_w
#切换应用程序
Key Tab   A M     WindowList Root c c CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#下面是调用刷新桌面函数
Key b     A M     All (CurrentPage,!Fvwm*B*) Thumbnail_on
###############################################################################
#                            鼠标操作
###############################################################################
Mouse 1   R A   -
Mouse 3     R A   Exec exec apwal
Mouse 2     R A   WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke 620  1 R N All (CurrentPage,!Fvwm*B*) Thumbnail_o
#Stroke N620 1 A C WindowList CurrentAtEnd MaxLabelWidth 50 NoGeometry NoCurrentDeskTitle  SelectOnRelease  Meta_L
#Stroke N7896321 0 A C Exec exec stardict


.Xdefaults配置文件
代码:
#URxvt.perl-ext-common: default,tabbed
#URxvt.preeditType:Root
URxvt.background:black
URxvt.foreground:      green
URxvt.colorBD:yellow
URxvt.colorUL:green
URxvt.color12:         #AAAAFF
URxvt.cursorColor:     orange
#URxvt.scrollBar:True
#URxvt.scrollBar_right:True
#URxvt.scrollBar_floating: False
#URxvt.scrollstyle: next
#URxvt.cursorBlink:     true
#URxvt.title:python's urxvt
#Xft.dpi:96
URxvt.preeditType:OverTheSpot
URxvt.multichar_encoding:utf8
URxvt.scrollBar:False
URxvt.saveLines:       10000
URxvt.geometry:        80x13+240+240
URxvt.font:            xft:DejaVuSansYuanTiMono:Bold:size=9
URxvt*imlocale: zh_CN
URxvt.inputMethod:fcitx
Xcursor.theme:bb_cursor
##
!look and feel
xterm*inputMethod:fcitx
xterm*geometry: 100x13+240+240
xterm*background:black
xterm*foreground:      green
xterm*colorBD:yellow
xterm*colorUL:green
xterm*color12:         #AAAAFF
xterm*cursorColor:     orange
!fix alt key input
xterm*eightBitInput: false
xterm*altSendsEscape: true
XTerm*VT100.Translations: #override \
    Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
    Ctrl <KeyPress> P: print() \n
!font and locale
xterm*locale: true
xterm.utf8:     true
xterm*utf8Title: true
xterm*faceName:           xft:DejaVuSansYuanTiMono:Bold:size=9:antialias=True
#xterm*font:   DejaVuSansYuanTiMono:bold:size=9
#xterm*fontMenu*fontdefault*Label: Default
#xterm*faceName: Monaco:antialias=True:pixelsize=15
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9
#xterm*faceName:           DejaVuSansYuanTiMono:bold:size=9:antialias=True
#xterm*faceNameDoublesize: DejaVuSansYuanTiMono:bold:size=9:antialias=True
#!xterm*faceName: monofur:antialias=True:pixelsize=20
#!xter*boldFont: DejaVu Sans Mono:style=Bold:pixelsize=15
#xterm*faceNameDoublesize: wenquanyi bitmap song:pixelsize=16:antialias=True
xterm*xftAntialias: true
#xterm*cjkWidth:false


.gtkrc-2.0配置文件
代码:
#这将设置 GTK 程序的主题。将引号中的内容换成你自己喜欢的主题名称(下同)
gtk-theme-name = "bb_theme"
#设置所用的图标主题
gtk-icon-theme-name = "bb_icon"
#设置鼠标指针主题
gtk-cursor-theme-name = "bb_cursor"
#设置 GTK 程序用的字体
#gtk-font-name = "微软雅黑 Bold 8"
#gtk-font-name = "iYaHei Normal 8"
gtk-font-name = "DejaVuSansYuanTiCondensed Book 9"
#gtk-toolbar-style = GTK_TOOLBAR_ICONS

文件管理器是哪个?pcmanfm吗? :em09

thunar原来用pcmanfm不过有些特性不是很爽,还是换成thunar了,

thunar有个弱点,不能管理固定存储介质(挂载和卸载),只能管理移动存储介质;pcmanfm就可以,左边栏里有固定存储介质 :em20


呵呵,我其实就是不想要它显示的。所以才考虑到thunar,另外thunar可以右键有发送到email挺好用:)
毕竟是xfce默认的桌面管理器,优点还是比pcmanfm多点。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 16 篇帖子 ]  前往页数 1, 2  下一页

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译