home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8217 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.1 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!cert!netnews.upenn.edu!daniel.wharton.upenn.edu!lau
  2. From: lau@daniel.wharton.upenn.edu (Yan K. Lau)
  3. Newsgroups: comp.unix.ultrix
  4. Subject: Re: Changing root window on login screen
  5. Message-ID: <96990@netnews.upenn.edu>
  6. Date: 10 Nov 92 19:21:06 GMT
  7. References: <1992Nov8.181630.5500@desire.wright.edu> <1992Nov10.175937.10276@PA.dec.com>
  8. Sender: news@netnews.upenn.edu
  9. Organization: A Private Heaven
  10. Lines: 47
  11. Nntp-Posting-Host: daniel.wharton.upenn.edu
  12.  
  13. In article <1992Nov10.175937.10276@PA.dec.com> heiney@pa.dec.com (Bob Heiney) writes:
  14. >In article <1992Nov8.181630.5500@desire.wright.edu>
  15. >Here is the PostScript I use to get a 50% gray background on my login screen.
  16. >You might need to edit the screen width and height, as well as the screen DPIs,
  17. >
  18. >-----> cut here <-----
  19. >%!
  20. >
  21. >/inch {72 mul} bind def
  22. >
  23. >% screen dpi (horizontal and vertical)
  24. >/hdpi 95 def
  25. >/vdpi 95 def
  26. >
  27. >% screen width and height
  28. >/sw 1280 hdpi div inch def
  29. >/sh 1024 vdpi div inch def
  30. >
  31. >gsave
  32. >.5 setgray 0 0 sw sh rectfill
  33. >grestore
  34. >
  35. >-- 
  36. Since we are talking PostScript, I have found clippath to work and be screen
  37. size independent in writing the code:
  38.  
  39. newpath clippath 0 0 0 setrgbcolor fill 
  40.  
  41. gives a black background.  You can use the setgray on the grayscale.  I think
  42. the size of the area is affected by logoFullScreen: in the XSessionManager.
  43.  
  44. I have also used the pathbbox to find the extent of the area so I can center
  45. text between the left and right sides of the screen although the top and
  46. bottom distances are somewhat arbitrary since it is difficult to know where
  47. the login dialog box is.
  48.  
  49. I thought it was amusing that although the big DIGITAL logo is no longer
  50. there, DEC saw to it that it was on the screen; they just moved it into
  51. the login window.
  52.  
  53.  
  54. Yan.
  55. -- 
  56.           "I think we're both gonna make it *big*. I am very optimistic."
  57.    )~  Yan K. Lau          lau@desci.wharton.upenn.edu         128.91.11.226
  58.  ~/~   Decision Sciences    The Wharton School    University of Pennsylvania
  59.  /\    God/Goddess/All that is -- the source of love, light and inspiration!
  60.