home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sun.admin:10876 comp.windows.x:21658 comp.windows.open-look:5183
- Newsgroups: comp.sys.sun.admin,comp.windows.x,comp.windows.open-look
- Path: sparky!uunet!europa.eng.gtefsd.com!emory!swrinde!cs.utexas.edu!torn!ryelect!elf
- From: elf@ee.ryerson.ca (luis fernandes)
- Subject: Re: How to determine frame buffer type on a Sun?
- Message-ID: <1993Jan28.184452.26467@ee.ryerson.ca>
- Keywords: X11, Xsun, XunMono
- Sender: news@ee.ryerson.ca
- Nntp-Posting-Host: eccles
- Organization: Ryerson Polytechnical Institute, Toronto
- References: <1993Jan28.031919.19698@mdd.comm.mot.com>
- Distribution: na
- Date: Thu, 28 Jan 1993 18:44:52 GMT
- Lines: 26
-
- tim@mdd.comm.mot.com (Tim Rosmus) writes:
- >
- >Has anybody got a little shell script or any type of program that
- >will return something that you can use to choose which X11 Server
- >to use on a Sun? Something like .....
- >
- I use the following to determine what to map on my background
- depending on the type of machine I log-in to (you can adapt
- it for your needs...):
-
- #!/bin/sh
- :
- :
- if [ `constype` = gx ]
- then
- #SPARCstation with GX card
- xview -onroot -colors 100 cindy
- elif [ `constype` = cg3 ]
- then
- #el cheapo SPARC
- xview -onroot -colors 100 cindy
- else
- #assume mono & display a mundane bitmap
- xsetroot -bitmap $HOME/bm/wings.bm
- fi
-
-