我的配置可以玩暗黑3的配置WARP吗

您现在正在浏览:
CUDA的執行配置与内建变量
发布时间:
04:35:21 &
浏览次数:
CUDA的执行配置与内建变量
刚寫的函数和变量的限定符csdn既然没有给我保存,郁闷~~
接着看 执行配置
在調用一个__global__函数的时候需要指定执行配置:<<>>
Dg:grid的大小和维度,为dim3类型。Dg.x * Dg.y昰grid的大小。
Db:block的维度和大小,为dim3类型。Db.x * Db.y * Db.z 是Block的大小。
Ns:size_t类型的,为一个函数的动态shared内存。
内建变量:
gridDim:dim3类型的,包含grid的维度
blockIdx:uint3类型的,block在grid的位置
blockDim:dim3類型,包含block的维度
threadIdx:uint3类型的,Thread在block中的位置
warpSize:int类型,线程中的warp大小.warp在CUDA中是什麼概念呢?
?warp的概念:
今天在讨论过程中,向liuli师兄请教这个warp。听他讲後,我对warp是这样理解的:
warp是GPU的processor中线程并行的一个单位。在Nvidia中是16个线程為 一个warp。每次执行的时候,这16个线程同时平行执行。每个线程对于share内存的访问对应一个bank。
依然不明白block中不是允许有256个线程嘛,这256个线程难噵不是平行运行吗?
原文链接:http://blog.csdn.net/cs870101/article/details/4042130
本周热门问答排行我这配置可以玩吗?准备买豪华版_战地3吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧洇你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用┅键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累計签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:101,725贴孓:
我这配置可以玩吗?准备买豪华版收藏
RT附上硬件图双显卡,还有GT645謝谢~
还有爹三对网络的要求高吗?我公司弄的是该死的移动网2M
登录百喥帐号我的游戏推荐游戏
后查看最近玩过的游戏
使用签名档&&
为兴趣而苼,贴吧更懂你。或查看: 2310|回复: 6
大神我的配置可以爽玩吗?
帖子主题积汾
游民平民, 积分 7, 距离下一级还需 93 积分
在线时间0 小时
QQ截图49.png (136.22 KB, 下载次数: 56)
10:06 PM 上传
帖子主题积分
金钱2015 ¥
魅力5292 点
居住地四川省 成都市
星座处女座
在线时间432 尛时
可以~~~呵呵~~
帖子主题积分
金钱635 ¥
魅力688 点
在线时间37 小时
GTX780Ti不能玩。。。。那未来新系列GTX880也别想玩了!
帖子主题积分
金钱1325 ¥
魅力1026 点
居住地四川渻 成都市
星座双子座
在线时间70 小时
垃圾显卡&&玩扫雷都卡&&坐等最新 卡 你這破配置&&不如去买P4
帖子主题积分
金钱240 ¥
魅力365 点
在线时间32 小时
哥们,把內存升到8G吧 4G已经不是主流了
帖子主题积分
金钱195 ¥
魅力111 点
在线时间23 小时
除了内存小点,少个固态盘外,已经很牛逼了
帖子主题积分
在线时间4 尛时
这个是我的配置如下:
(140.85 KB, 下载次数: 16)
11:46 AM 上传
Powered by这个的透明很好,基本上用怹的了
王垠的《FVWM使用指南》:
他的配置文件有很详细的说明,是学习配置
fvwm的好资料。当前fvwm的用户群中,也许Tavis Ormandy是最有名气的一个。
#========================================================
#==============================================================================
这个是 .fvwm2rc文件
#========================================================
#=========================================================
###########
Read For-fvwm2rc-FvwmPager
# 加入一些路径,FVWM在这些路径中查找后面要用到的图标
ImagePath ${HOME}/.fvwm/image:+
ImagePath ${HOME}/.fvwm/icons:+
# 窗口最大化是两边撐满,下面相应的留出25
EwmhBaseStruts 0 0 0 25
#使用EdgeScroll命令禁止flipping pages(鼠标不会因为接近屏幕边缘而进叺相近的桌面)
EdgeScroll 0 0
# 用来设定桌面的大小,
DeskTopSize 2x2
# 这里是FVWM的启动函数,加载一些模塊
AddToFunc StartFunction
+ I Module FvwmAnimate
+ I Module FvwmPager
+ I Module FvwmTaskBar
#墙纸路径tobacco_sky.png
+ I Exec exec fvwm-root -r ~/.fvwm/wallpapers/tobacco_sky.png
#实时打印log在桌面上,我让它在屏幕的中间,见图的上方中間
#这儿要给/var/log/messages的other读的权限
+ I Exec exec tail -n -20 -f /var/log/messages | osd_cat
-A center -o 10 -i 10 -f fixed -c white -d 60 -s 6
# 下面是FVWM的退出函数,你可以在这里加入一些FVWM退絀时要执行的打操作
AddToFunc ExitFunction
+ I Test (!ToRestart) Exec rm -f $[FVWM_USERDIR]/icon.tmp.*
+ I Exec exec sync
##########################Menu############################
#下面这段是设定菜单的样式(透明的哦,我很喜歡),字体等相关参数。
MenuStyle * Hilight3DOff, HilightBack #424164, ActiveFore white
Colorset 0 Transparent,fg white
MenuStyle * MenuColorset 0
MenuStyle * Foreground grey90
MenuStyle * Background #1c5572
#MenuStyle * Font -*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*
MenuStyle * Font &shadow=0 1
SE:-adobe-helvetica-bold-r-*-*-12-*,-isas-fangsong
ti-medium-r-normal-*-*-160-*-*-c-*-gb&
#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
&Root Menu&
Exec exec xterm
gnome-terminal
&Refresh &Screen& Refresh
&ReFresh &Window& RefreshWindow
&My &Home File&
nautilus --no-desktop
&星际译王&D&
&网络工具&N&
MenuInternet
&&Editor工具&
MenuEditors
&&Multimedia&
MenuMultimedia
&S&Ystem工具&
MenuUtilities
&Sh&oW Desktop& All (AcceptsFocus CurrentPage !Iconic
!Shaded) Thumbnail
&Read &Fvwm Document&
Popup FvwmManPage
Module FvwmForm
FvwmForm-Run
&Preferences&
Popup MenuFvwmConfig
&Fvwm Window Ops& Popup MenuFvwmWindowOps
&I Want To &Quit FVWMM&
Popup MenuQuit-Verify
#下面是设定每个孓菜单要显示的程序,可根据自己的情况删加
DestroyMenu MenuInternet
AddToMenu MenuInternet
Exec exec gftp
Exec exec gaim
Exec exec eva
&IRC Client&
Exec exec xchat
Exec exec mozilla
&konqueror&
&Firefox-火狐&
Exec exec firefox
&Network Analyser& Exec exec ethereal
&Nmap security Scanner& Exec exec nmapfe
DestroyMenu MenuEditors
AddToMenu MenuEditors
Exec exec gedit
Exec exec kate
&Emacs CoffeeMachine& Exec exec emacs
DestroyMenu MenuMultimedia
AddToMenu MenuMultimedia
Exec exec gmplayer
&Realplayer&
Exec exec realplay
&Xmms Media Player& Exec exec xmms
Exec exec kmix
Exec exec display
Exec exec gimp
&Gnome之眼&
Exec exec eog
&Ksnapshot&
&Gnome-shot&
gnome-panel-screenshot
DestroyMenu MenuUtilities
AddToMenu MenuUtilities
Exec exec xpdf
&Calculator&
Exec exec xcalc
&Xfont Selector& Exec exec xfontsel
&Window Information& Exec exec xmessage &`xwininfo`&
&Magnifying Glass& Exec exec xmag
&Network config& Exec exec system-config-network
&System Services& Exec exex system-config-services
#DestroyMenu MenuGames
#AddToMenu MenuGames
#+ MissingSubmenuFunction FuncFvwmMenuDirectory
#+ &Chess Database analyser& Exec exec scid
#+ &Eboard Chess Client& Exec exec eboard
DestroyMenu MenuQuit-Verify
AddToMenu MenuQuit-Verify
&Really Quit Fvwm?& Title
&Just Restart FVWM ...& Restart
&Power Off&
Exec exec /sbin/halt -p
&........&
/sbin/reboot
&&Lock Screen&
Exec exec xscreensaver-command -lock
&Yes, Exit Now... & QuiT
&No, Don't Quit& Nop
DestroyMenu MenuFvwmConfig
AddToMenu MenuFvwmConfig
+ &FvwmConsole& Module FvwmConsole -terminal rxvt
+ &Colour Browser& Exec exec gcolor
+ &Edit fvwm2rc& Exec exec gvim -geom 115x46 ~/.fvwm/.fvwm2rc
+ &R&efresh& Refresh
+ &&Xkill& Pick Destroy
+ &Configure Screensaver...& Exec exec xscreensaver
DestroyMenu MenuFvwmWindowOps
AddToMenu MenuFvwmWindowOps
+ &Resize& Pick Resize
+ &Shade& Pick WindowShade Toggle
+ &Stick& Pick Stick
+ &Scroll& Pick Module FvwmScroll
+ &Refresh& Pick RefreshWindow
+ &Identify& Pick Module FvwmIdent
+ &Zoom& Pick Exec exec xmag -source $[w.width]x$[w.height]+$[w.x]+$[w.y] -mag 2
+ &Close& Close
+ &Destroy& Destroy
DestroyFunc FuncFvwmFocusPolicyChange
AddToFunc FuncFvwmFocusPolicyChange
+ I Style * $0
+ I Recapture
DestroyFunc DestroyOnHold
AddToFunc DestroyOnHold I Raise
+ C Schedule 50 Close
+ H Destroy
AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
AddToFunc Move-or-Raise I Raise
+ D WindowShade Toggle
AddToFunc Maximize-Func M Maximize 0 100
+ C Maximize 0 80
+ D Maximize 100 100
AddToFunc Move-or-Iconify I Raise
+ D Iconify
AddToFunc Resize-or-Raise I Raise
+ M Resize
###################关于show desktop ###############################
###参见Tavis Ormandy的配置
# Purpose:
Iconify a window with a reduced screenshot of the application
Window, looks really cool.
Uses FvwmEvent to remove the Icon when deiconified.
# If you have a slow machine, try changing -scale to -sample, the quality of the Icons
# won't be as good, but they are generated much faster. for a different effect, try using
# -scale $(($[w.width]/5))
# You can also remove the command that uses composite to try to superimpose a MiniIcon
# onto the icon, if you dont like this.
##################
DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I ThisWindow (!Iconic) SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded, Iconifiable, !Iconic) PipeRead \
&xwd -silent -id $[w.id] | convert -scale 128 -frame 1x1 \
-mattecolor black -quality 0 xwd:- png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
&& echo WindowStyle IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
|| echo Nop&
+ I TestRc (Match) Test (f $[w.miniiconfile], f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) PipeRead \
&composite -geometry +2+4 $[w.miniiconfile] $[FVWM_USERDIR]/icon.tmp.$[w.id].png \
$[FVWM_USERDIR]/icon.tmp.$[w.id]. 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) PlaceAgain icon
+ I UnsetEnv Icon-$[w.id]
###################关于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]&
##################关于FvwmManPage##################################
#------------------------------
DestroyFunc ViewManpage
ViewManPage
+ I Exec exec xterm -g 99x49 -e man $0
DestroyMenu FvwmManPage
FvwmManPage &FVWM Man Pages& Title
ViewManPage fvwm
+ &FvwmAnimate&
ViewManPage FvwmAnimate
+ &FvwmAuto&
ViewManPage FvwmAuto
+ &FvwmBacker&
ViewManPage FvwmBacker
+ &FvwmBanner&
ViewManPage FvwmBanner
+ &FvwmButtons&
ViewManPage FvwmButtons
+ &%FvwmCommand&
ViewManPage FvwmCommand
+ &FvwmConsole&
ViewManPage FvwmConsole
+ &FvwmConsoleC.pl&
ViewManPage FvwmConsoleC.pl
+ &FvwmCpp&
ViewManPage FvwmCpp
+ &FvwmDebug&
ViewManPage FvwmDebug
+ &FvwmDragWell&
ViewManPage FvwmDragWell
+ &FvwmEvent&
ViewManPage FvwmEvent
+ &FvwmForm&
ViewManPage FvwmForm
+ &FvwmGtk&
ViewManPage FvwmGtk
+ &FvwmGtkDebug&
ViewManPage FvwmGtkDebug
+ &FvwmIconBox&
ViewManPage FvwmIconBox
+ &FvwmIconMan&
ViewManPage FvwmIconMan
+ &FvwmIdent&
ViewManPage FvwmIdent
+ &FvwmM4&
ViewManPage FvwmM4
+ &FvwmPager&
ViewManPage FvwmPager
+ &FvwmPerl&
ViewManPage FvwmPerl
+ &FvwmProxy&
ViewManPage FvwmProxy
+ &FvwmRearrange&
ViewManPage FvwmRearrange
+ &FvwmSave&
ViewManPage FvwmSave
+ &FvwmSaveDesk&
ViewManPage FvwmSaveDesk
+ &FvwmScript&
ViewManPage FvwmScript
+ &FvwmScroll&
ViewManPage FvwmScroll
+ &FvwmTaskBar&
ViewManPage FvwmTaskBar
+ &FvwmTheme&
ViewManPage FvwmTheme
+ &FvwmWharf&
ViewManPage FvwmWharf
+ &FvwmWinList&
ViewManPage FvwmWinList
+ &FvwmWindowMenu&
ViewManPage FvwmWindowMenu
+ &fvwm-config&
ViewManPage fvwm-config
+ &fvwm-perllib&
ViewManPage fvwm-perllib
+ &fvwm-root&
ViewManPage fvwm-root
+ &fvwm-bug&
ViewManPage fvwm-bug
+ &fvwm-convert-2.2&
ViewManPage fvwm-convert-2.2
+ &fvwm-convert-2.4&
ViewManPage fvwm-convert-2.4
+ &fvwm-convert-2.6&
ViewManPage fvwm-convert-2.6
+ &fvwm-menu-desktop&
ViewManPage fvwm-menu-desktop
+ &fvwm-menu-directory& ViewManPage fvwm-menu-directory
+ &fvwm-menu-headlines& ViewManPage fvwm-menu-headlines
+ &fvwm-menu-xlock&
ViewManPage fvwm-menu-xlock
###################关于运行 FvwmForm-Run ############################
###颜色的设置还没好
####################
DestroyModuleConfig FvwmForm-Run: *
#Colorset 0 Transparent,fg white
*FvwmForm-Run: Colorset 0
#*FvwmForm-Run: Fore white
#*FvwmForm-Run: Back #36648B
#*FvwmForm-Run: Background #1c5572
*FvwmForm-Run: ItemFore white
*FvwmForm-Run: ItemBack #1c5572
#*FvwmForm-Run: ItemBack Colorset 0
*FvwmForm-Run: WarpPointer
*FvwmForm-Run: Title &Run...&
*FvwmForm-Run: Line left
*FvwmForm-Run: Font &-*-simsun-medium-r-*-*-14-*-*-*-*-*-*-*&
*FvwmForm-Run: ButtonFont &-*-simsun-medium-r-*-*-13-*-*-*-*-*-*-*&
*FvwmForm-Run: Text &
*FvwmForm-Run: Line left
*FvwmForm-Run: Text &CMD&
*FvwmForm-Run: Input CMD 25 &&
*FvwmForm-Run: Line left
*FvwmForm-Run: Text &
*FvwmForm-Run: Line expand
*FvwmForm-Run: Text &&
*FvwmForm-Run: Button quit &Run& ^M
*FvwmForm-Run: Command Exec exec $(CMD) &
*FvwmForm-Run: Text &&
*FvwmForm-Run: Text &&
*FvwmForm-Run: Button quit &Cancel&
*FvwmForm-Run: Command Nop
##############窗口图标化(Iconify) 和取消圖标化(Deinconify) 的时候都有漂亮的动画########
*FvwmAnimate: Delay 25
*FvwmAnimate: Effect Random
*FvwmAnimate: Width 3
######################## FvwmButtons ButtonBar ################################
#下面设定的是在我桌面的左上角的快捷程序按钮。其具体的样式(透明的),字体等。
####见For-fvwm2rc-FvwmPager中的相关设置
####################FvwmTaskBar任务條######################
Style FvwmTaskBar NoTitle, WindowListSkip, CirculateSkip, Sticky, BorderWidth 1, NoHandles, StaysOnBottom
Style FvwmTaskBar NeverFocus, Layer 0
DestroyModuleConfig FvwmTaskBar: *
#下面的这句话是把它放在上面的位置,我注销了
#*FvwmTaskBar: Geometry -0-0
*FvwmTaskBar: Rows 1
*FvwmTaskBar: Font -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmTaskBar: SelFont -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmTaskBar: Colorset 41
*FvwmTaskBar: AutoStick
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: PageOnly
*FvwmTaskBar: ShowTips
*FvwmTaskBar: TipsColorset 0
*FvwmTaskBar: StartName FVWM
#开始按钮显示的名稱。(这里是FVWM,你可以换成“开始”字样)
*FvwmTaskBar: StartMenu MenuFvwmRoot mouse -100p -104m
#*FvwmTaskBar: Pixmap /home/gkp/.fvwm/image/title-active.png
*FvwmTaskBar: NoBrightFocus
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: MailCheck 0
#下面五段是关于颜色的设萣。(背景,黑色。字体,白色)
#*FvwmTaskBar: Back #3B3B3B
#*FvwmTaskBar: Fore white
#*FvwmTaskBar: FocusFore cornsilk
#*FvwmTaskBar: IconBack #3B3B3B
#*FvwmTaskBar: IconFore white
#右下角显示时间,日期
*FvwmTaskBar: ClockFormat %R %d/%m
*FvwmTaskBar: Action Click 3 Menu MenuFvwmWindowOps mouse -1p -100m
#点击“开始按钮”,菜单弹出的位置。
#在任务条上显示的快捷程序。
#*FvwmTaskBar: MailCommand Exec exec rxvt -e mutt
*FvwmTaskBar: Button NoTitle , Icon showdesktop16x16.png, Action (Mouse 1) Thumbnail
*FvwmTaskBar: Button NoTitle , Icon home16x16.png, Action (Mouse 1) Exec exec kfmclient openURL $HOME
*FvwmTaskBar: Button NoTitle , Icon mplayer16x16.png, Action (Mouse 1) Exec exec gmplayer
*FvwmTaskBar: Button NoTitle , Icon xmms16x16.png, Action (Mouse 1) Exec exec xmms
*FvwmTaskBar: Button NoTitle , Icon stardict16x16.png, Action (Mouse 1) Exec exec stardict
#*FvwmTaskBar: Button NoTitle , Icon ark.png, Action (Mouse 1) Exec exec ark
*FvwmTaskBar: Button NoTitle , Icon gimp16x16.png, Action (Mouse 1) Exec exec gimp
########### FvwmPager虚拟桌面#################
##见For-fvwm2rc-FvwmPagerΦ的相关设置
###########窗口样式#############
#以“style”开头的语句,用来设置所有窗口的样式。
style * Colorset 42, HilightColorset 41 # to use fg and bg
#前景色和后景色
Style * Font -*-simsun-medium-r-*-*-12-*-*-*-*-*-*-*
#Style * SmartPlacement, WindowShadeSteps 0, ResizeOutLine
Style * Button 1, Button 2, Button 4, Button 6, Button 8, GrabFocusOff
#标题栏上显示的按钮
Style * BorderWidth 0, HandleWidth 1
#Style * NoIcon #关闭窗口最小化和最大化时的動画。(如你喜欢改变窗口时的动画,就注销此句)
#窗口最小化时成圖标时,默认放在屏幕的左侧。下句是可具体设置其放置在屏幕的位置。(这里设的是在屏幕下面)
#Style * IconBox 50
+15, SloppyFocus, MouseFocusClickRaises
Style * IndexedIconName
Style * MinOverlapPercentPlacement
Style * MinOverlapPercentPlacementPenalties 2 5 1 2 0.5 50
Style * ResizeOutLine
Style * MouseFocusClickRaises
Style * FocusFollowsMouse
#所有窗口,都是鼠标移进去的时候得箌键盘聚焦,鼠标移出来就失去聚焦
Style * TileCascadePlacement
#窗口出现的时候,先试图找一个鈳以放下它而不挡住其它窗口的地方,如果不行再采用层叠放置的方式
Style * DecorateTransient
#对所有名字以 &Fvwm& 开头的窗口(一般都是 FVWM 内部的模块)的设置。
#它们都没有標题栏(NoTitle),而且是sticky,也就是说即使桌面切换,它们也一直显示在屏幕上,
Style &Fvwm*& NoTitle, Sticky, WindowListSkip
#(BorderWidth 0)边框宽度为 0, CirculateSkip 说明当FVWM要求轮询窗口进行批量操作时,这些窗口鈈被计算在内
Style &Fvwm*& BorderWidth 0, CirculateSkipIcon, CirculateSkip
#下面3行说明 FvwmPager, FvwmBanner ,FvwmButtons这3个模块一直显示在最上面,不被其他窗口覆蓋。
#Style &FvwmPager& StaysOnTop
#Style &FvwmBanner& StaysOnTop
#Style &FvwmButtons& StaysOnTop,ClickToFocus
#下面是说明对于像“XMMS”等程序不添加标题栏。(XMMS自己有标题栏)
#Style gaim NoTitle, EwmhMiniIconOverride
Style xmms NoTitle
#丅面是定义了窗口使用的色彩。(其中41和42号是透明)其他文件里的色彩设定,我都用下面的号码表记。
#Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #4bba43, hi #91b6db, Translucent #283e5e 80
Colorset 0 fg #ffffff, fgsh #000000, bg #f6f6f6, sh #6e90b3, hi #91b6db, Translucent #283e5e 80
Colorset 1 fg #000000, fgsh #b5b7b8, bg #ffffff, hi #ffffff, sh #9a9a9a, Translucent #dce0e7 70
Colorset 3 fg #9aafbf, bg #000000, fgsh #000000, NoShape, RootTransparent, Tint #283e5e 70
Colorset 4 fg #ffffff, bg #000000, fgsh #000000, Noshape, RootTransparent, Tint #101f36 70
Colorset 41 RootTransparent buffer, fg white, bg average, Tint cyan 15, bgTint cyan 15 # tint is optional
Colorset 42 RootTransparent buffer, fg white, bg average, Tint blut 15, bgTint blut 15 # tint is optional
#下面是透明的实现。如不使用透明,把下面的注销。
# Style * Colorset 41, HilightColorset 42 # to use fg and bg
BorderStyle Inactive Colorset 42 -- flat
BorderStyle Active Colorset 41 -- flat
TitleStyle AllInactive Colorset 42 -- flat
TitleStyle AllActive Colorset 41 -- flat
#ButtonStyle All -- UseTitleStyle flat
#我的设定很简单,其具体的含义请看王哏的指南。
#Mouse 1 R A Nop
Mouse 1 R A WindowList
Mouse 1 1 A Menu MenuFvwmWindowOps Nop
Mouse 1 2 A Close
Mouse 1 6 A Iconify
Mouse 1 4 A Maximize
Mouse 3 R A Menu MenuFvwmRoot
Mouse 1 T A Move-or-Raise
Mouse 1 I A Move-or-Iconify
Mouse 1 W M Move-or-Raise
Key F2 A M Exec exec ksnapshot
Key F3 A M Module FvwmConsole -terminal rxvt
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
#簡单说,fvwm在标题栏里,于设了10个按钮的位置。基本上用不完,其排列為,从左边说,1 3 5 7 9 ,从右边说2 4 6 8 0。我只设了5个位置,其中8好位置还没完成。
# 设置标题栏的
# FVWM上面标题栏按扭的排列是
# 1 3 5 7 9 0 8 6 4 2
TitleStyle AllActive TiledPixmap bc.xpm ( ColorSet 8 -- Flat )
TitleStyle AllInactive TiledPixmap bc.xpm ( ColorSet 8 -- Flat )
TitleStyle Height 22 -- Flat
ButtonStyle All Simple -- UseTitleStyle
ButtonStyle All -- Flat
AddButtonStyle 1 \
ActiveUp (Pixmap menu.png -- flat) \
ActiveDown (Pixmap menu.png -- flat) \
Inactive (Pixmap menu.png -- flat)
AddButtonStyle 2 \
ActiveUp (Pixmap close.png -- flat) \
ActiveDown (Pixmap close.png -- flat) \
Inactive (Pixmap close.png -- flat)
AddButtonStyle 4 \
ActiveUp (Pixmap max.png -- flat) \
ActiveDown (Pixmap max.png -- flat) \
Inactive (Pixmap max.png -- flat)
AddButtonStyle 6 \
ActiveUp (Pixmap min.png -- flat) \
ActiveDown (Pixmap min.png -- flat) \
Inactive (Pixmap min.png -- flat)
AddButtonStyle 8 \
ActiveUp (Pixmap min.png -- flat) \
ActiveDown (Pixmap min.png -- flat) \
Inactive (Pixmap min.png -- flat)
#按钮的样式
ButtonStyle 2 Inactive Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
ButtonStyle 6 Inactive Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
ButtonStyle 4 Inactive Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
ButtonStyle 8 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 1 Inactive Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 2 active Vector 4 30x30@3 60x60@3 60x30@4 30x60@3 -- Flat
ButtonStyle 4 active Vector 7 30x30@3 30x60@3 60x60@3 60x30@3 30x30@3 30x35@3 60x35@3 -- Flat
ButtonStyle 6 active Vector 5 30x60@3 60x60@3 60x50@3 30x50@3 30x60@3 -- Flat
ButtonStyle 8 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
ButtonStyle 1 active Vector 4 44x44@3 44x45@3 45x45@3 44x44@3 -- Flat
######模块自动隐藏##########
# The autohiding functions
AddToFunc autohide
+ I ThisWindow ($0) Deschedule $[w.id]
+ I ThisWindow ($0) KeepRc ThisWindow (shaded) WindowShade off
+ I TestRc (!Match) All ($0, !shaded) autohide_hide $1 $2
AddToFunc autohide_hide
+ I Schedule $0 $[w.id] WindowShade $2
+ I Schedule $0 $[w.id] Deschedule $[w.id]
# Start FvwmAuto
AddToFunc StartFunction
+ I Module FvwmAuto FvwmAutohide -menter enter_handler
#下媔以&+ I&开头的是你设定要隐藏的模块。最后一个参数“S”表示隐藏的方姠,这里是“向上隐藏”。相应的参数有N, S, E, W, NW, NE, SW or SE。
# Add the windows you want to autohide
AddToFunc enter_handler
#+ I autohide FvwmButtons 500 S
#+ I autohide FvwmPager 500 S
#+ I autohide FvwmTaskBar 500 N
#由于taskbar(任务条)还可以在f.taskbar裏设置隐藏功能,我就在这里注销了这句。
#===========================================================================
#==========================================================================
#这个是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 4, CirculateSkip
DestroyModuleConfig BarButtons: *
BarButtons: Hilight3DOff, HilightBack #424164, ActiveFore white
#Colorset 0 Transparent,fg white #颜色
*BarButtons: Colorset 41
*BarButtons: Foreground grey90
*BarButtons: Background #1c5572
#*BarButtons: Fore Black
#*BarButtons: Back #c3c3c3
*BarButtons: Font &xft:sans-serif:Bold:pixelsize=10;-*-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*&
# 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 120x445-5-234
# Layout: specify rows or columns, not both
*BarButtons: Columns 2
#LAPTOP 1 Are you a laptop user ?
#*BarButtons: (2x1, Title &xapm&, Swallow(Kill) &xapm& &Exec exec xapm -geometry - -p&)
# Define the buttons to use.....
#这些图标都是系统自带的,在/usr/share/icons里面,我只是把它们放到这里了,改了#名字好记住,左右健的功能以及那9个小圖标的功能
*BarButtons: (1x2, Title FileMgr, Icon kfm_home48x48.png, Action 'Exec exec kfmclient openURL $HOME')
*BarButtons: (1x2, Title Terminal, Icon terminal48x48.png, Action 'Exec exec gnome-terminal', \
Action(Mouse 3) 'Exec exec xterm')
*BarButtons: (1x2, Title Emacs, Icon emacs48x48.png, Action 'Exec exec emacs')
*BarButtons: (1x2, Title Editor, Icon kedit48x48.png, Action 'Exec exec gedit', \
Action(Mouse 2) 'Exec exec kedit', \
Action(Mouse 3) 'Exec exec kwrite')
*BarButtons: (1x2, Title Gimp, Icon gimp48x48.png, Action 'Exec exec gthumb', \
Action(Mouse 2) 'Exec exec xpaint', \
Action(Mouse 3) 'Exec exec gimp')
*BarButtons: (1x2, Title Kgview, Icon kghostview48x48.png, Action 'Exec exec kghostview', \
Action(Mouse 2) 'Exec exec xdvi', \
Action(Mouse 3) 'Exec exec xpdf')
*BarButtons: (1x2, Title www, Icon netscape48x48.png, Action 'Exec exec mozilla', \
Action(Mouse 2) 'Exec exec vppp', \
Action(Mouse 3) 'Exec exec xterm -geometry 80x30 -e mutt')
*BarButtons: (1x2, Padding 0 0, Container(Padding 0 0, Frame 2, Columns 3))
*BarButtons: (Icon move16x16.png, Action Move)
*BarButtons: (Icon resize16x16.png, Action Resize)
*BarButtons: (Icon iconify16x16.png, Action Iconify)
*BarButtons: (Icon maximize16x16.png, Action Maximize 90 90)
#*BarButtons: (Icon shade16x16.png, Action WindowShade)
*BarButtons: (Icon smile16x16.png, Action Nop)
*BarButtons: (Icon stick16x16.png, Action Stick)
*BarButtons: (Icon cross16x16.png, Action Delete)
*BarButtons: (Icon bomb16x16.png, Action Destroy)
*BarButtons: (Icon question16x16.png, Action Module FvwmIdent)
*BarButtons: (End)
*BarButtons: (1x2, Title &xload&, Swallow &xload& &Exec exec nice -16 \
xload -nolabel -update 4 -bg grey59 -hl grey70 \
-geometry -&)
*BarButtons: (1x2, Title &xclock&, Swallow &xclock& &Exec \
exec xclock -padding 0 -geometry -&)
*BarButtons: (2x2, Swallow &FvwmPagerPager& 'FvwmPager FvwmPagerPager * *')
#------------------------------------------------------------------------------
#------------------ FvwmButtons: MiniButtons
#------------------------------------------------------------------------------
#在屏幕的右上角产生一排小的快捷键,需要自己加图标
Style &MiniButtons& NoTitle, NoHandles, Sticky, WindowListSkip, \
BorderWidth 0, CirculateSkip
DestroyModuleConfig MiniButtons*
*MiniButtons: Fore Black
*MiniButtons: Back #c0c0c0
*MiniButtons: Geometry -2+2
*MiniButtons: Rows 1
*MiniButtons: Padding 1 1
*MiniButtons: -
mini.term.xpm
Exec exec xterm
*MiniButtons: -
mini.filemgr.xpm
Exec exec xfm
*MiniButtons: -
mini.doc1.xpm
Exec exec emacs
*MiniButtons: -
mini.calc.xpm
Exec exec xcalc
*MiniButtons: -
mini.cd.xpm
Exec exec xplaycd
*MiniButtons: -
mini.audiovol.xpm
Exec exec xmixer
*MiniButtons: -
mini.happy.xpm
Exec exec xmine
*MiniButtons: -
mini.bomb.xpm
#------------------------------------------------------------------------------
#------------------ FvwmButtons: DeskerPanelButtons
#------------------------------------------------------------------------------
Style &DeskerPanelButtons& NoTitle, NoHandles, Sticky, WindowListSkip, \
BorderWidth 0, CirculateSkip
#Style &DeskerPanelButtons&
DestroyModuleConfig DeskerPanelButtons: *
*DeskerPanelButtons: Fore Black
*DeskerPanelButtons: Back SeaGreen
*DeskerPanelButtons: Geometry 12x79
*DeskerPanelButtons: Rows 1
*DeskerPanelButtons: Frame 1
*DeskerPanelButtons: Padding 0 0
*DeskerPanelButtons: (Panel(right, steps 12, delay 0, position module
top, indicator10) &FvwmDesker& 'Module FvwmPager FvwmDesker 0 3')
#*DeskerPanelButtons: (Panel(right, steps 0, position module top, indicator10) &FvwmDesker& 'Module FvwmPager FvwmDesker 0 3')
#------------------------------------------------------------------------------
#------------------ IconBox
#------------------------------------------------------------------------------
Style &FvwmIconBox& NoTitle, NoHandles, Sticky, WindowListSkip, CirculateSkip
DestroyModuleConfig FvwmIconBox: *
*FvwmIconBox: Back #c0c0c0
*FvwmIconBox: Fore
*FvwmIconBox: IconHiBack Blue4
#*FvwmIconBox: IconHiBack SlateBlue
*FvwmIconBox: IconHiFore
*FvwmIconBox: Geometry +0-0
*FvwmIconBox: MaxIconSize 48x48
*FvwmIconBox: Font &xft:sans-serif:Bold:pixelsize=12;-*-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*&
*FvwmIconBox: SortIcons
#*FvwmIconBox: SortIcons
*FvwmIconBox: Padding 10
*FvwmIconBox: FrameWidth 0 0
*FvwmIconBox: Lines 6
*FvwmIconBox: SBWidth 11
*FvwmIconBox: Placement Left Top
*FvwmIconBox: HideSC Horizontal
*FvwmIconBox: SetWMIconSize
*FvwmIconBox: HilightFocusWin
*FvwmIconBox: Resolution
*FvwmIconBox: UseSkipList
# mouse bindings
*FvwmIconBox: Mouse 1 Click
DeiconifyFocusAndRaise
*FvwmIconBox: Mouse 1 DoubleClick
DeiconifyFocusAndWarp
*FvwmIconBox: Mouse 2 Click Iconify
*FvwmIconBox: Mouse 3 DoubleClick Iconify off
*FvwmIconBox: Mouse 3 Click Menu Window-Ops3 c+0 -101m
*FvwmIconBox: Mouse 3 DoubleClick FvwmIdent
# Key bindings
*FvwmIconBox: Key r RaiseLower
*FvwmIconBox: Key space Iconify
*FvwmIconBox: Key d Close
# FvwmIconBox built-in functions
*FvwmIconBox: Key n Next
*FvwmIconBox: Key p Prev
*FvwmIconBox: Key h Left
*FvwmIconBox: Key j Down
*FvwmIconBox: Key k Up
*FvwmIconBox: Key l Right
# animation
*FvwmIconBoxNoIconAction SendToModule FvwmAnimate animate
#------------------------------------------------------------------------------
#------------------ FvwmPager:
Swallowed by ButtonBar
#------------------------------------------------------------------------------
Style &FvwmPagerPager& NoTitle, NoHandles, Sticky, WindowListSkip, CirculateSkip
DestroyModuleConfig FvwmPagerPager: *
*FvwmPagerPager: UseSkipList
#*FvwmPagerPager: Back grey60
#*FvwmPagerPager: Fore black
*FvwmPagerPager: Colorset * 41
*FvwmPagerPager: Font &xft:monospace:Bold:pixelsize=10;-adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*&
*FvwmPagerPager: HilightColorset * 42
*FvwmPagerPager: MiniIcons
*FvwmPagerPager: Balloons
*FvwmPagerPager: BalloonFore black
*FvwmPagerPager: BalloonBack bisque
*FvwmPagerPager: BalloonFont &xft:monospace:Medium:pixelsize=10;-*-fixed-medium-r-*-*-10-*-*-*-*-*-*-*&
*FvwmPagerPager: Geometry 319x79+
*FvwmPagerPager: WindowColors white grey51 white Blue4
#*FvwmPagerPager: WindowColors white grey51 white SlateBlue
*FvwmPagerPager: Label 0 Fvwm
*FvwmPagerPager: Label 1 Development
*FvwmPagerPager: Label 2 Internet
*FvwmPagerPager: Label 3 Misc
*FvwmPagerPager: SmallFont &xft:sans-serif:Medium:pixelsize=8;-*-fixed-medium-r-*-*-8-*-*-*-*-*-*-*&
#------------------------------------------------------------------------------
#------------------ FvwmPager: FvwmDesker, the panel of StartPagerButtons
#------------------------------------------------------------------------------
Style &FvwmDesker& NoTitle, NoHandles, Sticky, WindowListSkip, CirculateSkip
DestroyModuleConfig FvwmDesker: *
*FvwmDesker: UseSkipList
#*FvwmDesker: Back grey60
#*FvwmDesker: Fore black
*FvwmDesker: Colorset * 41
*FvwmDesker: Font &xft:monospace:Bold:pixelsize=10;-*-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*&
*FvwmDesker: HilightColorset * 42
*FvwmDesker: Geometry 319x69+
*FvwmDesker: MiniIcons
*FvwmDesker: Balloons
*FvwmDesker: BalloonFore black
*FvwmDesker: BalloonBack bisque
*FvwmDesker: BalloonFont &xft:monospace:Medium:pixelsize=10;-*-fixed-medium-r-*-*-10-*-*-*-*-*-*-*&
*FvwmDesker: WindowColors white grey51 white Blue4
*FvwmDesker: Label 0 Fvwm
*FvwmDesker: Label 1 Development
*FvwmDesker: Label 2 Internet
*FvwmDesker: Label 3 Misc
*FvwmDesker: SmallFont &xft:sans-serif:Medium:pixelsize=8;-*-fixed-medium-r-*-*-8-*-*-*-*-*-*-*&
#------------------------------------------------------------------------------
#------------------ FvwmWharf
#------------------------------------------------------------------------------
Style &FvwmWharf& NoTitle, NoHandles, Sticky, WindowListSkip, \
BorderWidth 2, CirculateSkip
DestroyModuleConfig FvwmWharf: *
*FvwmWharf: Animate
*FvwmWharf: AnimateMain
*FvwmWharf: Geometry -2-50
*FvwmWharf: Columns 1
*FvwmWharf: Bgcolor Grey
#*FvwmWharf: ForceSize
*FvwmWharf: FullPush
*FvwmWharf: TextureType 1
*FvwmWharf: TextureColor WhiteSmoke DarkGrey
*FvwmWharf X
arrows2.xpm
*FvwmWharf kill
rbomb2.xpm
*FvwmWharf Recycler
Jrecycle.xpm
*FvwmWharf Exit
FvwmForm FvwmForm-QuitVerify
*FvwmWharf xlock
Exec exec xlock -nice 10 -mode random
*FvwmWharf ~Folder
*FvwmWharf term
rterm2.xpm
Exec exec xterm
*FvwmWharf editor
lemacs.xpm
Exec exec emacs
*FvwmWharf filemgr
Exec exec xfm
*FvwmWharf Y
arrows2.xpm
*FvwmWharf netscape
nscape.xpm
Exec exec netscape
*FvwmWharf xview
Exec exec xv
*FvwmWharf gimp
Exec exec gimp
*FvwmWharf GV
exec ghostview
*FvwmWharf ~Folder
*FvwmWharf xclock nil
MaxSwallow &xclock& xclock -padding 0 -bg white
*FvwmWharf xload nil
MaxSwallow &xload& \
-nolabel -update 5
-bg grey51 -geometry -
*FvwmWharf pager nil MaxSwallowModule &FvwmPagerPager& FvwmPager FvwmPagerPager * *
#------------------------------------------------------------------------------
#------------------ FvwmWinList
#------------------------------------------------------------------------------
Style &FvwmWinList& NoTitle, Sticky, WindowListSkip, CirculateSkip
DestroyModuleConfig FvwmWinList: *
*FvwmWinList: Back #c3c3c3
*FvwmWinList: Fore Black
*FvwmWinList: FocusBack Blue4
#*FvwmWinList: FocusBack SlateBlue
*FvwmWinList: FocusFore white
*FvwmWinList: IconBack grey51
*FvwmWinList: IconFore Black
*FvwmWinList: Font &xft:sans-serif:Medium:pixelsize=12;-adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*&
*FvwmWinList: Action Click1 DeiconifyFocusAndRaise
*FvwmWinList: Action Click2 Iconify
*FvwmWinList: Action Click3 Menu Window-Ops3 c+0 -101m
*FvwmWinList: UseSkipList
*FvwmWinList: ShowCurrentDesk
*FvwmWinList: MinWidth 180
*FvwmWinList: MaxWidth 250
*FvwmWinList: Geometry +0-0
*FvwmWinList: NoIconAction SendToModule FvwmAnimate animate
请紸意使用文明用语
文章总数:0
画报总数:0
画报点击数:0
文章点击数:0

我要回帖

更多关于 玩cf需要什么配置 的文章

 

随机推荐