home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13236 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  2.2 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!dtix!mimsy!afterlife!adm!news
  2. From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re:  Screen background
  5. Message-ID: <32333@adm.brl.mil>
  6. Date: 3 Sep 92 14:10:11 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 92
  9.  
  10.  
  11.  
  12. ---------  Received message begins Here  ---------
  13.  
  14. |
  15. |Is there a simple way to have whatever picture I like as a screen background
  16. |on my IRIS 4D? Should I perhaps add something to my user.ps or startup.ps?
  17. |Thanx,
  18. |
  19. |Ricky (valente@sgi-4d.sissa.it)
  20. |
  21. |International School for Advanced Studies
  22. |Trieste, ITALY
  23.  
  24. See the man pages on xsetroot, and bgpaste ... enclosed is
  25. a script someone gave me that is kind of neat ... it will
  26. give you some ideas.
  27.  
  28.  
  29. Fred Phelan
  30. ---
  31. Fred Phelan
  32. fred@poly2.nist.gov
  33. /*___________________________________________________
  34.    ____ __  ___  __    ___       ___        ___ 
  35.   /__  /_/ /__  / /   /__/ /__/ /__   /    /__/ /\  /  
  36.  /    / ( /__  /_/   /    /  / /___  /___ /  / /  \/
  37. ___________________________________________________*/
  38.  
  39. ---------  weather  ---------
  40. #!/bin/csh -f
  41. # weather
  42. # Sets the background to the latest USA weather map.
  43. #
  44. # Original:
  45. # Ron Boisvert, NIST, 25 Jun 92
  46. #
  47. # Modified for SGI:
  48. # F.R. Phelan Jr.
  49. # NIST Polymers Division
  50. # September 1, 1992
  51. #
  52. #
  53. #Background info:
  54. #nslookup vmd.cso.uiuc.edu
  55. #Non-authoritative answer:
  56. #Name:    VMD.CSO.UIUC.EDU
  57. #Addresses:  128.174.5.98, 192.17.13.1
  58. #
  59.  
  60. #Default settings ...
  61. set NameOfThisScript = weather
  62. set infile = /usr/tmp/weather.$$.ftp
  63. set gif_file = /usr/tmp/weather.$$.GIF
  64. set rgb_file1 = /usr/tmp/weather.$$.rgb.1
  65. set rgb_file2 = /usr/tmp/weather.$$.rgb.2
  66.  
  67.  
  68. # Usage.
  69. if ($#argv == 0) then
  70.   echo 
  71.   echo $NameOfThisScript":"
  72.   echo "A script to paint the root background to the current weather map."
  73.   echo 
  74.   echo "Usage: $NameOfThisScript [any character]"
  75.   echo
  76.   exit 1
  77. endif
  78.  
  79. onintr cleanup
  80.  
  81. cat > $infile << END
  82. user anonymous
  83. cd wx
  84. binary
  85. get CVIS.GIF $gif_file
  86. bye
  87. END
  88.  
  89. ftp -n 128.174.5.98 < $infile
  90. fromgif $gif_file $rgb_file1
  91. izoom $rgb_file1 $rgb_file2 1.06 1.7
  92.  
  93. echo .......... Painting Root Window
  94. bgpaste -t 0 0 0 $rgb_file2
  95.  
  96. # give the machine some time to paste ...
  97. sleep 20
  98.  
  99. cleanup:
  100.  
  101.     rm -f $infile $gif_file $rgb_file1 $rgb_file2
  102.