1# 2# Dave Lemke's .twmrc 3# 4 5IconDirectory "/u/lemke/lib/icons" 6 7#AutoRelativeResize 8BorderWidth 3 9ButtonIndent 0 10ClientBorderWidth 11#DefaultFunction f.nop 12#DontMoveOff 13IconifyByUnmapping 14IconFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" 15IconManagerFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" 16IconManagerGeometry "=98x5-2+50" 17#LeftTitleButton "menu12.xbm" = f.menu "window-ops" 18MenuFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" 19MoveDelta 5 20#NoBackingStore 21NoDefaults 22NoGrabServer 23NoMenuShadows 24#NoRaiseOnDeiconify 25NoRaiseOnMove 26#NoRaiseOnResize 27#NoSaveUnder 28#NoTitleFocus 29#NoVersion 30#OpaqueMove 31ResizeFont "10x20" 32RestartPreviousState 33#ReverseVideo 34ShowIconManager 35SortIconManager 36 37SqueezeTitle 38{ 39 "XTerm" center 0 0 40 "Xsol" center 0 0 41 "Spider" center 0 0 42} 43 44TitleFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" 45TitleButtonBorderWidth 1 46UnknownIcon "ncdlogo64.xbm" 47#WarpCursor 48XORValue 1 49#Zoom 50 51DefaultFunction f.nop 52 53Function "move-or-raise" 54{ 55 f.move 56 f.deltastop 57 f.raise 58} 59 60AutoRaise 61{ 62 "xtrek" 63 "TWM Icon Manager" 64 "xclock" 65 "xbiff" 66 "xeyes" 67} 68 69Cursors 70{ 71 Menu "right_ptr" 72} 73 74DontIconifyByUnmapping 75{ 76 "xclock" 77 "xbiff" 78 "twmOutput" 79 "xload" 80 "oclock" 81 "xeyes" 82} 83 84IconManagerDontShow 85{ 86 "xclock" 87 "xbiff" 88 "twmOutput" 89 "xload" 90 "oclock" 91 "xeyes" 92} 93 94Monochrome 95{ 96 DefaultForeground "black" 97 DefaultBackground "white" 98 BorderColor "black" 99 TitleForeground "black" 100 TitleBackground "white" 101 MenuForeground "black" 102 MenuBackground "white" 103} 104 105NoTitle 106{ 107 "xclock" 108 "xbiff" 109 "xload" 110 "TWM Icon Manager" 111 "FrameMaker" 112 "FrameWriter" 113 "oclock" 114 "twmOutput" 115 "xeyes" 116} 117 118# 119# buttons 120# 121 122Button1 = : root : f.menu "button1" 123Button2 = : root : f.menu "Util_menu" 124Button3 = : root : f.menu "Hosts_menu" 125Button1 = : m : f.iconify 126Button2 = : m : f.lower 127Button1 = : t : f.function "move-or-raise" 128Button2 = : t : f.lower 129Button3 = : t : f.menu "window-ops" 130Button1 = : i : f.iconify 131Button2 = : i : f.function "move-or-raise" 132 133"F1" = : w|t|i : f.iconify 134"F2" = : all : f.refresh 135"F3" = : w|t|i : f.raise 136"F4" = : w|t|i : f.lower 137 138"F5" = : w|t|i : f.zoom 139 140 141 142menu "button1" 143{ 144"Applications" f.title 145#"FrameWriter" !"rsh indian -n /usr/local/xframewriter $DISPLAY& " 146#"Q Calc " !"rsh indian -n /usr/bin/X11/xterm -display $DISPLAY -T Qcalc -e /pmax/u/demo/qsp/bin/qcalc &" 147#"Notepad" !"/usr/bin/dxnotepad -display $DISPLAY&" 148#"Calculator" !"xcalc -display $DISPLAY&" 149"Mail Box" !"/usr/bin/X11/xbiff -display $DISPLAY&" 150"Clock" !"oclock -display $DISPLAY &" 151"Xterm" !"/usr/bin/X11/xterm -ls -display $DISPLAY &" 152"Big Xterm" !"/usr/bin/X11/xterm -ls -fn 9x15 -display $DISPLAY &" 153"xsol" !"$HOME/games/bin/`arch`/xsol &" 154"Spider" !"$HOME/games/bin/`arch`/spider &" 155"Utility" f.title 156#"Focus" f.focus 157#"UnFocus" f.unfocus 158#"More.." f.title 159"..Hosts" f.menu "Hosts_menu" 160"..Applications" f.menu "Apps_menu" 161"..Utility" f.menu "Util_menu" 162"" f.title 163"Exit" f.quit 164} 165 166menu "Hosts_menu" 167{ 168"Host Connections" f.title 169"Almanor" !"rsh -n almanor exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Almanor&" 170"Hamilton" !"rsh -n hamilton exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Hamilton&" 171"Homer" !"rsh -n Homer exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Homer&" 172"Lupine" !"TERM=xterms xterm -fn 10x20 -T lupine -e rlogin lupine&" 173"Ramona" !"rsh -n ramona exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Ramona&" 174"Pagemill" !"rsh pagemill -n /usr/bin/X11/xterm -display $DISPLAY -T Pagemill -e /bin/ksh&" 175"Sheridan" !"rsh -n sheridan exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Sheridan&" 176} 177 178menu "Apps_menu" 179{ 180"Applications" f.title 181"Man Pages" !"/usr/bin/X11/xman -display $DISPLAY&" 182#"Notepad" !"/usr/bin/dxnotepad -display $DISPLAY&" 183#"FrameMaker" !"rsh indian -n /usr/local/xframemaker $DISPLAY& " 184#"Calendar" !"/usr/bin/dxcalendar -display $DISPLAY &" 185"Clock" !"/usr/bin/X11/xclock -display $DISPLAY &" 186#"Rolodex" !"/usr/bin/dxcardfiler -display $DISPLAY &" 187#"Paint" !"/usr/bin/dxpaint -display $DISPLAY &" 188"Lock Screen" !"/usr/bin/X11/xlock & " 189"Preferences" !"/usr/bin/X11/xpref -display $DISPLAY&" 190"Xterm" !"/usr/bin/X11/xterm -ls -display $DISPLAY &" 191} 192 193menu "Util_menu" 194{ 195"Utilities" f.title 196"Refresh" f.refresh 197"twm Version" f.version 198"Source .twmrc" f.twmrc 199"Restart twm" f.restart 200#"Hide IconManager" f.hideiconmgr 201#"Show IconManager" f.showiconmgr 202#"Destroy All Window" !"xkill -a&" 203"Preferences" f.menu "Pref_menu" 204"TwmWindows" f.menu "TwmWindows" 205"Exit twm" f.quit 206"Window Ops" f.title 207"Refresh Window" f.winrefresh 208"Move Window" f.move 209"Resize Window" f.resize 210"Lower Window" f.lower 211"Raise Window" f.raise 212"Iconify" f.iconify 213"Window Info" f.identify 214"Destroy Window" f.destroy 215"Focus on Window" f.focus 216"Focus on Root" f.unfocus 217} 218 219menu "Pref_menu" 220{ 221"Preferences" f.title 222"Bell Loud" !"xset b 75&" 223"Bell Normal" !"xset b 50&" 224"Bell Quiet" !"xset b 25&" 225"Bell Off" !"xset b off&" 226"Mouse Fast" !"xset m 5 1&" 227"Mouse Normal" !"xset m 3 1&" 228"Mouse Slow" !"xset m 1 1&" 229"Screen Saver" f.menu "SSaver" 230} 231 232 233menu "SSaver" 234{ 235"Screen Saver" f.title 236"Blank" !"/usr/bin/X11/xset s blank -display $DISPLAY &" 237"No Blank" !"/usr/bin/X11/xset s noblank -display $DISPLAY &" 238"Saver 2 Sec." !"/usr/bin/X11/xset s 2 2 -display $DISPLAY &" 239"Saver 2 Min." !"/usr/bin/X11/xset s 120 120 -display $DISPLAY &" 240"Saver 10 Min." !"/usr/bin/X11/xset s 600 600 -display $DISPLAY &" 241} 242 243menu "window-ops" 244{ 245"Window Ops" f.title 246"Iconify" f.iconify 247"Refresh Window" f.winrefresh 248"Move Window" f.move 249"Resize Window" f.resize 250"Hide Window" f.lower 251"Expose Window" f.raise 252"Destroy Window" f.destroy 253"Delete Window" f.delete 254"Save" f.saveyourself 255} 256