CTWM Config Permalink

Linux, X Added less than a year ago

I have been using CTWM as my window manager on my Debian VM for a while now, here is the config (.ctwmrc) file. Put it in your home directory and adjust your .xinitrc accordingly.

The setup I have uses 4 workspaces, you can't drag windows off the screen and it has a simple menu mainly for launching xterms in nice places. It is setup for the resolution 1280x800 (my macbook.)

NoGrabServer
NoTitleHighlight
NoIconManagers
DontMoveOff
RestartPreviousState
DecorateTransients
TitleButtonBorderWidth 1
NoHighlight
BorderWidth 2
TitleFont       "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
ResizeFont      "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
MenuFont        "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
IconFont        "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
IconManagerFont "-*-helvetica-medium-r-*-*-11-*-*-*-*-*-*-*"
ShowWorkSpaceManager
WorkSpaceManagerGeometry "360x18+458+780" 4
WMgrButtonShadowDepth 0
WMgrHorizButtonIndent 0
WMgrVertButtonIndent 0
BorderWidth 1 
NoTitle { "WorkSpaceManager" "xterm" }

WorkSpaces
{
    ""   {"#5de100" "white" "black" "black" "black"}
    ""   {"#1f1ab2" "white" "black" "black" "black"}
    ""   {"#ffc200" "white" "black" "black" "black"}
    ""   {"#e7003e" "white" "black" "black" "black"}
}


Color
{
    BorderColor         "#ffc201"
    DefaultBackground   "black"
    DefaultForeground   "black"
    TitleBackground     "#ffc201"
    TitleForeground     "white"
    MenuBackground      "black"
    MenuForeground      "#ffc201"
    MenuTitleBackground "#ffc201"
    MenuTitleForeground "black"
    IconBackground      "black"
    IconForeground      "#ffc201"
    IconBorderColor     "black"
}

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 }

Button1 = : root : f.menu "defops"
Button2 = : root : f.delete
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

menu "quit" {
    "Quit X?"   f.title
    "quit"    f.quit 
}

menu "defops"
{
"YourHost"     f.title
"(L) xterm"   f.exec "exec xterm -ls -fg gray -bg black -sl 500 +sb -geometry '104x57+0+18' &"
"(R) xterm"   f.exec "exec xterm -ls -fg gray -bg black -sl 500 +sb -geometry '104x57+648+18' &"
"(Big) xterm" f.exec "exec xterm -ls -fg gray -bg black -sl 500 +sb -geometry '212x57+0+18' &"
"gvim"        f.exec "exec gvim &"
#"conky"      f.exec "exec conky &"
"vm tools"    f.exec "exec vmware-toolbox &"
#"iceape"     f.exec "exec iceape &"
#"firefox"    f.exec "exec firefox &"
"kill"        f.destroy
"restart"     f.restart
"quit"        f.menu "quit"
}

Colophon

Django Python 960.gs Git Vim NetBSD Nginx

The Author

The author is a software engineer living in Australia. He sux at guitar, loves camping, doesn't like cake, does like coffee and is a lazy home brewer.

Meta

Help
Latest entries

*BSD Agile Apache Apple Athletics Beer Best-Practice Censorship Comedy Cool Crosswords Deployment Django English Exim Firefox Git Hardcore Health Interface irssi Javascript Jira Languages Linux Makefile Markdown Mathematics Mobile Broadband MySQL NetBSD nginx Nokia OSX Perl Photo Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Testing ThisBlog Vim VMWare (Fusion) VPN WDTEM X Yum zsh

Recent Entries

Perldoc Output
Yum
Possum
Git's Index
Jira Project Keys
The Coffee Shop
Git GUI
It is more important...
Questioning Unix (and Other) File Times
The Frog King Photo
Rain Cloud Photo
rsync
Timezone
utf8 in your Perl
Theatre Ceiling Photo
Some problems are so complex...
Colours in your PAGER
zsh vared
zsh magic-equals and double-star
Funny Tweets

Links

ChoppingBoard, Project365, RageQuit

♥ Actors/Artists/Characters