home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / ultrix / 8212 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.6 KB  |  49 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!think.com!spool.mu.edu!decwrl!decwrl!pa.dec.com!heiney
  3. From: heiney@pa.dec.com (Bob Heiney)
  4. Subject: Re: Changing root window on login screen
  5. Message-ID: <1992Nov10.175937.10276@PA.dec.com>
  6. Sender: news@PA.dec.com (News)
  7. Organization: Digital Equipment Corporation
  8. References: <1992Nov8.181630.5500@desire.wright.edu>
  9. Date: Tue, 10 Nov 92 17:59:37 GMT
  10. Lines: 37
  11.  
  12. In article <1992Nov8.181630.5500@desire.wright.edu>
  13. ejones@desire.wright.edu writes:
  14. >I saw a dicussion about replacing the Digital Logo on the login screen of
  15. >the Console of a DECstation to a custom design. I have tried what was
  16. >posted with success. But, I need to change the background of the root
  17. >window for the login screen to light grey.
  18.  
  19. Here is the PostScript I use to get a 50% gray background on my login screen.
  20. You might need to edit the screen width and height, as well as the screen DPIs,
  21. if you're not using a 1280x1024 graphics card.  The correct values to use can
  22. be obtained from the output of "xdpyinfo" (in the Unsupported MIT X Components
  23. subset).  Use the "dimension" and "resolution" fields of the screen output.
  24.  
  25. You should be able to just append the rest of the PostScript you're using.
  26.  
  27. -----> cut here <-----
  28. %!
  29.  
  30. /inch {72 mul} bind def
  31.  
  32. % screen dpi (horizontal and vertical)
  33. /hdpi 95 def
  34. /vdpi 95 def
  35.  
  36. % screen width and height
  37. /sw 1280 hdpi div inch def
  38. /sh 1024 vdpi div inch def
  39.  
  40. gsave
  41. .5 setgray 0 0 sw sh rectfill
  42. grestore
  43.  
  44. -- 
  45. Bob Heiney  ( heiney@pa.dec.com )
  46. Technical Consultant
  47. Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
  48. All opinions expressed are mine, and not necessarily those of my employer
  49.