[comp.soft-sys.andrew] my menubar preferences

gk5g+@ANDREW.CMU.EDU (Gary Keim) (06/24/91)

I thought that I'd just post my menubar preferences so that those of you
with color monitors could have a starting place for configuring your
environment (and so you might be motivated to get on patch.10).  I set
colors based on whether or not I'm logged into my RS6K, rascal.

(rascal) gk5g> cat preferences
?M=rascal.andrew.cmu.edu:ez.foregroundcolor: black
?M=rascal.andrew.cmu.edu:ez.backgroundcolor: antiquewhite1
?M=rascal.andrew.cmu.edu:console.foregroundcolor: black
?M=rascal.andrew.cmu.edu:console.backgroundcolor: cornsilk
?M=rascal.andrew.cmu.edu:typescript.foregroundcolor: black
?M=rascal.andrew.cmu.edu:typescript.backgroundcolor: cornsilk3
?M=rascal.andrew.cmu.edu:messages.foregroundcolor: black
?M=rascal.andrew.cmu.edu:messages.backgroundcolor: cornsilk2

console.bodyfont: andysans12
?M=rascal.andrew.cmu.edu:ez.bodyfont: andysans14
?M=rascal.andrew.cmu.edu:messages.bodyfont: andysans14
?M=rascal.andrew.cmu.edu:messages-send.bodyfont: andysans14

messages.PopupMenuList: "",  "Other"
ez.PopupMenuList: "",  "Other"
*.PopupMenuList: ""
console.Menubar:off
*.Menubar:on
*.PopUpMenus:on
*.MenubarShadowDepth: 3
*.MenubarTitleFont: andysans14
?M=rascal.andrew.cmu.edu:*.MenubarItemFont: andysans14b

?M=rascal.andrew.cmu.edu:*.MenubarTitlesColor: black
?M=rascal.andrew.cmu.edu:*.MenubarTitleColor: black
?M=rascal.andrew.cmu.edu:*.MenubarBackgroundColor:#9db5cd
?M=rascal.andrew.cmu.edu:*.MenubarItemColor: #fce089
?M=rascal.andrew.cmu.edu:*.MenubarCardBackgroundColor:#9db5cd

*.MenubarGrayItemColor:grey80
*.MenubarGrayTitleColor:grey60

?M=rascal.andrew.cmu.edu:*.MenubarTopShadowColor: lightgrey
?M=rascal.andrew.cmu.edu:*.MenubarBottomShadowColor: grey

?M=rascal.andrew.cmu.edu:*.MenubarCardTopShadowColor: lightgrey
?M=rascal.andrew.cmu.edu:*.MenubarCardBottomShadowColor:grey

Have fun.
Gary Keim

ghoti+@ANDREW.CMU.EDU (Adam Stoller) (06/25/91)

Excerpts from internet.info-andrew: 24-Jun-91 my menubar preferences
Gary Keim (1824+0)

> ?M=rascal.andrew.cmu.edu:

I believe this can be more simply replaced with:

    ?C=rs:

"?C" is the same as:

    $ANDREWDIR/bin/sys -c

This way you don't have to list every machine of the same type in a
separate preference:

--fish

mcinerny+@ANDREW.CMU.EDU ("Michael J. McInerny") (06/25/91)

Excerpts from internet.info-andrew: 24-Jun-91 Re: my menubar preferences
Adam Stoller (316+0)

> Excerpts from internet.info-andrew: 24-Jun-91 my menubar preferences
> Gary Keim (1824+0)

>> ?M=rascal.andrew.cmu.edu:

> I believe this can be more simply replaced with:

>     ?C=rs:


Actually, what one really needs is a way to ask about the display (the
one pointed to by $DISPLAY): 

?DisplayClass=Color:...

or

?DisplaySize=1280x1024:...

or

?DisplayResolution=75:...


Does this seem like a reasonable proposal?

-Michael

nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (06/25/91)

Excerpts from internet.info-andrew: 24-Jun-91 Re: my menubar preferences
Michael McInerny@andrew. (514+0)

> Actually, what one really needs is a way to ask about the display (the
> one pointed to by $DISPLAY): 

> ?DisplayClass=Color:...

> or

> ?DisplaySize=1280x1024:...

> or

> ?DisplayResolution=75:...

> Does this seem like a reasonable proposal?

\begin{slipperyslope}

This reminds me a lot of the discussions that led to the "?M=", etc.
syntax in the first place.  Eventually, I added in a "?E=" (for things
dependent on environment variables) because the predefined things like
machine type & name were just not enough.  I'm not sure you want to
enumerate all the desired possibilities, either.  Instead, one
possibility is a more general mechanism in which a command is executed
and its exit status determines whether or not the preference should be
read.  For example:

?X=/u/nsb/bin/iscolor: some-preference

would execute the /u/nsb/bin/iscolor program and have some-preference
take effect only if it returns a non-zero value.  You might also want to
hardwire some of the more common ones, like the ones Mike mentions, but
there will be a never-ending stream of them.

However, this is (obviously) not very efficient.  But why do we need any
changes at all?  You can do the "right thing" today, with no code
changes, if you really want.  Add the code to .xinitrc that checks
whatever you want and sets an environment variable, e.g.

if (big-hairy-test) then
    setenv ISCOLOR 1
else
    setenv ISCOLOR 0
endif

and then have preferences of the form

?E=ISCOLOR=1: whatever

I believe that this approach will work for you today, without going any
further down the slippery slope of hard-wired preference options.... --
Nathaniel

henke@qt.ipa.fhg.de (Juergen Henke) (06/27/91)

Excerpts from atk: 24-Jun-91 my menubar preferences Gary
Keim@andrew.cmu.edu (1824+0)

> I thought that I'd just post my menubar preferences so that those of you
> with color monitors could have a starting place for configuring your
> environment (and so you might be motivated to get on patch.10).  I set
> colors based on whether or not I'm logged into my RS6K, rascal.

I've tried this on my DECstation 5000/200PX, unfortunately with a R3
based X Server (shame on you, DEC). The problem is now, that dialog
boxes are deep black...
On the Sparc (SunOS 4.1.1) it pops up in a bright blue with motifish
appearence. What can I do ?

	J|rgen

_________________________________________________________________________
Juergen Henke, e-mail juh@qt.IPA.FhG.de, PSI-mail PSI%4505016002::JUH_IPA
Fraunhofer-Institut f. Produktionstechnik u. Automatisierung
Nobelstrasse 12, D-7000 Stuttgart 80

janssen@parc.xerox.com (Bill Janssen) (06/27/91)

Yes, how can we turn off that lurid blue color in the dialog boxes, and
get back to the good old ATK-style dialog boxes?

Bill