~/.vtwmrc

From Earlham CS Department
Jump to navigation Jump to search
  1. -Appearance Settings
  2. -Borders
  3. -Fonts
  4. -Color Scheme
  5. - Lists
  6. - Functions and Bindings
  7. -Functions
  8. -Title Buttons
  9. -Click Bindings
  10. -Key Bindings
  11. - Menus Settings
  12. WHAT YOU WANT TO DO WHERE TO FIND IT
  13. ------------------- ----------------
  14. Changing VTWM's Color Scheme Lists (under color)
  15. Changing VTWM's Vitual Desktop Variables
  16. Editing menu commands Menus
  17. For the most part you won't want to mess with the Functions and Bindings
  18. section since that's where you bind mouse clicks to menus, etc.,
  19. but if you want to, start by reading some of these addition resources.
  20. ADDITIONAL RESOURCES
  21. --------------------
  22. You can find all the info you need on all the commands you
  23. might find in here by either looking at the man page for vtwm
  24. or you can get the same thing in HTML format by going to:
  25. http://www.vtwm.org/vtwm-manpage.html
  26. Additionally if you want to take a look at the Pedagogical Tools Group's
  27. VTWM tutorial can find it here:
  28. http://www.cs.earlham.edu/~pedagogical/tutorials/vtwm_emacs/
  29. APPLYING YOUR CHANGES
  30. ---------------------
  31. When you want to check out how the changes you've made affect vtwm
  32. all you need to do is hit 'restart vtwm' from the main menu.
  33. Don't worry about losing any files you may have open, everything will
  34. be just as you left it when you hit 'restart vtwm'
  35. CHANGING YOUR DESKTOP BACKGROUND AND STARTUP PROGRAMS
  36. -----------------------------------------------------
  37. Your background image (or lack thereof) and all your startup programs
  38. (like little shell and big shell) are all locating in a separate file
  39. called .xsession that's in your home directory right next to this file.
  40. This file is the script that gets run whenever you select Xsession from
  41. the session manager when you log in. The command you're looking for if
  42. you want to change your background is:
  43. ecsetbg {Picture Name}.jpeg
  44. you can run this from the command line to get a preview of what it will
  45. look like.
  46. RESTORING VTWM SETTINGS
  47. -----------------------
  48. Don't worry too much about really messing this file up, since you can
  49. obtain a fresh copy of it from: /usr/local/acl/etc/skel/.vtwmrc
  50. Just copy that file into your home directory to restore the defaults




  1. Variables


      1. Initialization Settings###

NoGrabServer RestartPreviousState NoDefaults

      1. 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

      1. Icon Manager Settings###

IconManagerGeometry "-0+20" ShowIconManager SortIconManager IconifyByUnmapping

      1. 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

  1. AutoPan 100 #Uncomment for mouse panning, number is the percent of screen width to pan.
      1. 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-*-*-*-*-*-*"

  1. EDITING YOUR COLOR SCHEME
  2. -------------------------
  3. Basicly all you've got to note here is that colors
  4. denoted in #xxxxxx format (as opposed to something like gray60)
  5. really are just the RGB values of the color, like so: "#RRGGBB"
  6. 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" }

  1. 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" }


  1. Functions and Bindings
      1. 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 }

      1. Title Buttons###

RightTitleButton ":xpm:dot" = f.iconify RightTitleButton ":xpm:resize" = f.resize LeftTitleButton ":xlogo" = f.menu "arrange"

      1. 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

      1. 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"

  1. 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 &"
  1. "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

  1. "Auto Pan" f.autopan
  2. "New Door" f.newdoor
  3. "Snap Screen" f.snaprealscreen
       "Print Control"         f.exec "lprngtool &"
  1. "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

  1. "Left Title" f.squeezeleft
  2. "Center Title" f.squeezecenter
  3. "Right Title" f.squeezeright
  4. "" f.separator

"Identify Window" f.identify "" f.separator "Close Window" f.delete "Kill Window" f.destroy }