#********************************************************************** # # .twmrc # #********************************************************************** # For 5.4.7 $Id:$ # Fonts IconFont "-adobe-times-bold-r-normal--10-100-75-75-p-57-iso8859-1" IconManagerFont "-adobe-times-bold-r-normal--10-100-75-75-p-57-iso8859-1" MenuFont "-adobe-times-bold-r-normal--12-120-75-75-p-67-iso8859-1" ResizeFont "-adobe-courier-bold-r-normal--12-120-75-75-m-70-iso8859-1" TitleFont "-adobe-new century schoolbook-bold-r-normal--12-120-75-75-p-77-iso8859-1" MenuTitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" ############################################################ VirtualDesktop "192x150-1+1" 35 #AutoPan 5 PanDistanceX 100 PanDistanceY 100 NailedDown { "Virtual Desktop" "VTWM Desktop" "Twm Door" "VTWM Door" "VTWM Icon Manager" "xclock" "timex" } SnapRealScreen # Only move in increments of Pan[XY] DontShowInDisplay { "Virtual Desktop" "Twm Door" "VTWM Desktop" "VTWM Door" "PostItNote" "xlbiff" "xclock" } DoorFont "-*-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*" #VirtualDesktopFont "-*-helvetica-bold-r-*-*-8-*-*-*-*-*-*-*" Doors { "Con" "46x16-146+155" "+0+0" "Xvtdl" "46x16-98+155" "+2560+0" "Browser" "46x16-50+155" "+3840+0" "Calendar" "46x16-2+155" "+5120+0" "Prog" "46x16-146+173" "+0+2048" "Maker" "46x16-98+173" "+2560+2048" "H-room" "46x16-50+173" "+3840+2048" "Rolo" "46x16-2+173" "+5120+2048" "B1" "46x16-146+191" "+0+4096" "B2" "46x16-98+191" "+2560+4096" "B3" "46x16-50+191" "+3840+4096" "B4" "46x16-2+191" "+5120+4096" } #notvirtualgeometries ###################################################################### # Simple settings AutoRelativeResize # Don't need to cross window edge BorderWidth 2 # Num. of pixels in window border #ButtonIndent # ??? #ClientBorderWidth # Override BorderWidth ConstrainedMoveTime 0 # No constrained move (hz or vr onlt) DecorateTransients # Give transient windows titlebars DefaultFunction f.beep # What to do on unbound actions DeiconifyToScreen # Icons stay on screen DontSqueezeTitle # Make titlebars full size FixManagedVirtualGeometries # Fix managed transient windows FixTransientVirtualGeometries # Fix transient windows FramePadding 2 # distance between titlebar and window IconBorderWidth 2 # pixels in icon border IconifyByUnmapping # Use Icon Manager IconManagerGeometry "450x5-197+1" 3 # Location of Icon Manager MoveDelta 0 # pixels point must move before f.move NoBackingStore # repaint might be faster ??? NoCaseSensitive # Do not be case sensitive during sort #NoDefaultMouseOrKeyboardBindings #NoDefaults # turn off iconify and resize buttons #NoHighlight # do not highlight the window the cursor is in NoIconManagerFocus # Do not have icon manager keys go to app NoGrabServer # don't grab server during move, etc NoRaiseOnMove # don't raise window during move NoRaiseOnResize # don't raise windows during resize #NoRaiseOnWarp # don't raise windows during warp NoSaveUnders # repaint might be faster ??? #NoTitleFocus # prevent keystrokes in wrong window from lag #OpaqueMove # move window instead of outline RaiseDelay 400 # Amount of time needed to auto-raise window RandomPlacement # windows without geometry are placed randomly RestartPreviousState # Try to restart defaults from last x session ShowIconManager # Use Icon Manager instead of Icons SortIconManager # Keep Icon Manager in alpha order #StayUpOptionalMenus # Allow sticky menus TitleButtonBorderWidth 0 # Num of pixels around title buttons TitlePadding 8 # Num of pixels between things in titlebar UsePPosition "on" # Honor placement #UsePPosition "non-zero" # Do not honor placement #UsePPosition "on-screen" # Do not honor placement (always on screen) WarpUnmapped # deiconify windows in warped to VirtualSendsMotionEvents #Zoom 8 # when (de)iconify, do pseudo-movement # Complex setting # AppletRegion geomstr vgrav hgrav hgrid vgrid {} AutoRaiseDelay 400 AutoRaise # Raise when cursor in window { "VTWM Icon Manager" "Virtual Desktop" "VTWM Desktop" "Twm Door" "VTWM Door" } #Cursors {} DontIconifyByUnmapping { "VTWM Icon Manager" "Virtual Desktop" } IconManagerDontShow { "VTWM Icon Manager" "Virtual Desktop" "VTWM Desktop" "xload" "xbiff" "Twm Door" "VTWM Door" "PostItNote" "xlbiff" "xclock" } #IconManagers {} #IconManagerShow {} #IconRegion "+1-1" "North" "East" 100 100 # BS Numbers #Icons {} #MakeTitle {} #MaxWindowSize "30000x30000" NoTitle { "VTWM Icon Manager" "Virtual Desktop" "VTWM Desktop" "xload" "Twm Door" "VTWM Door" "PostItNote" "xlbiff" "xclock" "Xnest" } #NoTitleHighlight #Pixmaps {} #SqueezeTitle {} #WindowRing {} ############################################################ Function "VTWM Profile" { !"nexpm -vtwm -solid '#00d000'" } Function "deic-n-zoom" { f.deiconify f.zoom } Function "deic-n-fullzoom" { f.deiconify f.fullzoom } Function "warpwindow" { f.warpsnug f.warp f.warpsnug } ############################################################ #Button = KEYS : CONTEXT : FUNCTION #---------------------------------- Button1 = : r : f.menu "Freq Host List" Button1 = s : r : f.menu "Startup" #Button1 = c : r : f.menu "CTR Hosts" Button2 = : r : f.menu "Programs1" Button2 = s : r : f.menu "Programs2" Button2 = c : r : f.menu "Games-Demos" Button3 = : r : f.menu "Adminmenu" #Button3 = s : r : f.menu "Window Things" #Button3 = c : r : f.menu "All Things" Button1 = m : w : f.raiselower Button2 = m : w : f.move Button2 = s : w : f.move Button3 = m : w : f.resize Button1 = m : t : f.raiselower Button2 = m : t : f.move Button3 = m : t : f.resize Button1 = : t : f.raise Button1 = c : t : f.delete Button2 = : t : f.move Button3 = : t : f.menu "frame" Button1 = : door : f.enterdoor Button2 = : door : f.enterdoor Button3 = : door : f.enterdoor Button1 = : desktop : f.movescreen # move virtual window Button2 = : desktop : f.function "warpwindow" # warp window to screen Button3 = : desktop : f.warp # warp screen to window "F1" = c : w|t : f.iconify "F2" = c : w|t : f.deiconify "F3" = c : w|t : f.raiselower "F4" = c : r : f.showiconmgr "F4" = c|s : r : f.hideiconmgr "F5" = c : r : f.showdesktopdisplay "F5" = c|s : r : f.hidedesktopdisplay #"F6" = c : w|t : f.refocus "F6" = c : all : f.warpto "VTWM Icon Manager" "F7" = c : all : f.identify "F7" = c|s : all : f.unfocus "F8" = c : w|t : f.zoom "F9" = c : w|t : f.fullzoom "Left" = m : w|t : f.horizoom "Right" = m : w|t : f.horizoom "Up" = m : w|t : f.zoom "Down" = m : w|t : f.zoom "Left" = s : w|t : f.leftzoom "Right" = s : w|t : f.rightzoom "Up" = s : w|t : f.topzoom "Down" = s : w|t : f.bottomzoom "Left" = c|m : w|t : f.fullzoom "Right" = c|m : w|t : f.fullzoom "Up" = c|m : w|t : f.fullzoom "Down" = c|m : w|t : f.fullzoom "Left" = c : all : f.panleft "100" "Right" = c : all : f.panright "100" "Up" = c : all : f.panup "100" "Down" = c : all : f.pandown "100" "Up" = : iconmgr : f.upiconmgr "Down" = : iconmgr : f.downiconmgr "Left" = : iconmgr : f.backiconmgr "Right" = : iconmgr : f.forwiconmgr "F6" = : iconmgr : f.warp Button2 = : iconmgr : f.function "warpwindow" Button3 = : iconmgr : f.warp menu "External Telnet" { "External Telnet" f.title "example" !"xtelnet -F -8x -D EXAMPLE daffy.example.com &" } menu "Columbia Telnet" { "Columbia Telnet" f.title "CC" !"xtelnet -F -8x -D CC news.cc.columbia.edu &" "CC-news" !"xtelnet -F -8x -D CC cunix.cc.columbia.edu &" "CS" !"xtelnet -F -8x -D CS cs.columbia.edu &" "CS-news" !"xtelnet -F -8x -D CS news.cs.columbia.edu &" "Ciscos" f.title "ctrgw" !"xtelnet -D CTR ctr-gw.ctr.columbia.edu &" "eliot" !"xtelnet -D CTR eliot.ctr.columbia.edu &" } menu "EXMPL xterm" { "EXMPL SSH" f.title "winwood" !"rxterm -D EXMPL winwood.example.com &" "startide" !"rxterm -D EXMPL startide.example.com &" "biko" !"rxterm -D EXMPL biko.example.com &" "localhost" !"rxterm -D EXMPL localhost &" "Firewalls" f.title "martin" !"rxterm -D EXMPL martin.example.com &" } menu "EXMPL Telnet" { "EXMPL SSH" f.title "winwood" !"xtelnet -D EXMPL winwood.example.com &" "startide" !"xtelnet -D EXMPL startide.example.com &" "biko" !"xtelnet -D EXMPL biko.example.com &" "Firewalls" f.title "martin" !"xtelnet -D EXMPL martin.example.com &" } menu "EXMPL SSH" { "EXMPL SSH" f.title "winwood" !"xssh -D EXMPL winwood.example.com &" "startide" !"xssh -D EXMPL startide.example.com &" "biko" !"xssh -D EXMPL biko.example.com &" "Firewalls" f.title "martin" !"xssh -D EXMPL -F '-l root' martin.example.com &" } menu "BAKA Telnet" { "BAKA Telnet" f.title "no" !"xtelnet -D BAKA no.baka.org supdup &" "yeah" !"xtelnet -D BAKA yeah.baka.org &" "maybe" !"xtelnet -D BAKA maybe.baka.org &" "Firewalls" f.title "hi" !"xtelnet -D BAKA hi.baka.org supdup &" "ohayo" !"xtelnet -D BAKA ohayo.baka.org supdup &" } menu "BAKA SSH" { "BAKA SSH" f.title "no" !"xssh -D BAKA ohayo.baka.org &" "yeah" !"xssh -D BAKA yeah.baka.org &" } menu "BAKA xterm" { "BAKA xterm" f.title "localhost" !"rxterm -D BAKA localhost &" "no" !"rxterm -D BAKA no.baka.org &" "no-rmnt" !"rxterm -p 95 -D BAKA no.baka.org &" "yeah" !"rxterm -D BAKA yeah.baka.org &" "maybe" !"rxterm -D BAKA maybe.baka.org &" "hi" !"rxterm -u rsos -p 95 -D BAKA no.baka.org &" } menu "Freq Host List" { "Freq Host List" f.title "Xterm" f.title "Local xterms" f.menu "BAKA xterm" "Local all" !"for f in localhost localhost; do rxterm -D BAKA $f & done" "EXMPL xterms" f.menu "EXMPL xterm" "BAKA xterms" f.menu "BAKA xterm" "SSH" f.title "EXMPL SSH" f.menu "EXMPL SSH" "BAKA SSH" f.menu "BAKA SSH" "Telnet" f.title "EXMPL Telnet" f.menu "EXMPL Telnet" "BAKA Telnet" f.menu "BAKA Telnet" "Columbia Telnet" f.menu "Columbia Telnet" "External Telnet" f.menu "External Telnet" } menu "Startup" { "START-UP" f.title "Main" !"for h in localhost localhost; do rxterm $h; done & emacs -geometry 100x49-0+2382 & xterm -geometry +0+2048 & xterm -geometry +0+2731 & xrsh -- not.baka.org xterm -n \\'BAKA - xterm - not.baka.org\\' -geometry +0-1 & xrsh -- not.baka.org s emacs -geometry 80x26+17-1 &" "Additional" !"pland >/dev/null 2>&1 & plan -geometry +5120+0 & firefox -geometry 1274x999+3840+0 & xvtdl -geometry +2560+0 & xrolodex -geometry 600x550+5120+2048 $HOME/.xrolo &" } menu "Locks" { "XLocks" f.title "xlock hop" !"xlock -mode hop -remote -nice 19 &" "xlock qix" !"xlock -mode qix -remote -nice 19 &" "xlock image" !"xlock -mode image -remote -nice 19 &" "xlock life" !"xlock -mode life -remote -nice 19 &" "xlock swarm" !"xlock -mode swarm -remote -nice 19 &" "xlock rotor" !"xlock -mode rotor -remote -nice 19 &" "xlock pyro" !"xlock -mode pyro -remote -nice 19 &" "xlock flame" !"xlock -mode flame -remote -nice 19 &" "xlock blank" !"xlock -mode blank -remote -nice 19 &" } menu "Programs1" { "Programs1" f.title "Main" !"xterm -geometry 80x24+0+0 -T ' Main ' &" "xterm-24" !"rxterm localhost &" "xlock blank" !"xlock -mode blank -remote -nice 19 -delay 5000000 &" "Emacs" !"emacs -geometry 100x49-0-0 &" "emacs" !"emacs &" "xsave blank" !"xlock -mode blank -nolock -remote -nice 19 -delay 5000000 &" } menu "Programs2" { "Programs2" f.title "Console" !"xterm -C -geometry 80x24+0+0 -n ' Console ' &" "Emacs" !"emacs -geometry 100x49-0+2382 &" "Maker" !"maker -geometry +3511+2262 > .fm_log 2>&1 &" "not emacs" !"xrsh -- not.baka.org s emacs -geometry 80x26+17-1 &" "not" !"xrsh -- not.baka.org xterm -n \\'BAKA - xterm - not.baka.org\\' -geometry +0-1 &" "CD player" !"xmessage -buttons ACK 'Unknown CD player >/dev/null 2>&1 & " "Mixer" !"alsamixergui >/dev/null 2>&1 & " "Plan" !"pland >/dev/null 2>&1 & plan &" "Browser" !"firefox -geometry 1274x999+3840+0 &" "xvtdl" !"xvtdl -geometry +2560+0 &" "Rolo" !"xrolodex -geometry 600x550+5120+2048 $HOME/.xrolo &" "timex" !"timex -geometry 290x182-188+1 -sp &" "xlock" f.menu "Locks" "lxnest" !"startxnest .xinitnestrc &" "lxnest (FS)" !"FULLSCRXNEST=true startxnest .xinitnestrc &" "lxnest (1024)" !"SCR1024XNEST=true startxnest .xinitnestrc &" } menu "Games-Demos" { "Games-Demos" f.title "xtank" !"xterm -geometry 40x2 -T 'Remote xtank' -e XOtherXtank &" "xsnow" !"daemon -- xsnow -nosanta >/dev/null 2>&1 " "kbdmode" !"kbd_mode -u" } menu "Adminmenu" { "Administrative" f.title #"Keyfun" f.usekey "show iconmgr" f.showiconmgr "hide iconmgr" f.hideiconmgr "desktop" f.menu "desktop" "Window Stuff" f.menu "frame" "Door" f.menu "door" "Grab" f.menu "grab" #"Refocus" f.refocus "Focus" f.focus "Unfocus" f.unfocus "Redisplay" f.refresh "reset root" !"xsetroot -solid black" "reset desktop" f.resetdesktop "snap" f.snap "restart twm" f.twmrc "kbdmode" !"kbd_mode -u" "repeat" !"xset r" "KILL X" f.title "kill twm" f.menu "exit" } menu "exit" { "Exiting vtwm" f.title "Not exiting twm" f.title "kill twm" f.quit "Not exiting twm" f.title "Not exiting twm" f.title "Not exiting twm" f.title "Not exiting twm" f.title } menu "desktop" { "Desktop" f.title "Show desktop" f.showdesktopdisplay "Hide desktop" f.hidedesktopdisplay "Color desktop" !"nexpm -vtwm -solid '#00d000'" } menu "Window Things" { "Window Things" f.title } menu "All Things" { "All Things" f.title } menu "frame" { "Frame" f.title "Iconify" f.iconify "Move" f.move "Resize" f.resize "Expose" f.raise "Hide" f.lower "Redisplay" f.winrefresh "Nail" f.nail "Focus" f.focus "Unfocus" f.unfocus "Zoom" f.menu "zoom" "Grab" f.menu "grab" "Stacking" f.menu "stack" "Delete" f.delete "Quit" f.destroy } menu "stack" { "Raise" f.raise "Lower" f.lower "RaiseLower" f.raiselower "CircleDown" f.circledown "CircleUp" f.circleup "AutoRaise" f.autoraise } menu "door" { "Add" f.newdoor "Remove" f.deletedoor "Enter" f.enterdoor } menu "zoom" { "Zoom" f.title "full" f.fullzoom "vertical" f.zoom "horizontal" f.horizoom "top" f.topzoom "left" f.leftzoom "right" f.rightzoom "bottom" f.bottomzoom "zoom zoom" f.zoomzoom "Resize" f.resize } menu "grab" { "Keyboard" f.title "Grab" f.bindkeys "Ungrab" f.unbindkeys "Mouse" f.title "Grab" f.bindbuttons "Ungrab" f.unbindbuttons } Color { DesktopDisplayForeground "green" DesktopDisplayBackground "DarkGreen" BorderColor "green" { "Xnest" "black" } BorderTileBackground "forestGreen" { "Xnest" "black" } BorderTileForeground "forestGreen" { "Xnest" "black" } DefaultBackground "MediumVioletRed" DefaultForeground "blue" DoorBackground "#00d000" IconManagerHighlight "green" IconManagerBackground "forestGreen" IconManagerForeground "medium aquamarine" MenuBackground "MediumVioletRed" MenuForeground "LightBlue" MenuShadowColor "MidnightBlue" MenuTitleBackground "VioletRed" MenuTitleForeground "goldenrod" TitleBackground "forestGreen" TitleForeground "medium aquamarine" }