home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / misc / 23452 < prev    next >
Encoding:
Internet Message Format  |  1993-01-01  |  6.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!uwvax!zazen!anderson
  2. From: anderson@macc.wisc.edu (Jess Anderson)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Loginwindow Dwrites
  5. Message-ID: <1993Jan1.161713.18721@macc.wisc.edu>
  6. Date: 1 Jan 93 16:17:13 GMT
  7. Sender: news@macc.wisc.edu (USENET News System)
  8. Organization: Madison Academic Computing Center, UW-Madison
  9. Lines: 155
  10.  
  11.  
  12. Here, I hope, is the quasi-definitive story on dwrites that
  13. affect the loginwindow.  I'm indebted to several people,
  14. notably Art Isbell, Kristian Koehntopp, Dan Danz, Louie
  15. Mamakos, John Kheit, Felix Lugo, and Paul Sears, for some of
  16. the information presented here.
  17.  
  18. Remember that dwrites are not supported by NeXT; they may
  19. change with any subsequent system release.  These I've
  20. checked out using 3.0; some or all may work with earlier
  21. releases, but I can't vouch for most of them.
  22.  
  23. All these dwrites must be done as root.  You can also run as
  24. root and use DefaultMgr to set them (which is a whole lot
  25. more convenient if you're intending to fiddle with some of
  26. them).
  27.  
  28. After setting the things you want, restart the WindowServer
  29. by logging out of the current session and typing exit<cr> on
  30. the login panel.
  31.  
  32. OK, here's what we know (or think we do :-):
  33.  
  34. dwrite loginwindow DefaultUser <login-name>
  35.  
  36.    Most new machines have <login_name> set to me.  This
  37.    dwrite logs in user <login_name> automatically.  User
  38.    <login_name> must not have a password set, hence *don't*
  39.    use this in a networked environment!
  40.  
  41. dwrite loginwindow HostName "<host_name>"
  42. dwrite loginwindow HostName localhost
  43.  
  44.    These cause your host name to appear on the login panel.
  45.    You need quote marks only if there's a space in the name.
  46.    The first form hard-codes the name into root's defaults
  47.    database.  The second form uses whatever name has been set
  48.    as localhost in NetInfo, which is convenient for
  49.    networked machines.
  50.  
  51.    The font, size, color, and position of the printed string
  52.    are not accessible (drat!).
  53.  
  54. dwrite loginwindow ImageFile <path/to/a/suitable.tiff>
  55.  
  56.    This uses the tiff image pointed to instead of the
  57.    standard one (in
  58.    /usr/lib/NextStep/loginwindow.app/English.lproj/nextlogin.tiff,
  59.    <language>.lproj as appropriate for your main language)
  60.    as the login panel.  Be sure you get the pointer right,
  61.    though, or you'll have to boot single-user to fix it.  In
  62.    practical terms, the image is constrained in various ways
  63.    I won't detail here.
  64.  
  65. dwrite loginwindow TimeToDim <integer_number>
  66.  
  67.    No relation to the dim time set by Preferences.  The
  68.    units are odd, I think.  Felix reported them as 1/34
  69.    second.  However, when I changed it to 1020, I got 15
  70.    seconds to dimming, and 680 gives 10 seconds, that I'm
  71.    sure of.  So I think the units are 1/68 second.  Maybe
  72.    Felix just thought it was too damn long!  We all know it
  73.    *seems* longer when you're not having fun waiting.  :-)
  74.    Whatever, the login screen dims to about half after this
  75.    length of time.
  76.  
  77. dwrite loginwindow MoveWhenIdle YES
  78.  
  79.    This causes the panel to move around approximately in
  80.    Backspace bouncing-off-the-walls-tiff fashion.  The point
  81.    is to avoid burning the screen phosphors, as a static
  82.    image would tend to do.  The animation is controlled by
  83.    the next couple dwrites.
  84.  
  85. dwrite loginwindow MovementTimeout <real_number>
  86.  
  87.    The units are seconds.  The panel starts moving (assuming
  88.    the preceding is set to YES) after this time.  If you set
  89.    it to be less than the TimeToDim time, the movement
  90.    starts before the dimming occurs.  I did not try zero.  I
  91.    can't stand waiting around for things to happen, so I use
  92.    10 seconds for both times.  The default appears to be 5
  93.    minutes.
  94.  
  95. dwrite loginwindow MovementScale <integer_number>
  96.  
  97.    No movement occurs if this is set to 1.  But it looks
  98.    like the units might be approximately pixels for each
  99.    change of position (the frequency of which is controlled
  100.    by the next dwrite).  If you put a big number here, say
  101.    200, the image moves in big jumps, but I don't know if
  102.    the 200 is divided up somehow between change in x- and
  103.    y-coordinates.  I wouldn't worry about it much, just set
  104.    it to something you like.  Since my image contains
  105.    readable text, I want it to scroll smoothly around, so I
  106.    use the apparently minimum value, 2.  The default appears
  107.    to be 10.
  108.  
  109. dwrite loginwindow MovementRate <real_number>
  110.  
  111.    The units are seconds.  The image jumps by the amount
  112.    above every this many seconds.  The default is 0.0666
  113.    seconds.  Bigger numbers mean slower motion.  Since I
  114.    don't like things being too jumpy or zooming around, I
  115.    set this to 0.1 seconds.  This makes my image ooze at a
  116.    pace befitting an elderly person like me.
  117.  
  118. The remainder of these I do not use, but am reporting them
  119. for the sake of completeness.
  120.  
  121. dwrite loginwindow PowerOffDisabled YES
  122.  
  123.    This makes it a little harder to turn the machine off;
  124.    you have to use the monitor or the minimonitor
  125.    (<right-command>-~) if it's set, rather than the <power>
  126.    key.
  127.  
  128. dwrite loginwindow LoginHook <path/to/loginhook/executable>
  129. dwrite loginwindow LogoutHook <path/to/logouthook/executable>
  130.  
  131.    Pointers to the login and logout hooks, if used.  It
  132.    should be pointed out that some of these things
  133.    (login/logout hooks, for example) are maybe more
  134.    logically set where the loginwindow is invoked by the
  135.    WindowServer, namely /etc/ttys.
  136.  
  137. There are yet others.  Here's the full list (thanks, Art):
  138.  
  139.    NXGetDefaultValue("loginwindow", "DebugHook") => 0x0
  140.    NXGetDefaultValue("loginwindow", "DryRun") => 0x0
  141.    NXGetDefaultValue("loginwindow", "WindowServerTimeout") => 0x0
  142.    NXRegisterDefaults("loginwindow", 0x16024)
  143.      KeyMapPath: 0x12d97 "~/Library/Keyboards:/LocalLibrary/Keyboards:/NextLibrary/Keyboards"
  144.      Keymap: 0x12de1 "/NextLibrary/Keyboards/USA"
  145.      SwappedKeymap: 0x12e0a "No"
  146.      LoginHook: 0x0
  147.      LogoutHook: 0x0
  148.      HostName: 0x0
  149.      ImageFile: 0x0
  150.      DefaultUser: 0x12e41 "me"
  151.      PowerOffDisabled: 0x0
  152.      TimeToDim: 0x12e69 "2040"
  153.      MoveWhenIdle: 0x12e0a "No"
  154.      MovementTimeout: 0x12e8b "300.0"
  155.      MovementRate: 0x12e9e "0.06666"
  156.      MovementScale: 0x12eb4 "10"
  157.  
  158. Goodness, this was more work than I planned on.  Enjoy the
  159. new year and long may the pennant of the Black Box wave.
  160.  
  161. -- 
  162. [Jess Anderson <> Madison Academic Computing Center <> University of Wisconsin]
  163. [Internet: anderson@macc.wisc.edu <-best, UUCP:{}!uwvax!macc.wisc.edu!anderson]
  164. [Room 3130 <> 1210 West Dayton Street / Madison WI 53706 <> Phone 608/262-5888]
  165. [---------> Discrimination, Bigotry, and Hate are not Family Values <---------]
  166.