home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / sgi / misc / 213 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  16.1 KB

  1. Path: sparky!uunet!olivea!charnel!sifon!isaac
  2. From: isaac@glaurung.physics.mcgill.ca (Martin-D. Lacasse)
  3. Newsgroups: comp.sys.sgi.misc
  4. Subject: Re: How can I rlogin with the DISPLAY envar propagated?
  5. Message-ID: <1993Jan8.204002.6415@sifon.cc.mcgill.ca>
  6. Date: 8 Jan 93 20:40:02 GMT
  7. References: <1993Jan8.000124.1271@sol.ctr.columbia.edu> <1993Jan08.024656.34352@watson.ibm.com>
  8. Sender: news@sifon.cc.mcgill.ca
  9. Organization: Center for the Physics of Materials, McGill University
  10. Lines: 368
  11. Nntp-Posting-Host: glaurung.physics.mcgill.ca
  12.  
  13.  
  14.     Here is the solution we had for our network. It works on both
  15.     Xterminals and consoles. One has to use 4Dwm. It consists of
  16.     choosing one of our host using the window manager so that this
  17.     solution is easier for users. The names of the hosts appear
  18.     in the window, and different window colors were selected to
  19.     represent the different machine architectures.
  20.  
  21.     Here is our complete /usr/lib/X11/system.4Dwmrc:
  22.  
  23.  
  24. ----
  25.  Martin-D. Lacasse                   internet: isaac@physics.mcgill.ca
  26.  Physics Department                     voice: (514) 398-7027
  27.  McGill University                        fax: (514) 398-8434
  28.  Montreal
  29.  Quebec, Canada
  30.  &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  31.  
  32.  
  33. ################################################################################
  34. #                                                                              #
  35. #              LOCAL     4Dwm RESOURCE DESCRIPTION FILE                        #
  36. #                        (system.4Dwmrc, $HOME/.4Dwmrc)                        #
  37. #                                                                              #
  38. # This file is less imposing than it seems at first glance.  It includes       #
  39. # two clearly identified sets of values.                                       #
  40. #                                                                              #
  41. #    * OSF original values -- included so that anyone who wants to either   #
  42. #      use the original OSF values or see what changes SGI has made has     #
  43. #      an easy way to do so.                                                #
  44. #                                                                              #
  45. #    * 4Dwm values -- uses a superset of mwm functions, and takes           #
  46. #      advantage of new features in 4Dwm.  Settings which establish SGI's   #
  47. #       default end user environment are included here.               #
  48. #                                                                              #
  49. # We provide both versions to allow easy user switching and comparison         #
  50. # between them.                                                                #
  51. #                                                                              #
  52. ################################################################################
  53.  
  54.  
  55.  
  56. ################################################################################
  57. #                                                                              #
  58. #                         BUTTON BINDING DESCRIPTIONS                          #
  59. #                                                                              #
  60. ################################################################################
  61.  
  62. #
  63. # OSF Button Binding Descriptions
  64. #
  65. Buttons DefaultButtonBindings
  66. {
  67.         <Btn1Down>      icon|frame      f.raise
  68.         <Btn3Down>      icon            f.post_wmenu
  69.         <Btn1Down>      root            f.menu  WinCntrl
  70.         <Btn2Down>      root            f.menu  SessionCntrl
  71.         <Btn3Down>      root            f.menu  HostCntrl
  72. }
  73.  
  74. Buttons ExplicitButtonBindings
  75. {
  76.         <Btn1Down>      frame|icon      f.raise
  77.         <Btn3Down>      frame|icon      f.post_wmenu
  78.         <Btn1Down>      root            f.menu  WinCntrl
  79.         <Btn2Down>      root            f.menu  SessionCntrl
  80.         <Btn3Down>      root            f.menu  HostCntrl
  81.         Meta<Btn1Down>  window|icon     f.lower
  82. !        Meta<Btn2Down>  window|icon     f.resize
  83. !        Meta<Btn3Down>  window|icon     f.move
  84. }
  85.  
  86. Buttons PointerButtonBindings
  87. {
  88.         <Btn1Down>      frame|icon      f.raise
  89.         <Btn3Down>      frame|icon      f.post_wmenu
  90.         <Btn1Down>      root            f.menu  WinCntrl
  91.         <Btn2Down>      root            f.menu  SessionCntrl
  92.         <Btn3Down>      root            f.menu  HostCntrl
  93.         <Btn1Down>      window          f.raise
  94.         Meta<Btn1Down>  window|icon     f.lower
  95. !       Meta<Btn2Down>  window|icon     f.resize
  96. !       Meta<Btn3Down>  window|icon     f.move
  97. }
  98.  
  99. #
  100. # SGI 4Dwm Button Binding Descriptions
  101. #
  102. Buttons 4DwmButtonBindings
  103. {
  104.         <Btn1Down>    root        f.menu    WinCntrl
  105. !       <Btn1Down>    window        f.raise
  106.         <Btn1Click>    frame        f.raise
  107. !    Click, so we don't disable the Btn1Down ability to move the icon.
  108. !    Btn1Down doing an f.move is in the OSF manuals.
  109.         <Btn1Click>    icon        f.normalize
  110.     Ctrl<Btn1Down>    frame|icon    f.lower
  111.    Shift<Btn1Down>    frame|icon    f.raise
  112. Shift Ctrl<Btn1Down>    window          f.raise_resize
  113.  
  114.         <Btn2Down>    root        f.menu    SessionCntrl
  115.         <Btn2Down>    frame|icon    f.move
  116.     Ctrl<Btn2Down>    frame|icon    f.lower
  117.    Shift<Btn2Down>    frame|icon    f.raise
  118. Shift Ctrl<Btn2Down>    window          f.raise_move
  119.  
  120.         <Btn3Down>    root        f.menu    HostCntrl
  121.         <Btn3Down>    frame|icon    f.post_wmenu
  122.     Ctrl<Btn3Down>    frame|icon    f.post_wmenu
  123.    Shift<Btn3Down>    frame|icon    f.post_wmenu
  124.     Meta<Btn3Down>    window|icon    f.post_wmenu
  125. Shift Ctrl<Btn3Down>    window          f.post_wmenu
  126. }
  127.  
  128.  
  129. ################################################################################
  130. #                                                                              #
  131. #                          KEY BINDING DESCRIPTIONS                            #
  132. #                                                                              #
  133. ################################################################################
  134.  
  135. #
  136. # OSF key binding descriptions
  137. #
  138. Keys DefaultKeyBindings
  139. {
  140.         Shift<Key>Escape        window|icon             f.post_wmenu
  141.         Meta<Key>space          window|icon             f.post_wmenu
  142.         Meta<Key>Tab            root|icon|window        f.next_key
  143.         Meta Shift<Key>Tab      root|icon|window        f.prev_key
  144.         Meta<Key>Escape         root|icon|window        f.next_key
  145.         Meta Shift<Key>Escape   root|icon|window        f.prev_key
  146.         Meta Shift Ctrl<Key>exclam root|icon|window     f.set_behavior
  147.         Meta<Key>F6             window                  f.next_key transient
  148.         Meta Shift<Key>F6       window                  f.prev_key transient
  149.             <Key>F4             icon                    f.post_wmenu
  150. }
  151.  
  152.  
  153. #
  154. # SGI 4Dwm key binding descriptions
  155. #
  156. Keys 4DwmKeyBindings
  157. {
  158.     # Same as the standard OSF Key Bindings
  159.         Shift<Key>Escape        window|icon             f.post_wmenu
  160.         Meta<Key>space          window|icon             f.post_wmenu
  161.         Meta<Key>Tab            root|icon|window        f.next_key
  162.         Meta Shift<Key>Tab      root|icon|window        f.prev_key
  163.         Meta<Key>Escape         root|icon|window        f.next_key
  164.         Meta Shift<Key>Escape   root|icon|window        f.prev_key
  165.         Meta Shift Ctrl<Key>exclam root|icon|window     f.set_behavior
  166.         Meta<Key>F6             window                  f.next_key transient
  167.         Meta Shift<Key>F6       window                  f.prev_key transient
  168.         <Key>F4            icon            f.post_wmenu
  169.         <Key>Caps_Lock      window                  f.nop
  170.  
  171.     # SGI added key bindings
  172.     Shift<Key>Escape    root            f.menu SessionCntrl
  173.     Meta<Key>space        root            f.menu HostCntrl
  174. }
  175.  
  176. ################################################################################
  177. #                                                                              #
  178. #                 LOCAL PANE DEFINITIONS                                       #
  179. #                                                                              #
  180. ################################################################################
  181.  
  182.  
  183. Menu WinCntrl
  184. {
  185.     "Window Control"        f.title
  186.     "Tools"                    _T  f.menu  Tools
  187.     "Set Background"      _B    f.menu  Roots
  188.     no-label                    f.separator
  189.     "Shuffle Up"          _U    f.circle_up
  190.     "Shuffle Down"          _D    f.circle_down
  191.     "Tidy Icons"          _T    f.pack_icons
  192.     no-label                    f.separator
  193.     "Minimize All"          _M    f.minimize_all
  194.     "Restore All"          _R    f.normalize_all
  195.     "Refresh All"          _f    f.refresh
  196. }
  197.  
  198. Menu Roots
  199. {
  200.     "Gray"       f.exec "/usr/bin/X11/xsetroot -solid grey"
  201.     "X Cross Weave" f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/root_weave"
  202.     "Scales"        f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/scales"
  203.     "Texture"       f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/grainy"
  204.     "Granite"       f.exec "/usr/bin/X11/xsetroot -bitmap /usr/include/X11/bitmaps/granite" 
  205. }
  206.  
  207. Menu Tools
  208. {
  209.     "Xtex"        f.exec        "/usr/bin/X11/xtex"
  210.     "Xpsview"        f.exec        "/usr/sbin/xpsview"
  211.     "Calculators"    f.menu Calcs
  212.     "Clocks"      f.menu       Clocks
  213.     "Calendar"    f.exec "/usr/bin/X11/xcalendar"
  214. }
  215.  
  216. Menu  Clocks
  217. {
  218.     "Round Clock"   f.exec "/usr/bin/X11/oclock"
  219.     "Digital Clock" f.exec "/usr/bin/X11/xclock -update 1 -digital -fn '-adobe-helvetica-bold-o-normal--18-*'"
  220.     "Analog Clock"  f.exec "/usr/bin/X11/xclock -update 1"
  221. }
  222.  
  223. Menu  Calcs
  224. {
  225.     "Posix" f.exec     "/usr/bin/X11/xcalc -stipple"
  226.     "Reverse Polish"  f.exec "/usr/bin/X11/xcalc -stipple -rpn"
  227. }
  228.  
  229.  
  230.  
  231. #
  232. # Hosts Control
  233. #
  234. Menu HostCntrl
  235. {
  236.         "Host Control"             f.title
  237.         "Local Host"        _L            f.exec "/usr/sbin/winterm -T 'Local:`hostname`' -n `hostname` -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  238.         no-label                f.separator
  239.         "Sgi Cluster..."        _i            f.menu SgiMenu
  240.         no-label                f.separator
  241.         "Sun Cluster..."        _S            f.menu SunMenu
  242.         no-label                f.separator
  243.         "Ibm Cluster..."        _b            f.menu IbmMenu
  244.         no-label                f.separator
  245.         "VM1"        _V            f.exec "xterm -display $DISPLAY -T 'IBM:VM1' -n VM1 -e tn3270 vm1.cc.mcgill.ca &"
  246. }
  247.  
  248.  
  249. Menu SunMenu
  250. {
  251.     "aragorn"   f.exec "/usr/bsd/rsh aragorn /usr/local/X11/bin/xterm +ut -T 'Sun:aragorn' -n aragorn -display $DISPLAY  -ls -sb -sk -sl 128  -bg blue4 -fg ivory < /dev/null &"
  252.     "bilbo" f.exec "/usr/bsd/rsh bilbo /usr/local/X11/bin/xterm +ut -T 'Sun:bilbo' -n bilbo -display $DISPLAY -rv -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  253.     "boromir" f.exec "/usr/bsd/rsh boromir /usr/local/X11/bin/xterm +ut -T 'Sun:boromir' -n boromir -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  254.     "frodo" f.exec "/usr/bsd/rsh frodo /usr/local/X11/bin/xterm +ut -T 'Sun:frodo' -n frodo -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  255.     "eowyn" f.exec "/usr/bsd/rsh eowyn /usr/local/X11/bin/xterm +ut -T 'Sun:eowyn' -n eowyn -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  256.     "gandalf" f.exec "/usr/bsd/rsh gandalf /usr/local/X11/bin/xterm +ut -T 'Sun:gandalf' -n gandalf -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  257.     "gimli" f.exec "/usr/bsd/rsh gimli /usr/local/X11/bin/xterm +ut -T 'Sun:gimli' -n gimli -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  258.     "gollum" f.exec "/usr/bsd/rsh gollum /usr/local/X11/bin/xterm +ut -T 'Sun:gollum' -n gollum -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  259.     "legolas"   f.exec "/usr/bsd/rsh legolas /usr/local/X11/bin/xterm +ut -T 'Sun:legolas' -n legolas -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  260.     "sauron"    f.exec "/usr/bsd/rsh sauron /usr/local/X11/bin/xterm +ut -T 'Sun:sauron' -n sauron -display $DISPLAY  -ls -sb -sk -sl 128 -bg blue4 -fg ivory < /dev/null &"
  261. }
  262.  
  263. Menu SgiMenu
  264. {
  265.     "arwen"    f.exec "/usr/bsd/rsh arwen /usr/sbin/winterm -T 'Indigo:arwen' -n arwen -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  266.     "balrog"    f.exec "/usr/bsd/rsh balrog /usr/sbin/winterm -T 'Personal:balrog' -n balrog -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  267.     "celeborn"    f.exec "/usr/bsd/rsh celeborn /usr/sbin/winterm -T 'Indigo:celeborn' -n celeborn -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  268.     "cirdan"    f.exec "/usr/bsd/rsh cirdan /usr/sbin/winterm -T 'Indigo:cirdan' -n cirdan -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  269.     "elrond"    f.exec "/usr/bsd/rsh elrond /usr/sbin/winterm -T 'Indigo:elrond' -n elrond -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  270.     "gildor"    f.exec "/usr/bsd/rsh gildor /usr/sbin/winterm -T 'Indigo:gildor' -n gildor -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  271.     "glaurung"    f.exec "/usr/bsd/rsh glaurung /usr/sbin/winterm -T 'Personal:glaurung' -n glaurung -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  272.     "nazgul"    f.exec "/usr/bsd/rsh nazgul /usr/sbin/winterm -T 'Personal:nazgul' -n nazgul -display $DISPLAY -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  273.     "smaug" f.exec "/usr/bsd/rsh smaug /usr/bin/X11/xterm +ut -T 'Personal:smaug' -n smaug -display $DISPLAY -rv -ls -sb -sk -sl 128 -bg sgigrey24 -fg sgigrey88 < /dev/null &"
  274. }
  275.  
  276.  
  277. Menu IbmMenu
  278. {
  279.     "muzgash"    f.exec "/usr/bsd/rsh muzgash /usr/bin/X11/xterm +ut -T 'IBM:muzgash' -n muzgash -display $DISPLAY -ls -sb -sk -sl 128 -fg midnightblue -bg lightgrey < /dev/null &"
  280. }
  281.  
  282.  
  283. Menu SessionCntrl
  284. {
  285.     "Session Control"        f.title
  286.     "Kill Application"  _K f.exec  "/usr/bin/X11/xkill"
  287.     "Set Behavior"      _B  f.set_behavior
  288.     "Restart"            _R    f.restart
  289.     no-label                f.separator
  290.     "Log Out"          _L    f.exec "/usr/bin/X11/endsession"
  291. }
  292.  
  293.  
  294.  
  295. ################################################################################
  296. #                                                                              #
  297. #                          ROOT MENU PANE DEFINITIONS                          #
  298. #                                                                              #
  299. ################################################################################
  300.  
  301. #
  302. # OSF Root Menu Description
  303. #
  304. Menu RootMenu
  305. {
  306.         "Root Menu"             f.title
  307.         "New Window"            f.exec "xterm &"
  308.         "Shuffle Up"            f.circle_up
  309.         "Shuffle Down"          f.circle_down
  310.         "Refresh"               f.refresh
  311.         no-label                f.separator
  312.         "Restart..."            f.restart
  313. }
  314.  
  315. #
  316. # SGI 4Dwm Root Menu Descriptions.
  317. #
  318. Menu 4DwmRootMenu
  319. {
  320.         "4D Window Manager"             f.title
  321.     "Log Out"          _L    f.exec "/usr/bin/X11/endsession"
  322. }
  323.  
  324. Menu 4DwmLongRootMenu
  325. {
  326.     "4D Window Manager"        f.title
  327. !    "New Window"          _N    f.exec "xterm &"
  328.     "Shuffle Up"          _U    f.circle_up
  329.     "Shuffle Down"          _D    f.circle_down
  330.     "Tidy Icons"          _T    f.pack_icons
  331.     "Minimize All"          _M    f.minimize_all
  332.     "Restore All"          _A    f.normalize_all
  333.     "Refresh All"          _f    f.refresh
  334.     no-label            f.separator
  335.     "Restart 4Dwm"          _R    f.restart
  336.     "Quit 4Dwm"          _Q    f.quit_mwm
  337.     no-label            f.separator
  338.     "Log Out"          _L    f.exec "/usr/bin/X11/endsession"
  339. }
  340.  
  341. ################################################################################
  342. #                                                                              #
  343. #                           WINDOW PANE DEFINITIONS                            #
  344. #                                                                              #
  345. ################################################################################
  346.  
  347. #
  348. # OSF Default Window Menu Description
  349. #
  350.  
  351. Menu DefaultWindowMenu
  352. {
  353.         Restore         _R      Alt<Key>F5      f.normalize
  354.         Move            _M      Alt<Key>F7      f.move
  355.         Size            _S      Alt<Key>F8      f.resize
  356.         Minimize        _n      Alt<Key>F9      f.minimize
  357.         Maximize        _x      Alt<Key>F10     f.maximize
  358.         Lower           _L      Alt<Key>F3      f.lower
  359.         no-label                                f.separator
  360.         Close           _C      Alt<Key>F4      f.kill
  361. }
  362.  
  363.  
  364. #
  365. # SGI 4Dwm Window Menu Description.
  366. #
  367.  
  368. Menu 4DwmWindowMenu
  369. {
  370.         Restore         _R      Alt<Key>F5      f.normalize
  371.         Move            _M      Alt<Key>F7      f.move
  372.         Size            _S      Alt<Key>F8      f.resize
  373.         Minimize        _n      Alt<Key>F9      f.minimize
  374.         Maximize        _x      Alt<Key>F10     f.maximize
  375.     Raise        _a    Alt<key>F1    f.raise
  376.         Lower           _L      Alt<Key>F3      f.lower
  377.         no-label                                f.separator
  378.         Close           _C                      f.kill
  379.         Quit            _Q                  f.quit_app
  380. }
  381.