# FILE : .twmrc # init file, adapted from system.twmrc on autarch # JL 11/19/91 # hacked for X11R5, JL 05/22/92 # Ravikanth Ganesan : 12/09/92 #Modified by Sung-Hye Cho 9/12/94 #----------------------------------------------------------------------------- # variables #----------------------------------------------------------------------------- # # add window or resource class names to this list if you want them to # autoraise as the mouse pointer moves over them # AutoRaise { "TWM" "emacs" "dclock" "xterm" "xman" "xcalc" } # # add add names of applications you want shown without a title bar to this # list # NoTitle { "xman" "perfmeter" "xbiff" "xload" "xeyes" "xclock" "xchrono" "dclock" } # # miscellaneous variables # NoGrabServer DecorateTransients TitleFont "-adobe-helvetica-bold-r-normal--*-140-*-*-*-*-*-*" ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" MenuFont "-adobe-helvetica-bold-r-normal--*-140-*-*-*-*-*-*" IconFont "-adobe-helvetica-bold-r-normal--*-140-*-*-*-*-*-*" IconManagerFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*" ButtonIndent 2 TitleButtonBorderWidth 1 TitlePadding 20 RestartPreviousState Zoom ShowIconManager SortIconManager IconManagerGeometry "=120x7-5+10" 1 IconManagerDontShow { "xload" "xclock" "xbiff" "Xman" "xeyes" "dclock" "Information" "Message entry"} NoTitle { "xclock" "dclock" "TWM Icon Manager" "xload" "xbiff" "Xman" "xeyes" } # # default color of windows # Color { BorderColor "slategrey" DefaultBackground "maroon" DefaultForeground "gray" TitleBackground "maroon" TitleForeground "gray85" MenuBackground "maroon" MenuForeground "gray85" MenuTitleBackground "gray70" MenuTitleForeground "maroon" IconBackground "maroon" IconForeground "gray85" IconBorderColor "gray85" IconManagerBackground "maroon" IconManagerForeground "gray85" } # # default function for unassigned buttons # DefaultFunction f.menu "wind_manip" #----------------------------------------------------------------------------- # bindings #----------------------------------------------------------------------------- # # Define some useful functions for motion-based actions. # 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 } # # Set some useful bindings. Sort of uwm-ish, sort of simple-button-ish # Button1 = : root : f.menu "defops" 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 # # add a delete button to window frame -- very useful for OW # RightTitleButton "star" = f.delete #----------------------------------------------------------------------------- # menus #----------------------------------------------------------------------------- menu "defops" { "TWM" f.title "Window Manipulation" f.menu "wind_manip" "" f.nop "Shells" f.menu "shells" "Remote Logins" f.menu "rem_logins" "" f.nop "Editors" f.menu "editors" "News/Mail/Talk" f.menu "news_mail_talk" "Previewers" f.menu "previewers" "Draw/Paint/Write" f.menu "draw_paint_write" "Calendars" f.menu "calendars" "Miscellaneous" f.menu "misc" "Games" f.menu "games" "" f.nop "Tools" f.menu "tools" "Utilities" f.menu "utilities" "" f.nop "Exit" f.quit } menu "wind_manip" { "Iconify" f.iconify "Resize" f.resize "Move" f.move "Raise" f.raise "Auto Raise" f.autoraise "Lower" f.lower "Circle Up" f.circleup "Circle Down" f.circledown "Zoom L" f.leftzoom "Zoom R" f.rightzoom "Focus" f.focus "Unfocus" f.unfocus "Refresh" f.winrefresh "" f.nop "Save Status" f.saveyourself "" f.nop "Show Iconmgr" f.showiconmgr "Hide Iconmgr" f.hideiconmgr "" f.nop "Identify" f.identify "Delete" f.delete "Kill" f.destroy } menu "shells" { "Command Tool" f.exec "$OPENWINHOME/bin/xview/cmdtool &" "Shell Tool" f.exec "$OPENWINHOME/bin/xview/shelltool &" "XTerm" f.exec "xterm +t -tn xterm -n 'Xterm [C-middle]' &" "XTerm (vt102)" f.exec "xterm +t -tn vt102 -n 'Xterm VT102 [C-middle]' &" "XTerm (Tek4014)" f.exec "xterm -t -tn tek4014 -n 'Xterm Tek4014 [C-middle]' &" "Console" f.exec "$OPENWINHOME/bin/xview/cmdtool -C &" "XConsole" f.exec "xconsole &" } menu "rem_logins" { "hydra" f.exec "xterm -T hydra -e rsh hydra.cs.buffalo.edu -l elder &" "hadar" f.exec "xterm -T hadar -e rsh hadar.cs.buffalo.edu -l elder &" "castor" f.exec "xterm -T castor -e rsh castor.cs.buffalo.edu -l elder &" } menu "editors" { "Emacs" f.exec "emacs &" "Epoch" f.exec "epoch &" "TextEdit" f.exec "$OPENWINHOME/bin/xview/textedit &" "Vi" f.exec "xterm -n vi -T 'Vi' -e vi &" "Xedit" f.exec "xedit &" } menu "news_mail_talk" { "Mail Tool" f.exec "$OPENWINHOME/bin/xview/mailtool &" "Nn newsreader (lictor)" f.exec "xon lictor.acsu -access xterm -geometry 80x48-78-50 -e nn &" "Rn newsreader" f.exec "xterm -geometry 80x48-78-50 -e trn &" "XMail" f.exec "xmail &" "XTalk" f.exec "xtalk &" "XTv" f.exec "xtv &" "Xmh mailreader" f.exec "xmh &" "Xrn newsreader" f.exec "xrn &" } menu "previewers" { "GhostView (PS)" f.exec "ghostview &" "XDitView (ditroff)" f.exec "xditview `xprompt -re -warp -p 'ditroff file' -r $HOME/` &" "XDvi (tex/dvi)" f.exec "xdvi `xprompt -re -warp -p 'dvi file' -r $HOME/` &" "XGif (>8 bit gif)" f.exec "xgif `xprompt -re -warp -p 'gif file' -r $HOME/` &" "XPlot (plot)" f.exec "xplot `xprompt -re -warp -p 'plot file' -r $HOME/` &" "XTiff (tiff)" f.exec "xtiff `xprompt -re -warp -p 'tiff file' -r $HOME/` &" "Xv (gif etc)" f.exec "xv &" "Xview (gif)" f.exec "xview `xprompt -re -warp -p 'gif file' -r $HOME/` &" } menu "draw_paint_write" { "FrameMaker" f.exec "/util/text/frame/bin/maker &" "IslandDraw" f.exec "IslandDraw &" "IslandPaint" f.exec "IslandPaint &" "IslandWrite" f.exec "IslandWrite &" "XFig" f.exec "xfig &" "XWebster" f.exec "xwebster &" } menu "softw_sys" { "Khoros (Image Processing)" f.exec "csh -fc '(if (-r ~/.khoros_env) source ~/.khoros_env; cantata)' &" } menu "misc" { "Clocks" f.menu "clocks" "Color" f.menu "color" "Man Pages" f.exec "xman &" "Root images" f.menu "root_imgs" "Sc spreadsheet" f.exec "xterm -tn vt102 -geometry 114x52+10+114 -n sc -T 'Sc spreadsheet' -e sc &" "XClipBoard" f.exec "xclipboard &" "XCutSel" f.exec "xcutsel &" "XFd (font display)" f.exec "xfd -fn `xprompt -re -warp -p 'font name'` &" "XFontSel (font select)" f.exec "xfontsel &" "XTalk" f.exec "xtalk &" "XTv" f.exec "xtv &" "XWebster" f.exec "xwebster &" } menu "calendars" { "Calendar Manager" f.exec "$OPENWINHOME/bin/xview/cm &" "Month" f.exec "xterm -n month -T 'Month' -e month &" "XCalendar" f.exec "xcalendar &" } menu "clocks" { "Clock" f.exec "$OPENWINHOME/bin/xview/clock &" "DClock" f.exec "dclock &" "OClock" f.exec "$OPENWINHOME/bin/oclock &" "XClock" f.exec "xclock &" } menu "color" { "XColor" f.exec "xcolor &" } menu "root_imgs" { "Bigphoon (autarch)" f.exec "xon autarch.acsu -access xbigphoon &" "File (full)" f.exec "xsetbg -fullscreen `xprompt -re -warp -p 'root image file' -r $HOME/` &" "File (tiled)" f.exec "xsetbg `xprompt -re -warp -p 'root image file' -r $HOME/` &" "Granite (autarch)" f.exec "xon autarch.acsu -access xgranite &" "Mandelbrot (lictor)" f.exec "xon lictor.acsu -access xloadimage -fullscreen -onroot /misc/bitmaps/poskbitmaps/mandelbrot.Z &" "Phoon" f.exec "xphoon &" "Vine" f.exec "vine &" "X root" f.exec "xsetroot &" } menu "games" { "Maze" f.exec "$OPENWINHOME/demo/maze &" "Puzzle" f.exec "$OPENWINHOME/demo/puzzle &" "Solitaire" f.exec "$OPENWINHOME/demo/xsol &" "Spider" f.exec "$OPENWINHOME/demo/spider &" "Worms" f.exec "$OPENWINHOME/demo/worm &" "Xeyes" f.exec "$OPENWINHOME/demo/xeyes &" } menu "tools" { "Audio Tool" f.exec "$OPENWINHOME/bin/audiotool &" "Binder" f.exec "$OPENWINHOME/bin/xview/binder &" "Calculator" f.exec "$OPENWINHOME/bin/xview/calctool &" "Calendar Manager" f.exec "$OPENWINHOME/bin/xview/cm &" "File Manager" f.exec "$OPENWINHOME/bin/xview/filemgr &" "Function Keys" f.exec "$OPENWINHOME/bin/vkbd &" "Icon Editor" f.exec "$OPENWINHOME/bin/xview/iconedit &" "Magnifier" f.exec "$OPENWINHOME/bin/xmag &" "Mail Tool" f.exec "$OPENWINHOME/bin/xview/mailtool &" "Performance Meter" f.exec "$OPENWINHOME/bin/xview/perfmeter &" "Print Tool" f.exec "$OPENWINHOME/bin/xview/printtool &" "Tape Tool" f.exec "$OPENWINHOME/bin/xview/tapetool &" "Window Dumps" f.menu "wind_dumps" "XClipBoard" f.exec "xclipboard &" "XCutSel" f.exec "xcutsel &" "XMeter" f.exec "xmeter `xprompt -re -warp -p 'hostname' -r $HOST` &" "XPostIt" f.exec "xpostit &" } menu "wind_dumps" { "Snapshot" f.exec "$OPENWINHOME/bin/xview/snapshot &" "Print window" f.exec "xdpr -P`xprompt -re -warp -p 'PostScript printer' -r harpo` -device ps &" "Dump window to file" f.exec "xwd -out `xprompt -re -warp -p 'Window dump file' -r $HOME/` &" "Read window dump file" f.exec "xwud -in `xprompt -re -warp -p 'Window dump file' -r $HOME/` &" "Print window dump file" f.exec "xdpr `xprompt -re -warp -p 'Window dump file' -r $HOME/` -P`xprompt -re -warp -p 'PostScript printer' -r harpo` -device ps &" "Dump window to PS file" f.exec "xwd|xpr -device ps -output `xprompt -re -p 'PostScript file' -r $HOME/` &" } menu "utilities" { "Refresh" f.refresh "Restart" f.restart "Lock Screen" f.exec "xlock -mode random &" }