中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 操作系统 > BSD > 综合文章
ctwmrc设置
作者:未知 时间:2005-09-13 22:47 出处:Blog.ChinaUnix.net 责编:chinaitpower
              摘要:ctwmrc设置
我最爱的Window Manager就是ctwm,这份就是我机器上配置的.ctwmrc文件,虽然不是太精致但对我的操作却很方便,而且菜单我也全部用了中文。


.ctwmrc

NoGrabServer
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
ShowWorkSpaceManager # start with workspcace manager up
UseThreeDMenus
UseThreeDTitles
UseThreeDIconManagers
UseThreeDBorders
UseThreeDWMap
SunkFocusWindowTitle
NoShowOccupyAll

#IconManagerGeometry "312x60+0-0" 1

workspacemanagergeometry "360x60+0-0" 3
WorkSpaces {
"终端" {"#686B9F" "white" "#dadcd5" "Black" "root_weave"}
"互联网" {"#727786" "white" "#dadcd5" "Black" "root_weave"}
"Emacs编辑" {"#727786" "white" "#dadcd5" "Black" "root_weave"}
"聊天" {"#619AAE" "white" "#dadcd5" "Black" "root_weave"}
"绘图" {"#8C5b7A" "white" "#dadcd5" "Black" "root_weave"}
"其他" {"#686B9F" "white" "#dadcd5" "Black" "root_weave"}
}

Color
{
BorderColor "Red"
DefaultBackground "blue"
DefaultForeground "gray85"
BorderTileBackground "DeepSkyBlue1" {
"xterm" "DeepSkyBlue3"
}
BorderTileForeground "Black" {
"xterm" "DeepSkyBlue3"
}
TitleBackground "DeepSkyBlue1" {
"xterm" "DeepSkyBlue3"
}
TitleForeground "Black" {
"xterm" "White"
}
MenuBackground "#686B9F"
MenuForeground "white"
MenuTitleBackground "gray70"
MenuTitleForeground "White"
IconBackground "LightSlateBlue"
IconForeground "White"
IconBorderColor "gray85"
IconManagerBackground "DeepSkyBlue1" {"Axe" "DeepSkyBlue3" "xload" "DeepSkyBlue2"}
IconManagerForeground "Black"
MapWindowBackground "DeepSkyBlue1" {
"root*" "Red"
"xterm" "DeepSkyBlue3"
"Axe" "Yellow"
}
MapWindowForeground "Black" {
"xterm" "White"
}
}

IconManagerDontShow {
"WorkSpaceManager"
}

NoTitle { # little programs that look like icons
"TWM Icon Manager"
"WorkSpaceManager"
"xconsole"
}

NoBorder {
"TWM Icon Manager"
"WorkSpaceManager"
"xconsole"
}

OccupyAll {
"xconsole"
}

Occupy {
"xterm"
"gv"
"gaim"
"xchat"
"gimp"
"Mozilla"
"emacs"
"gqview"
}

Icons {
"WorkSpaceManager" "xpm:nothing.xpm"
"xconsole" "xpm:term.xpm"
"xterm" "xpm:xterm.xpm"
"emacs" "xpm:emacs.xpm"
}

RightTitleButton ":xpm:bar" = f.deleteordestroy
"F1" = : all : f.fullzoom
"F2" = : all : f.iconify
"F3" = : all : f.refresh
"F4" = : all : f.restart
"F5" = : all : f.showiconmgr
"F6" = : all : f.hideiconmgr
"F7" = : all : f.showworkspacemgr
"F8" = : all : f.hideworkspacemgr
"F9" = : all : !"emacs -bg black -fg cyan &"
"F10" = : all : !"mozilla &"
"F11" = : all : !"gimp &"
"F12" = : all : !"xterm -fn 7x13bold -bg black -fg cyan &"
#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "AppOps"
Button2 = : root : f.menu "windowops"
Button3 = : root : f.menu "defops"

Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
Button3 = m : window|icon : f.function "move-or-raise"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

Button1 = : frame : f.resize
Button1 = m : frame : f.move
Button2 = : frame : f.raiselower
#
# And a menus with the usual things
#
menu "defops"
{
"系统的选项" f.title
"缩放" f.menu "ZoomOps"
"" f.separator
"显示图标管理器" f.showiconmgr
"隐藏图标管理器" f.hideiconmgr
"" f.nop
"显示窗口管理器" f.showworkspacemgr
"隐藏窗口管理器" f.hideworkspacemgr
"" f.separator
"重启" f.restart
"退出" f.menu "QuitOpt"
}

menu "windowops" {
"Windows" f.title
"Occupy" f.occupy
"Occupy All" f.occupyall
"Iconify" f.iconify
"Refresh" f.refresh
"Vanish" f.vanish
"Info" f.identify
"" f.separator
"Resize" f.resize
"Move" f.move
"Adopt Window" f.adoptwindow
"Animate" f.startanimation
"Don't animate" f.stopanimation
"" f.separator
"Send Delete" f.delete
"Kill Window" f.destroy
"Pin menu" f.pin
}

menu "windowmenu" {
"Occupy ..." f.occupy
"Occupy All" f.occupyall
"Iconify" f.iconify
"RaiseLower" f.raiselower
"Refresh" f.winrefresh
"Zoom" f.menu "Zoom"
"Vanish" f.vanish
"Focus" f.focus
"Unfocus" f.unfocus
"" f.separator
"Send Delete" f.delete
"Kill Window" f.destroy
"Resize..." f.resize
"Move..." f.move
}

menu "iconmenu" {
"Actions" f.title
"" f.separator
"Restore" f.iconify
"Move" f.move
"Occupy ..." f.occupy
"Occupy All" f.occupyall
"" f.separator
"Send Delete" f.delete
"Kill Window" f.destroy
}

menu "QuitOpt" {
"退出?" f.title
"不,只重启" f.restart
"是的,我退出" f.quit
}

menu "AppOps" {
"应用程序" f.title
"X终端" !"xterm -fn 7x13bold -sl 600 -bg black -fg cyan &"
"" f.nop
"互联网" f.menu "InternetOps"
"绘图" f.menu "PicOps"
"编辑" f.menu "TextOps"
"其他" f.menu "OtherOps"
}

menu "InternetOps" {
"─互联网─" f.title
"Mozilla" !"mozilla &"
"Gaim" !"gaim &"
"XChat" !"xchat &"
}

menu "PicOps" {
"─绘图─" f.title
"Gimp" !"gimp &"
"GQview" !"gqview &"
}

menu "TextOps" {
"─编辑─" f.title
"Emacs" !"emacs -bg black -fg cyan &"
}

menu "OtherOps" {
"─其他─" f.title
"GV" !"gv &"
}

menu "ZoomOps" {
"─缩放─" f.title
"最大化" f.fullzoom
"向水平方向最大化" f.horizoom
"向垂直方向最大化" f.zoom
"在顶部最大化" f.topzoom
"在底部最大化" f.bottomzoom
"在左边最大化" f.leftzoom
"在右边最大化" f.rightzoom
}
关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有