# # $Id: .vtwmrc,v 1.17 2006/02/14 14:55:51 rader Exp rader $ # ################################################################### # Defines... changequote(,) changecom() # global defines... define(_FOREGROUND_,"gray90") define(_LIGHTGRAY_,"gray85") define(_MEDIUMGRAY_,"gray70") define(_DARKGRAY_,"gray60") define(_BACKGROUND_,"#405060") define(_XTERM_GEOM_,-geom 80x35) # per-host defines... include(/home/rader/.vtwmrc.local) ################################################################### # Variables... NoGrabServer NoDefaults RestartPreviousState ShowIconManager SortIconManager IconifyByUnmapping RightHandSidePulldownMenus OpaqueMove OpaqueResize StayUpMenus RandomPlacement NoRaiseOnMove DecorateTransients FixManagedVirtualGeometries FixTransientVirtualGeometries NotVirtualGeometries PrettyZoom DecorateTransients ButtonColorIsFrame ShallowReliefWindowButton SunkFocusWindowTitle BorderWidth 6 BorderBevelWidth 2 ButtonIndent 0 ButtonBevelWidth 1 DoorBevelWidth 1 FramePadding 0 IconBevelWidth 2 IconManagerBevelWidth 1 InfoBevelWidth 2 MenuBevelWidth 2 MoveDelta 6 TitlePadding 0 TitleBevelWidth 1 VirtualDesktopBevelWidth 1 ClearBevelContrast 40 DarkBevelContrast 40 ifelse(_LAPTOP_,TRUE, VirtualDesktop "4x2-0-0" 16, VirtualDesktop "5x2-0-0" 16 ) PanDistanceX 100 PanDistanceY 100 SnapRealScreen # IconManagerGeometry: top right-hand corner, perfectly # packed under the AppletRegion... # two 80x80 applets wide: (80+12)*2 = 184... 184-12 = 172 # one 80 applets down: 80+12 = 96... 96+12 = 104 # two 64x64 applets wide: (64+12)*2 = 152... 152-12 = 140 # one 80 applet down + 1 down + -4 mystery-fudge: # 80+12 = 96... 96+1 = 97... 97-4 = 93 # one 64 applet down: # 64+12 = 76... 76+12 = 88 # one 64 applet down + 1 down + 15 for xapmload: # 64+12 = 76... 76+12 = 88... 88+16 = 104 # (use xapmload -geom 140x15-1+77) ifelse(_BIG_DISPLAY_,TRUE, IconManagerGeometry "172x10-1+93" ) ifelse(_DESKTOP_,TRUE, IconManagerGeometry "172x10-1+93" ) ifelse(_LAPTOP_,TRUE, IconManagerGeometry "140x10-1+104" ) ################################################################### # Button pixmaps... LeftTitleButton "win95_menu.xpm" = f.menu "arrange_menu" RightTitleButton "win95_vzoom.xpm" = f.zoom RightTitleButton "win95_minimize.xpm" = f.iconify RightTitleButton "win95_zoom.xpm" = f.fullzoom RightTitleButton "win95_close.xpm" = f.delete ################################################################### # 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--*-80-*-*-*-*-*-*" ################################################################### # Cursors... # nice idea, but this # messes up tk/tcl apps... #Cursors { # Frame "fleur" #} ################################################################### # Special windows... NailedDown { "VTWM Icon Manager" "VTWM Desktop" "xapmload" "xclock" "xload" } IconManagerDontShow { "VTWM Desktop" "Buddy List" "cnagios" "Dial" "NSRwatch" "Xreqtoolbox" "tkweather" "xapmload" "xclock" "xload" "xmms" } DontShowInDisplay { "VTWM Desktop" "VTWM Icon Manager" "Buddy List" "cnagios" "Dial" "NSRwatch" "tkweather" "xclock" "xload" "Xreqtoolbox" "xmms" "xapmload" } NoTitle { "VTWM Desktop" "VTWM Icon Manager" "Buddy List" "Cnagios" "Dial" "NSRwatch" "Xreqtoolbox" "cnagios" "Top" "tkweather" "xapmload" "xclock" "xload" "xmms" } Sticky { "VTWM Icon Manager" "VTWM Desktop" "Xreqtoolbox" "xapmload" "tkweather" "xclock" "xload" "xmailbox" } ################################################################### # Colors... Color { BorderColor _MEDIUMGRAY_ BorderTileBackground _DARKGRAY_ BorderTileForeground _DARKGRAY_ DoorBackground _BACKGROUND_ DoorForeground _LIGHTGRAY_ TitleBackground _BACKGROUND_ TitleForeground _LIGHTGRAY_ MenuBackground _BACKGROUND_ MenuForeground _LIGHTGRAY_ MenuTitleBackground _MEDIUMGRAY_ MenuTitleForeground _BACKGROUND_ IconBackground _BACKGROUND_ IconForeground _LIGHTGRAY_ IconBorderColor _LIGHTGRAY_ IconManagerBackground _BACKGROUND_ IconManagerForeground _FOREGROUND_ VirtualForeground "black" VirtualBackground _MEDIUMGRAY_ # whole virtual desktop RealScreenBackground _DARKGRAY_ # current virtual desktop DesktopDisplayBackground _LIGHTGRAY_ # windows within virtual desktop } ################################################################### # Functions and Bindings... Function "move-or-raiselower" { f.move f.deltastop f.raiselower } Function "warpwindow" { f.warpsnug f.warp f.warpsnug } Button1 = : root : f.menu "button1_menu" Button2 = : root : f.menu "button2_menu" Button3 = : root : f.menu "button3_menu" Button1 = : title : f.function "move-or-raiselower" Button2 = : title : f.resize Button3 = : title : f.resize Button1 = : frame : f.resize Button2 = : frame : f.resize Button3 = : frame : f.resize Button1 = : icon : f.function "move-or-raiselower" Button2 = : icon : f.function "move-or-raiselower" Button3 = : icon : f.function "move-or-raiselower" # these override xterm's control + left and center button # menus ("main options" and "vt options")... in a pinch, # you can still get at them with the caps lock on... Button1 = c : window : f.function "move-or-raiselower" Button2 = c : window : f.function "move-or-raiselower" Button1 = c : title : f.function "move-or-raiselower" Button2 = c : title : f.resize Button3 = c : title : f.resize Button1 = : iconmgr : f.iconify Button2 = : iconmgr : f.warp Button3 = : iconmgr : f.warp Button1 = : virtual : f.movescreen Button2 = : virtual : f.movescreen Button3 = : virtual : f.movescreen # "desktop" here really means "windows # in the virtual desktop"... Button1 = : desktop : f.movescreen # move virtual window Button2 = : desktop : f.warp # warp screen to window Button3 = : desktop : f.function "warpwindow" # warp window to screen # control+l to refresh... "l" = c : root | virtual : f.refresh # pan via arrow keys... "Left" = : root | virtual : f.panleft "100" "Right" = : root | virtual : f.panright "100" "Up" = : root | virtual : f.panup "100" "Down" = : root | virtual : f.pandown "100" # pan vi style... "b" = c : root | virtual : f.panleft "100" "f" = c : root | virtual : f.panright "100" "h" = : root | virtual : f.panleft "100" "l" = : root | virtual : f.panright "100" "k" = : root | virtual : f.panup "100" "j" = : root | virtual : f.pandown "100" ################################################################### # Menus... Menu "arrange_menu" { "Move" f.move "Size" f.resize "Minimize" f.iconify "Maximize" f.fullzoom "" f.separator "Close" f.destroy } ################################################################### Menu "button1_menu" { "Shells" f.title "Ginseng" !"xterm _XTERM_GEOM_ -e slogin ginseng &" "Noc" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ noc &" "Login" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ login &" "Localhost" !"xterm _XTERM_GEOM_ -l &" "" f.separator "AFS (anise)" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ anise &" "AFS (rosemary)" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ rosemary &" "AFS (thyme)" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ thyme &" "AFS (garlic)" !"xterm _XTERM_GEOM_ -e slogin garlic &" "DNS (basil)" !"xterm _XTERM_GEOM_ -e slogin basil &" "DNS (oregano)" !"xterm _XTERM_GEOM_ -e slogin oregano &" "ECAD (cleome)" !"xterm _XTERM_GEOM_ -e slogin cleome &" "LPR (lobelia)" !"xterm _XTERM_GEOM_ -e slogin lobelia &" "Mail (hep)" !"xterm _XTERM_GEOM_ -e slogin jasmine &" "NetWorker (cilantro)" !"xterm _XTERM_GEOM_ -e slogin cilantro &" "Tools (ginseng)" !"xterm _XTERM_GEOM_ -e slogin ginseng &" "Web (saffron)" !"xterm _XTERM_GEOM_ -e slogin _XFWD_ saffron &" } ################################################################## Menu "button2_menu" { "Tools" f.title "Acroread" !"/home/rader/bin/my-acroread &" "Cnagios" !"xterm -geom 100x35 +sb -bg black -fg cyan -title Cnagios -e ssh _XFWD_ -t noc cnagios &" "cnagios" !"xterm -geom 95x35 -fn 5x8 +sb -bg black -fg cyan -title cnagios -e ssh _XFWD_ -t noc cnagios &" ifelse(_BIG_DISPLAY_,TRUE, "Exmh" !"_SSH_GINSENG_ exmh -geom 725x1100+1+1 &", "Exmh" !"_SSH_GINSENG_ exmh -geom 725x985+1+1 &" ) "Gaim" !" gaim &" ifelse(_BIG_DISPLAY_,TRUE, "NetWorker" !"ssh -X -f cilantro /bin/networker -geom 800x1100 -s NetWorker &", "NetWorker" !"ssh -X -f cilantro /bin/networker -geom 725x985 -s NetWorker &" ) "NSRwatch" !"xterm -fn 5x8 -geom 95x35 +sb -bg black -fg cyan -title NSRwatch -e ssh -t cilantro nsrwatch &" "Mozilla" !"mozilla &" "MSExcel" !"/opt/cxoffice/bin/excel &" "MSPowerPoint" !"/opt/cxoffice/bin/powerpnt &" "MSWord" !"/opt/cxoffice/bin/winword &" "TKweather" !"_SSH_GINSENG_ /usr/local/bin/tkweather &" "TKpsafe" !"_SSH_GINSENG_ /usr/local/etc/tkpsafe &" "Top" !"xterm -fn 5x8 -geom 95x35 +sb -bg black -fg cyan -title Top -e top &" ifelse(_BIG_DISPLAY_,TRUE, "Xclock" !"xclock -update 1 -geometry 80x80 &", "Xclock" !"xclock -update 1 -geometry 64x64 &" ) "Xfig" !"_SSH_GINSENG_ xfig -cbg gray90 -cfg black &" ifelse(_BIG_DISPLAY_,TRUE, "Xload" !"xload -nolabel -geom 80x80 &", "Xload" !"xload -nolabel -geom 64x64 &" ) "Xmag" !"xmag &" ifelse(_LAPTOP_,TRUE, "Xine" !"xine &" ) "Xmms" !"xmms &" "Xrgrep" !"_SSH_GINSENG_ /usr/local/req/bin/xrgrep &" "Xreq" !"_SSH_GINSENG_ /usr/local/req/bin/xreq &" } ################################################################## Menu "button3_menu" { "System" f.title "Xlock" !"xlock -mode hyper 2> /dev/null &" "Dismiss" f.destroy "Identify" f.identify "Move" f.move "Resize" f.resize "" f.separator ifelse(_LAPTOP_,TRUE, "Dial up" !"xterm -geom 67x3+0-0 +sb -title Dial -e /usr/local/bin/dial up &" "Dial down" !"xterm -geom 67x3+0-0 +sb -title Dial -e /usr/local/bin/dial down &" "" f.separator "Suspend" !"/usr/bin/apm --suspend &" "Boot Windows" !"sudo /usr/local/bin/boot-dos" "Shutdown" !"chvt 1; sudo shutdown -h now &" "" f.separator ) "" f.separator "Refresh..." f.menu "refresh" "" f.separator "Logout" f.quit } #---------------------------------------- Menu "refresh" { "Solid Background" !"xsetroot -solid 'gray30' &" "Wallpaper" !"xvnext -rmode 1 -quit /home/rader/wallpaper &" "Edit Wallpaper" !"xv -8 -dir /home/rader/wallpaper `cat /home/rader/.xvnext` &" "Remove Wallpaper" !"rm -f `cat /home/rader/.xvnext` &" "Display" f.refresh "XResources" !"xrdb -merge /home/rader/.Xdefaults" "Vtwm" f.restart } ################################################################## # AppletRegion... # Automagically tile (neatly place) the following applets # right-to-left in a row along the upper-right corner... # they must have a *total* height < 92... with no titlebar # and a 6 pixel border, that means they can be 80 high (or # smaller)... the region is in-set one pixel because, e.g. # IconManagerGeometry "140x96-0+110" # puts the icon manager at -1+111 and I like to have the # IconManagerGeometry line up perfectly under the applets... # # dnl define(_APPLET_SIZE_,76) # dnl define(_APPLET_GEOM_,"800x76-1+1") AppletRegion _APPLET_GEOM_ North East _APPLET_SIZE_ _APPLET_SIZE_ { "xclock" "xload" }