home *** CD-ROM | disk | FTP | other *** search
- 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
- From: lau@daniel.wharton.upenn.edu (Yan K. Lau)
- Newsgroups: comp.unix.ultrix
- Subject: Re: Changing root window on login screen
- Message-ID: <96990@netnews.upenn.edu>
- Date: 10 Nov 92 19:21:06 GMT
- References: <1992Nov8.181630.5500@desire.wright.edu> <1992Nov10.175937.10276@PA.dec.com>
- Sender: news@netnews.upenn.edu
- Organization: A Private Heaven
- Lines: 47
- Nntp-Posting-Host: daniel.wharton.upenn.edu
-
- In article <1992Nov10.175937.10276@PA.dec.com> heiney@pa.dec.com (Bob Heiney) writes:
- >In article <1992Nov8.181630.5500@desire.wright.edu>
- >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,
- >
- >-----> 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
- >
- >--
- Since we are talking PostScript, I have found clippath to work and be screen
- size independent in writing the code:
-
- newpath clippath 0 0 0 setrgbcolor fill
-
- gives a black background. You can use the setgray on the grayscale. I think
- the size of the area is affected by logoFullScreen: in the XSessionManager.
-
- I have also used the pathbbox to find the extent of the area so I can center
- text between the left and right sides of the screen although the top and
- bottom distances are somewhat arbitrary since it is difficult to know where
- the login dialog box is.
-
- I thought it was amusing that although the big DIGITAL logo is no longer
- there, DEC saw to it that it was on the screen; they just moved it into
- the login window.
-
-
- Yan.
- --
- "I think we're both gonna make it *big*. I am very optimistic."
- )~ Yan K. Lau lau@desci.wharton.upenn.edu 128.91.11.226
- ~/~ Decision Sciences The Wharton School University of Pennsylvania
- /\ God/Goddess/All that is -- the source of love, light and inspiration!
-