home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!think.com!spool.mu.edu!decwrl!decwrl!pa.dec.com!heiney
- From: heiney@pa.dec.com (Bob Heiney)
- Subject: Re: Changing root window on login screen
- Message-ID: <1992Nov10.175937.10276@PA.dec.com>
- Sender: news@PA.dec.com (News)
- Organization: Digital Equipment Corporation
- References: <1992Nov8.181630.5500@desire.wright.edu>
- Date: Tue, 10 Nov 92 17:59:37 GMT
- Lines: 37
-
- In article <1992Nov8.181630.5500@desire.wright.edu>
- ejones@desire.wright.edu writes:
- >I saw a dicussion about replacing the Digital Logo on the login screen of
- >the Console of a DECstation to a custom design. I have tried what was
- >posted with success. But, I need to change the background of the root
- >window for the login screen to light grey.
-
- Here is the PostScript I use to get a 50% gray background on my login screen.
- You might need to edit the screen width and height, as well as the screen DPIs,
- if you're not using a 1280x1024 graphics card. The correct values to use can
- be obtained from the output of "xdpyinfo" (in the Unsupported MIT X Components
- subset). Use the "dimension" and "resolution" fields of the screen output.
-
- You should be able to just append the rest of the PostScript you're using.
-
- -----> cut here <-----
- %!
-
- /inch {72 mul} bind def
-
- % screen dpi (horizontal and vertical)
- /hdpi 95 def
- /vdpi 95 def
-
- % screen width and height
- /sw 1280 hdpi div inch def
- /sh 1024 vdpi div inch def
-
- gsave
- .5 setgray 0 0 sw sh rectfill
- grestore
-
- --
- Bob Heiney ( heiney@pa.dec.com )
- Technical Consultant
- Digital Equipment Corporation, US Desktop Sales, Palo Alto, CA
- All opinions expressed are mine, and not necessarily those of my employer
-