~/.vtwmrc
- -Appearance Settings
- -Borders
- -Fonts
- -Color Scheme
- - Lists
- - Functions and Bindings
- -Functions
- -Title Buttons
- -Click Bindings
- -Key Bindings
- - Menus Settings
- WHAT YOU WANT TO DO WHERE TO FIND IT
- ------------------- ----------------
- Changing VTWM's Color Scheme Lists (under color)
- Changing VTWM's Vitual Desktop Variables
- Editing menu commands Menus
- For the most part you won't want to mess with the Functions and Bindings
- section since that's where you bind mouse clicks to menus, etc.,
- but if you want to, start by reading some of these addition resources.
- ADDITIONAL RESOURCES
- --------------------
- You can find all the info you need on all the commands you
- might find in here by either looking at the man page for vtwm
- or you can get the same thing in HTML format by going to:
- http://www.vtwm.org/vtwm-manpage.html
- Additionally if you want to take a look at the Pedagogical Tools Group's
- VTWM tutorial can find it here:
- http://www.cs.earlham.edu/~pedagogical/tutorials/vtwm_emacs/
- APPLYING YOUR CHANGES
- ---------------------
- When you want to check out how the changes you've made affect vtwm
- all you need to do is hit 'restart vtwm' from the main menu.
- Don't worry about losing any files you may have open, everything will
- be just as you left it when you hit 'restart vtwm'
- CHANGING YOUR DESKTOP BACKGROUND AND STARTUP PROGRAMS
- -----------------------------------------------------
- Your background image (or lack thereof) and all your startup programs
- (like little shell and big shell) are all locating in a separate file
- called .xsession that's in your home directory right next to this file.
- This file is the script that gets run whenever you select Xsession from
- the session manager when you log in. The command you're looking for if
- you want to change your background is:
- ecsetbg {Picture Name}.jpeg
- you can run this from the command line to get a preview of what it will
- look like.
- RESTORING VTWM SETTINGS
- -----------------------
- Don't worry too much about really messing this file up, since you can
- obtain a fresh copy of it from: /usr/local/acl/etc/skel/.vtwmrc
- Just copy that file into your home directory to restore the defaults
- Variables
- Initialization Settings###
NoGrabServer RestartPreviousState NoDefaults
- Functionality Settings###
NaturalAutoPanBehavior # Commenting this out will give you smoother panning NotVirtualGeometries FixManagedVirtualGeometries FixTransientVirtualGeometries NailedAbove WarpVisible WindowRing #StrictIconManager #Uncomment this so only iconified windows will appear in your Icon Manager
- Icon Manager Settings###
IconManagerGeometry "-0+20" ShowIconManager SortIconManager IconifyByUnmapping
- Virtual Desktop Settings###
VirtualDesktop "2x2-0-0" 17 #Size of the Virtual Desktop PanDistanceX 100 #Size of steps you auto pan PanDistanceY 100 #Size of steps you auto pan PanResistance 250
- AutoPan 100 #Uncomment for mouse panning, number is the percent of screen width to pan.
- Appearance Settings###
ButtonColorIsFrame ShallowReliefWindowButton SqueezeTitle RightHandSidePulldownMenus
###Borders### BorderWidth 3 BorderBevelWidth 1 ButtonBevelWidth 0 DoorBevelWidth 1 IconBevelWidth 2 IconManagerBevelWidth 1 InfoBevelWidth 2 MenuBevelWidth 2 TitleBevelWidth 1 VirtualDesktopBevelWidth 0
ClearBevelContrast 40 DarkBevelContrast 40
###Fonts### TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuTitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" DoorFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" InfoFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" VirtualDesktopFont "-adobe-helvetica-medium-r-normal--*-75-*-*-*-*-*-*"
- EDITING YOUR COLOR SCHEME
- -------------------------
- Basicly all you've got to note here is that colors
- denoted in #xxxxxx format (as opposed to something like gray60)
- really are just the RGB values of the color, like so: "#RRGGBB"
- so #FF0000 is pure red, #00FF00 is pure green, and #0000FF is pure blue
Color { DefaultBackground "black" DefaultForeground "white" BorderColor "grey60" BorderTileBackground "grey60" BorderTileForeground "white" DoorBackground "grey60" DoorForeground "white" TitleBackground "#113366" TitleForeground "white" MenuBackground "#555566" MenuForeground "white" MenuTitleBackground "#113366" MenuTitleForeground "white" IconBackground "grey60" IconForeground "white" IconBorderColor "grey60" IconManagerBackground "#002244" IconManagerForeground "white" VirtualBackground "#113366" VirtualForeground "white" DesktopDisplayBackground "grey60" DesktopDisplayForeground "white" }
Monochrome #Only used if you're using a monitor without color { DefaultBackground "gray50" DefaultForeground "gray95" BorderColor "grey60" BorderTileBackground "gray55" BorderTileForeground "gray55" DoorBackground "gray50" DoorForeground "gray95" TitleBackground "gray50" TitleForeground "gray95" MenuBackground "gray50" MenuForeground "gray95" MenuTitleBackground "gray60" MenuTitleForeground "gray50" IconBackground "gray50" IconForeground "gray95" IconBorderColor "gray95" IconManagerBackground "gray50" IconManagerForeground "gray95" VirtualBackground "gray50" VirtualForeground "black" DesktopDisplayBackground "grey55" DesktopDisplayForeground "grey95" }
- Lists
AutoRaise #This causes these windows to always be on top of other windows { "VTWM *" "xclock" "xload" }
NailedDown #These windows will stay on you screen as you move around { "VTWM *" "xclock" "xload" }
NoTitle #These window will not have a title { "VTWM *" "xclock" "xload" }
DontShowInDisplay #These won't appear in your Virtual Desktop { "VTWM *" "xclock" "xload" }
IconManagerDontShow #These won't appear in your Icon Manager { "VTWM *" "xclock" "xload" }
- Functions and Bindings
- Funtions###
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 } Function "up-and-warp" { f.upiconmgr f.warp } Function "down-and-warp" { f.downiconmgr f.warp }
- Title Buttons###
RightTitleButton ":xpm:dot" = f.iconify RightTitleButton ":xpm:resize" = f.resize LeftTitleButton ":xlogo" = f.menu "arrange"
- Click Bindings###
Button1 = : root : f.menu "main" Button1 = shift : root : f.version Button2 = : root : f.menu "arrange" Button3 = : root : f.menu "TwmWindows"
Button1 = : title : f.function "move-or-raise" Button2 = : title : f.move Button3 = : title : f.lower
Button1 = : frame : f.resize Button2 = : frame : f.function "move-or-raise" Button3 = : frame : f.iconify
Button1 = : door : f.enterdoor Button2 = : door : f.namedoor Button3 = : door : f.deletedoor
Button1 = : icon : f.function "move-or-iconify" Button3 = : icon : f.menu "arrange"
Button1 = : iconmgr : f.iconify Button3 = : iconmgr : f.warp
Button1 = : virtual | desktop : f.movescreen
- Key Bindings###
#Uncomment the following to be able to use Alt-Tab window switching: #"Tab" = m : all : f.warpring "next" #"Tab" = s | m : all : f.warpring "prev"
- Menus
menu "main" { " Menu " f.title "Editor (emacs)" f.exec "emacs &" "New Shell (xterm)" f.exec "xterm &" "WWW (firefox)" f.exec "firefox http://www.cs.earlham.edu &" "Man Browser (tkman)" f.exec "tkman &" "Document Viewer (evince)" f.exec "evince &" "" f.separator "Applications" f.menu "apps" "Preferences" f.menu "prefs" "Hosts" f.menu "hosts" "Print Control (lprng tool)" f.exec "lprngtool &" "" f.separator "Sceensaver" f.exec "xscreensaver-command -activate" "Lock screen" f.exec "xscreensaver-command -lock" "" f.separator
"Restart vtwm" f.restart "" f.separator "Exit" f.quit }
menu "prefs" {
" Preferences " f.title "Edit .xsession" f.exec "emacs .xsession &" "Customize vtwm" f.exec "emacs .vtwmrc &" "vtwm tutorial" f.exec "firefox http://www.vtwm.org/vtwm-manpage.html &" "Screensaver" f.exec "xscreensaver-demo &"
- "New Wallpaper" f.exec "fbsetbg -r .background"
"" f.separator
}
menu "apps" {
" Applications " f.title "Debugger (gdb)" f.exec "xterm -n gdb -title Gdb -sb -sf -e gdb &" "Image Editor (gimp)" f.exec "gimp &" "Editor (VIM)" f.exec "xterm vim&" "Network Analyzer (Wireshark)" f.exec "wireshark &" "" f.separator "Alternate Apps" f.menu "AltApps" "" f.separator "IRC chat (xchat)" f.exec "xchat &" "Calculator" f.exec "xcalc &" "Xfig" f.exec "xfig &" "" f.separator "Analog clock" f.exec "xclock -analog &" "Load monitor" f.exec "xload &"
}
menu "AltApps" {
" Alternate Apps " f.title "WWW (mozilla)" f.exec "mozilla http://www.cs.earlham.edu &" "Shell (gnome)" f.exec "gnome-terminal &" "Old Man Browser" f.exec "xman &" "" f.separator "PDF Imager (xpdf)" f.exec "xpdf &" "RPN Calculator" f.exec "xcalc -rpn&" "" f.separator "Digital clock" f.exec "xclock -digital &" "Fancy clock" f.exec "xdaliclock &"
} menu "hosts" {
" Hosts " f.title "ACL 4" f.exec "xterm -e ssh -Y acl4.cs.earlham.edu & " "ACL 3" f.exec "xterm -e ssh -Y acl3.cs.earlham.edu & " "ACL 2" f.exec "xterm -e ssh -Y acl2.cs.earlham.edu & " "ACL 1" f.exec "xterm -e ssh -Y acl1.cs.earlham.edu & " "ACL 0" f.exec "xterm -e ssh -Y acl0.cs.earlham.edu & " "Quark" f.exec "xterm -e ssh -Y quark.cs.earlham.edu & "
}
menu "ops" { " Operations " f.title
- "Auto Pan" f.autopan
- "New Door" f.newdoor
- "Snap Screen" f.snaprealscreen
"Print Control" f.exec "lprngtool &"
- "Static Icons" f.staticiconpositions
"Warp Snug" f.warpsnug "Warp Visible" f.warpvisible "" f.separator "Show Icon Mgr" f.showiconmgr "Hide Icon Mgr" f.hideiconmgr "Show Desktop" f.showdesktopdisplay "Hide Desktop" f.hidedesktopdisplay "" f.separator "Refresh" f.refresh "" f.separator
"Edit .vtwmrc" f.exec "emacs .vtwmrc &" "Restart .vtwmrc" f.restart
}
menu "arrange" { " Arrange " f.title "Iconify" f.iconify "" f.separator "Autoraise" f.autoraise "Raise" f.raise "Lower" f.lower "Nail" f.nail "" f.separator "Move" f.move "Size" f.resize "" f.separator "Full Zoom" f.fullzoom "Horiz Zoom" f.horizoom "Vert Zoom" f.zoom "" f.separator
- "Left Title" f.squeezeleft
- "Center Title" f.squeezecenter
- "Right Title" f.squeezeright
- "" f.separator
"Identify Window" f.identify "" f.separator "Close Window" f.delete "Kill Window" f.destroy }