diff options
Diffstat (limited to 'sample-twmrc')
-rw-r--r-- | sample-twmrc/jim.twmrc | 250 | ||||
-rw-r--r-- | sample-twmrc/keith.twmrc | 223 | ||||
-rw-r--r-- | sample-twmrc/lemke.twmrc | 255 |
3 files changed, 728 insertions, 0 deletions
diff --git a/sample-twmrc/jim.twmrc b/sample-twmrc/jim.twmrc new file mode 100644 index 0000000..210d118 --- /dev/null +++ b/sample-twmrc/jim.twmrc @@ -0,0 +1,250 @@ +#********************************************************************** +# +# .twmrc +# +#********************************************************************** + +#IconDirectory "/users/jim/icons" # use *bitmapFilePath instead. + +# +# Use the SHAPE extension to make titles use as little space as possible. The +# location of the titles is specified as a fraction of the distance from the +# left (numerator positive) or right edge (numerator negative). A denominator +# of 0 indicates that the numerator is measured in pixels. The title is then +# justified over the indicated spot (note special cases are made for center on +# 0/0 and right on 0/0 to indicate the center and right edge of the titlebar). +# +SqueezeTitle # also sets default to Squeeze all Titles +{ +# name justify num denom + "oclock" center 0 0 # centered over middle of title + "XTerm" left 0 0 # left edge of title + "xlogo" right 0 0 # for kicks + "emacs" right 0 0 # left side emacs with center tab + "xmh" center 0 0 +} +DontSqueezeTitle +{ + "XLogout" # make it stand out when mapped +} +NoDefaults # turn off iconify and resize button +LeftTitleButton "menu12" = f.menu "windowmenu" # add a menu to each window +TitleButtonBorderWidth 0 # don't want to see box around button +ButtonIndent 0 # button doesn't have to be smaller + +UsePPosition "on" # use program-specified size hints accepted +NoHighlight # do not flash borders on enter events +OpaqueMove # actually move window instead of outline +AutoRelativeResize # don't require resize to cross border to start +RestartPreviousState # reiconify iconified things on startup +ClientBorderWidth # use the application border width on frame +BorderWidth 2 # width of top level windows created by twm +NoGrabServer # don't grab server during menus, etc. +NoRaiseOnMove # allow moving under other windows +NoRaiseOnResize # allow resizing under other windows +NoTitleFocus # avoid keystrokes in wrong window cause of lag +DecorateTransients # put titlebars on transients +TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" +MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*" +IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" +IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*" +ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*" +NoSaveUnders # faster to just repaint then save +XORvalue 1 # tend to use visually distinct adjacent colors +ConstrainedMoveTime 0 # turn off horizontal/vertical only moving +NoCaseSensitive # turn off case-sensitivity in sorting icons +WarpUnmapped # allow warping to unmapped windows + +############################################################################### +# # +# Declare some nice colors # +# # +############################################################################### + +Pixmaps +{ +# TitleHighlight "solid4x4" # make it stand out +} + +Color +{ + DefaultBackground "maroon" + DefaultForeground "gray85" + BorderColor "gray70" + TitleBackground "maroon" + TitleForeground "gray85" + MenuBackground "maroon" + MenuForeground "gray85" + MenuTitleBackground "gray70" + MenuTitleForeground "maroon" + IconBackground "maroon" + IconForeground "gray85" + IconBorderColor "gray85" + IconManagerBackground "maroon" + IconManagerForeground "gray85" +} + +Monochrome +{ + IconManagerHighlight "white" + BorderColor "black" +} + + +############################################################################### +# # +# Define key bindings # +# # +############################################################################### + +MoveDelta 3 # need to move this much before takes effect +Function "move-or-raise" # simulate uwm action +{ + f.move + f.deltastop + f.raise +} + +DefaultFunction f.nop # ignore extraneous events + +Button1 = : root : f.menu "twmops" +Button2 = : root : f.menu "windowops" +Button3 = : root : f.menu "TwmWindows" +Button1 = : title : f.function "move-or-raise" +Button1 = : icon : f.iconify +Button1 = : iconmgr : f.iconify +Button1 = m : window|icon|frame|title : f.lower +Button2 = m : window : f.resize +Button3 = m : window|icon|frame|title : f.function "move-or-raise" +Button1 = c|m|s : all : f.menu "twmops" +#Button1 = c|m|s : root : f.refresh +#"F20" = : all : f.warptoscreen "next" + +"F21" = : all : f.warpring "next" +"F22" = : all : f.warptoiconmgr "" +"F23" = : all : f.raiselower +"Num_Lock" = : all : f.iconify +"F24" = : all : f.warpto "xmh" +"F25" = : all : f.warpto "[expo]" +"F26" = : all : f.warpto "emacs" +"KP_Subtract" = mod5 : all : f.colormap "prev" +"KP_Add" = mod5 : all : f.colormap "next" +"KP_Enter" = mod5 : all : f.colormap "default" +"Left" = m : all : f.backiconmgr +"Right" = m : all : f.forwiconmgr +"Up" = m : all : f.upiconmgr +"Down" = m : all : f.downiconmgr +"Left" = mod5 : all : f.warpring "prev" +"Right" = mod5 : all : f.warpring "next" + +############################################################################### +# # +# Display an icon manager across the top of the screen. Don't manage # +# the windows for which you don't show a title. # +# # +############################################################################### + +SortIconManager # keep them in alphabetic order +ShowIconManager # start with iconmgr up +IconManagerGeometry "700x50+246+2" 14 # strip across top +IconRegion "200x300+950+2" North East 50 50 +IconifyByUnmapping # just use icon manager +IconManagerDontShow # but ignore these windows +{ + "xclock" + "xbiff" + "xload" + "oclock" + "xcutsel" + "XLogout" +} +DontIconifyByUnmapping # don't lose them (still in TwmWindows menu) +{ + "xclock" + "xbiff" + "xload" + "oclock" + "xcutsel" + "Untitled" +} +NoTitle # little programs that look like icons +{ + "xclock" + "xbiff" + "xload" + "TWM Icon Manager" + "xcutsel" +} + +NoStackMode # prevent hostile clients from hosing display +{ + "saber" +} + +WindowRing # f.warpring acts along these windows +{ + "XTerm" + "emacs" + "Xmh" +} + + +############################################################################### +# # +# Define some useful menus. # +# # +############################################################################### + +menu "twmops" +{ +"System" f.title +"Restart Twm" f.restart +"Exit Twm" f.quit +"" f.nop +"xterm" !"xterm &" +"xterm -e /bin/sh" !"xterm -e /bin/sh &" +"xhost +" !"xhost + >/dev/null" +"xhost -" !"xhost - >/dev/null" +"" f.nop +"Kill" f.menu "kill" +"" f.nop +"Logout" f.warpto "xlogout" +} + +menu "windowops" +{ +"Windows" f.title +"Kill" f.menu "kill" +"Save" f.saveyourself +"Refresh" f.refresh +"" f.nop +"Iconify" f.iconify +"Resize" f.resize +"Move" f.move +"Raise" f.raise +"Lower" f.lower +"Info" f.identify +"Focus" f.focus +"Unfocus" f.unfocus +"" f.nop +"Show Iconmgr" f.showiconmgr +"Hide Iconmgr" f.hideiconmgr +"Prev Iconmgr" f.previconmgr +"Next Iconmgr" f.nexticonmgr +} + +menu "windowmenu" +{ +"Iconify" f.iconify +"RaiseLower" f.raiselower +"Refresh" f.winrefresh +"Focus" f.focus +"" f.nop +"Kill" f.menu "kill" +} + +menu "kill" +{ + "Send Delete" f.delete + "Kill Window" f.destroy +} diff --git a/sample-twmrc/keith.twmrc b/sample-twmrc/keith.twmrc new file mode 100644 index 0000000..b85340b --- /dev/null +++ b/sample-twmrc/keith.twmrc @@ -0,0 +1,223 @@ +#********************************************************************** +# +# .twmrc +# +#********************************************************************** + +IconDirectory "/users/keith/misc/bitmaps" + +#NoDefaults +NoVersion +NoGrabServer +NoRaiseOnMove +NoRaiseOnResize +#NoMenuShadows +NoTitleHighlight +NoHighlight +NoTitleFocus +NoSaveUnders +SqueezeTitle +ConstrainedMoveTime 0 +DecorateTransients +#TitleButtonBorderWidth 0 +#ButtonIndent 0 +#LeftTitleButton "iconify.bm" = f.iconify +#RightTitleButton "resize.bm" = f.resize +OpaqueMove +#ClientBorderWidth +BorderWidth 1 +RandomPlacement +#IconRegion "1024x250+0+600" NORTH WEST 1024 25 +IconRegion "600x200-200+0" NORTH EAST 75 25 +#IconRegion "200x100-0+200" WEST NORTH 25 50 +TitleFont "-*-helvetica-bold-o-normal--*-140-*-*-*-*-iso8859-1" +MenuFont "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1" +IconFont "-*-helvetica-bold-r-normal--*-140-*-*-*-*-iso8859-1" +ResizeFont "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" +IconManagerFont "-*-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-1" +#ShowIconManager +SortIconManager +IconManagerGeometry "=100x100-200+0" + +# nice colors: background of wheat, foreground of #d36 + +Cursors +{ + Button "left_ptr" + Menu "left_ptr" + Title "left_ptr" + Frame "left_ptr" + Icon "left_ptr" +} + +Color +{ + BorderColor "black" + TitleBackground "CadetBlue" + TitleForeground "#fffff0" + MenuBackground "#fffff0" + MenuForeground "black" + MenuTitleBackground "CadetBlue" + MenuTitleForeground "#fffff0" + IconBackground "#fffff0" + IconForeground "black" + IconBorderColor "black" +} + +Monochrome +{ + IconManagerHighlight "white" +} + +# define key bindings + +MoveDelta 3 + +Function "move-or-raise" +{ + f.move + f.deltastop + f.raise +} + +Function "move-or-raiselower" +{ + f.move + f.deltastop + f.raiselower +} + +Function "move-or-iconify" +{ + f.move + f.deltastop + f.iconify +} + +Function "next-window" +{ +} + +Function "previous-window" +{ +} + +DefaultFunction f.nop + +Button1 = : title : f.function "move-or-raiselower" +Button2 = : title : f.menu "Title Menu" +Button3 = : title : f.resize +Button1 = m : window|icon : f.iconify +Button2 = m : window|icon : f.function "move-or-raiselower" +Button3 = m : window|icon : f.resize +Button3 = c m : title : f.destroy +Button1 = : root : f.menu "Hosts" +Button2 = : root : f.menu "Toys" +Button3 = : root : f.menu "System" +Button1 = : icon : f.function "move-or-iconify" + +#ForceIcons + +Icons +{ + "Xmh" "mail-up.bm" # from IconDirectory + "XTerm" "xterm.bm" # from IconDirectory +} + +#UnknownIcon "icon" + +NoTitle +{ + "clock" + "oclock" + "xclock" + "xbiff" + "xeyes" + "xload" +} + +IconManagerDontShow { + "clock" + "oclock" + "xclock" + "xbiff" + "xeyes" + "xload" +} + +menu "Hosts" +{ +"Hosts" f.title +"xenon" !"xenon &" +"expo" !"expo &" +"kanga" !"kanga &" +"exile" !"exile &" +"expire" !"expire &" +"excalibur" !"excalibur &" +"hpx" !"hpx &" +"expo bugs" !"expo -l bugs &" +"extort" !"extort &" +"apx" !"apx &" +"mfb" !"mfb &" +"sushi" !"sushi &" +"tempura" !"tempora &" +} + +menu "Toys" +{ +"Toys" f.title +"Jove" !"xjove &" +"Mail" !"xmh &" +"Manual" !"xman &" +"Troff Viewer" !"xditview &" +"Calculator" !"xcalc &" +"Mille Bornes" !"xmille `path -n .mille` &" +"Notepad" !"xclipboard &" +"Eyes" !"xeyes &" +"Lens" !"xmag &" +"expo jove" !"expo xjove&" +"expo mail" !"expo xmh &" +} + +menu "System" +{ + "System" f.title + "Window ops" f.menu "Window Ops" + "Windows" f.menu "TwmWindows" + "" f.nop + "Refresh" f.refresh + "Unfocus" f.unfocus + "Show Icon Box" f.showiconmgr + "Hide Icon Box" f.hideiconmgr + "Version" f.version + "" f.nop + "Restart" f.restart + "Logout" f.quit +} + +menu "Window Ops" +{ + "Window Ops" f.title + "Lower" f.lower + "Raise" f.raise + "Resize" f.resize + "Move" f.move + "Deiconify" f.deiconify + "Iconify" f.iconify + "Identify" f.identify + "Focus" f.focus + "Kill" f.destroy +} + +menu "Title Menu" +{ + "Lower" f.lower + "Raise" f.raise + "Resize" f.resize + "Move" f.move + "Iconify" f.iconify + "Identify" f.identify + "Focus" f.focus + "Kill" f.destroy + "Dismiss" f.delete +} diff --git a/sample-twmrc/lemke.twmrc b/sample-twmrc/lemke.twmrc new file mode 100644 index 0000000..f0a12af --- /dev/null +++ b/sample-twmrc/lemke.twmrc @@ -0,0 +1,255 @@ +# +# Dave Lemke's .twmrc +# + +IconDirectory "/u/lemke/lib/icons" + +#AutoRelativeResize +BorderWidth 3 +ButtonIndent 0 +ClientBorderWidth +#DefaultFunction f.nop +#DontMoveOff +IconifyByUnmapping +IconFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" +IconManagerFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" +IconManagerGeometry "=98x5-2+50" +#LeftTitleButton "menu12.xbm" = f.menu "window-ops" +MenuFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" +MoveDelta 5 +#NoBackingStore +NoDefaults +NoGrabServer +NoMenuShadows +#NoRaiseOnDeiconify +NoRaiseOnMove +#NoRaiseOnResize +#NoSaveUnder +#NoTitleFocus +#NoVersion +#OpaqueMove +ResizeFont "10x20" +RestartPreviousState +#ReverseVideo +ShowIconManager +SortIconManager + +SqueezeTitle +{ + "XTerm" center 0 0 + "Xsol" center 0 0 + "Spider" center 0 0 +} + +TitleFont "-adobe-helvetica-bold-r-normal--14-100-100-100-p-82-iso8859-1" +TitleButtonBorderWidth 1 +UnknownIcon "ncdlogo64.xbm" +#WarpCursor +XORValue 1 +#Zoom + +DefaultFunction f.nop + +Function "move-or-raise" +{ + f.move + f.deltastop + f.raise +} + +AutoRaise +{ + "xtrek" + "TWM Icon Manager" + "xclock" + "xbiff" + "xeyes" +} + +Cursors +{ + Menu "right_ptr" +} + +DontIconifyByUnmapping +{ + "xclock" + "xbiff" + "twmOutput" + "xload" + "oclock" + "xeyes" +} + +IconManagerDontShow +{ + "xclock" + "xbiff" + "twmOutput" + "xload" + "oclock" + "xeyes" +} + +Monochrome +{ + DefaultForeground "black" + DefaultBackground "white" + BorderColor "black" + TitleForeground "black" + TitleBackground "white" + MenuForeground "black" + MenuBackground "white" +} + +NoTitle +{ + "xclock" + "xbiff" + "xload" + "TWM Icon Manager" + "FrameMaker" + "FrameWriter" + "oclock" + "twmOutput" + "xeyes" +} + +# +# buttons +# + +Button1 = : root : f.menu "button1" +Button2 = : root : f.menu "Util_menu" +Button3 = : root : f.menu "Hosts_menu" +Button1 = : m : f.iconify +Button2 = : m : f.lower +Button1 = : t : f.function "move-or-raise" +Button2 = : t : f.lower +Button3 = : t : f.menu "window-ops" +Button1 = : i : f.iconify +Button2 = : i : f.function "move-or-raise" + +"F1" = : w|t|i : f.iconify +"F2" = : all : f.refresh +"F3" = : w|t|i : f.raise +"F4" = : w|t|i : f.lower + +"F5" = : w|t|i : f.zoom + + + +menu "button1" +{ +"Applications" f.title +#"FrameWriter" !"rsh indian -n /usr/local/xframewriter $DISPLAY& " +#"Q Calc " !"rsh indian -n /usr/bin/X11/xterm -display $DISPLAY -T Qcalc -e /pmax/u/demo/qsp/bin/qcalc &" +#"Notepad" !"/usr/bin/dxnotepad -display $DISPLAY&" +#"Calculator" !"xcalc -display $DISPLAY&" +"Mail Box" !"/usr/bin/X11/xbiff -display $DISPLAY&" +"Clock" !"oclock -display $DISPLAY &" +"Xterm" !"/usr/bin/X11/xterm -ls -display $DISPLAY &" +"Big Xterm" !"/usr/bin/X11/xterm -ls -fn 9x15 -display $DISPLAY &" +"xsol" !"$HOME/games/bin/`arch`/xsol &" +"Spider" !"$HOME/games/bin/`arch`/spider &" +"Utility" f.title +#"Focus" f.focus +#"UnFocus" f.unfocus +#"More.." f.title +"..Hosts" f.menu "Hosts_menu" +"..Applications" f.menu "Apps_menu" +"..Utility" f.menu "Util_menu" +"" f.title +"Exit" f.quit +} + +menu "Hosts_menu" +{ +"Host Connections" f.title +"Almanor" !"rsh -n almanor exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Almanor&" +"Hamilton" !"rsh -n hamilton exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Hamilton&" +"Homer" !"rsh -n Homer exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Homer&" +"Lupine" !"TERM=xterms xterm -fn 10x20 -T lupine -e rlogin lupine&" +"Ramona" !"rsh -n ramona exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Ramona&" +"Pagemill" !"rsh pagemill -n /usr/bin/X11/xterm -display $DISPLAY -T Pagemill -e /bin/ksh&" +"Sheridan" !"rsh -n sheridan exec /usr/bin/X11/xterm -ls -display $DISPLAY -T Sheridan&" +} + +menu "Apps_menu" +{ +"Applications" f.title +"Man Pages" !"/usr/bin/X11/xman -display $DISPLAY&" +#"Notepad" !"/usr/bin/dxnotepad -display $DISPLAY&" +#"FrameMaker" !"rsh indian -n /usr/local/xframemaker $DISPLAY& " +#"Calendar" !"/usr/bin/dxcalendar -display $DISPLAY &" +"Clock" !"/usr/bin/X11/xclock -display $DISPLAY &" +#"Rolodex" !"/usr/bin/dxcardfiler -display $DISPLAY &" +#"Paint" !"/usr/bin/dxpaint -display $DISPLAY &" +"Lock Screen" !"/usr/bin/X11/xlock & " +"Preferences" !"/usr/bin/X11/xpref -display $DISPLAY&" +"Xterm" !"/usr/bin/X11/xterm -ls -display $DISPLAY &" +} + +menu "Util_menu" +{ +"Utilities" f.title +"Refresh" f.refresh +"twm Version" f.version +"Source .twmrc" f.twmrc +"Restart twm" f.restart +#"Hide IconManager" f.hideiconmgr +#"Show IconManager" f.showiconmgr +#"Destroy All Window" !"xkill -a&" +"Preferences" f.menu "Pref_menu" +"TwmWindows" f.menu "TwmWindows" +"Exit twm" f.quit +"Window Ops" f.title +"Refresh Window" f.winrefresh +"Move Window" f.move +"Resize Window" f.resize +"Lower Window" f.lower +"Raise Window" f.raise +"Iconify" f.iconify +"Window Info" f.identify +"Destroy Window" f.destroy +"Focus on Window" f.focus +"Focus on Root" f.unfocus +} + +menu "Pref_menu" +{ +"Preferences" f.title +"Bell Loud" !"xset b 75&" +"Bell Normal" !"xset b 50&" +"Bell Quiet" !"xset b 25&" +"Bell Off" !"xset b off&" +"Mouse Fast" !"xset m 5 1&" +"Mouse Normal" !"xset m 3 1&" +"Mouse Slow" !"xset m 1 1&" +"Screen Saver" f.menu "SSaver" +} + + +menu "SSaver" +{ +"Screen Saver" f.title +"Blank" !"/usr/bin/X11/xset s blank -display $DISPLAY &" +"No Blank" !"/usr/bin/X11/xset s noblank -display $DISPLAY &" +"Saver 2 Sec." !"/usr/bin/X11/xset s 2 2 -display $DISPLAY &" +"Saver 2 Min." !"/usr/bin/X11/xset s 120 120 -display $DISPLAY &" +"Saver 10 Min." !"/usr/bin/X11/xset s 600 600 -display $DISPLAY &" +} + +menu "window-ops" +{ +"Window Ops" f.title +"Iconify" f.iconify +"Refresh Window" f.winrefresh +"Move Window" f.move +"Resize Window" f.resize +"Hide Window" f.lower +"Expose Window" f.raise +"Destroy Window" f.destroy +"Delete Window" f.delete +"Save" f.saveyourself +} |