home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!uf.msc.edu!wes
- From: wes@uf.msc.edu (Wes Barris)
- Newsgroups: comp.sys.sgi
- Subject: Re: Screen Realestate on Indigo's
- Message-ID: <1992Sep9.153129.15622@uc.msc.edu>
- Date: 9 Sep 92 15:31:29 GMT
- References: <1992Sep8.211735.2839@den.mmc.com>
- Sender: netnews@uc.msc.edu (Network News)
- Reply-To: wes@msc.edu
- Organization: AHPCRC, Minnesota Supercomputer Center
- Lines: 43
-
- In article <1992Sep8.211735.2839@den.mmc.com>, beck@ro.den.mmc.com (Fred R. Beck) writes:
- |>
- |> My Question: Is there a way to configure the .sgisession (or
- |> .Xdefaults) file to recognize the resolution and
- |> proportion the display area appropriately/auto-
- |> matically. (So that Joe's mailbox and calendar
- |> show up in the "right" places!)
- |>
- |>
- |> If anyone has any ideas, it would be greatly appreciated!
- |>
- |> -fred
-
- From the 4Dgifts .xsession file...
-
- # Call xdpyinfo and pipe it to awk looking for the pattern of dimensions.
- # Once awk finds the dimensions of the current screen, write the results to
- # a file called .xscreen to make the variable know to both the parent and
- # child shells. You may want other shells and programs to know about it
- xdpyinfo | awk ' /dimensions/ {print "setenv XSCREEN " $2 > ".xscreen" }'
-
- source .xscreen
- # pause for the source to take place
- wait &
-
- # If there is the XSCREEN variable, then make the seperate tests for the
- # dimensions and call the correct Xdefault file.
-
- if ($XSCREEN == '1024x768') then
- if (-f /usr/people/4Dgifts/.Xdefaults_1024) then
- xrdb -merge /usr/people/4Dgifts/.Xdefaults_1024 &
- endif
- endif
- if ($XSCREEN == '1280x1024') then
- if (-f /usr/people/4Dgifts/.Xdefaults_1280) then
- xrdb -merge /usr/people/4Dgifts/.Xdefaults_1280 &
- endif
- endif
-
- --
- ===============================================================================
- Wes Barris PH: (612) 626-8090
- Minnesota Supercomputer Center Email: wes@msc.edu
-