home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / sgi / 13421 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

  1. Path: sparky!uunet!sun-barr!olivea!spool.mu.edu!umn.edu!noc.msc.net!uc.msc.edu!uf.msc.edu!wes
  2. From: wes@uf.msc.edu (Wes Barris)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: Screen Realestate on Indigo's
  5. Message-ID: <1992Sep9.153129.15622@uc.msc.edu>
  6. Date: 9 Sep 92 15:31:29 GMT
  7. References: <1992Sep8.211735.2839@den.mmc.com>
  8. Sender: netnews@uc.msc.edu (Network News)
  9. Reply-To: wes@msc.edu
  10. Organization: AHPCRC, Minnesota Supercomputer Center
  11. Lines: 43
  12.  
  13. In article <1992Sep8.211735.2839@den.mmc.com>, beck@ro.den.mmc.com (Fred R. Beck) writes:
  14. |> 
  15. |> My Question:    Is there a way to configure the .sgisession (or
  16. |>         .Xdefaults) file to recognize the resolution and
  17. |>         proportion the display area appropriately/auto-
  18. |>         matically.  (So that Joe's mailbox and calendar 
  19. |>         show up in the "right" places!)
  20. |> 
  21. |> 
  22. |> If anyone has any ideas, it would be greatly appreciated!
  23. |> 
  24. |>     -fred
  25.  
  26. From the 4Dgifts .xsession file...
  27.  
  28. # Call xdpyinfo and pipe it to awk looking for the pattern of dimensions.
  29. # Once awk finds the dimensions of the current screen, write the results to
  30. # a file called .xscreen to make the variable know to both the parent and
  31. # child shells.  You may want other shells and programs to know about it
  32. xdpyinfo | awk ' /dimensions/ {print "setenv XSCREEN " $2 > ".xscreen" }'
  33.  
  34. source .xscreen
  35. # pause for the source to take place
  36. wait &
  37.  
  38. # If there is the XSCREEN variable, then make the seperate tests for the
  39. # dimensions and call the correct Xdefault file.
  40.  
  41. if ($XSCREEN == '1024x768') then
  42.     if (-f /usr/people/4Dgifts/.Xdefaults_1024) then
  43.         xrdb -merge /usr/people/4Dgifts/.Xdefaults_1024 &
  44.     endif
  45. endif
  46. if ($XSCREEN == '1280x1024') then
  47.     if (-f /usr/people/4Dgifts/.Xdefaults_1280) then
  48.         xrdb -merge /usr/people/4Dgifts/.Xdefaults_1280 &
  49.     endif
  50. endif
  51.  
  52. -- 
  53. ===============================================================================
  54. Wes Barris                                                   PH: (612) 626-8090
  55. Minnesota Supercomputer Center                               Email: wes@msc.edu
  56.