Web page hosting and cheap domain registration & search engine ranking services
  

 

X Resources

[previous] [next] [table of contents] [index]

The X resource database is used as a repository of Preference settings, window positions, and definitions of fonts, colors, buttons, and menus. The information in the database can come from a variety of sources, which can be confusing. The default values come from the app-defaults file in the exmh script library directory. Color-specific resources are contained in the files app-defaults-color (for color displays) or app-defaults-mono (for monochrome). Each user also has a ~/.exmh-defaults file. To handle personal color-specific resources, exmh also reads your ~/.exmh-defaults-color or ~/.exmh-defaults-mono if they exist.

I don't recommend putting exmh-related resource settings in your ~/.Xdefaults file, although you can do that. If you do, be warned that values from the ~/.Xdefaults file and the RESOURCE_MANAGER property on the root window are overridden by entries in your ~/.exmh-defaults file.

The ~/.exmh-defaults file is divided into sections. The first section is for things you add by hand. The remaining sections are automatically managed by exmh. If you manually add settings to your ~/.exmh-defaults file, add entries to the beginning of this file. You won't lose your changes if you add them before this line:

!!! Do not edit below here

If a resource value has more than one word, you should not quote the value in the resource file. The next example shows how to specify these in your ~/.exmh-defaults file -- look at the entry for violet red. The leading asterisk (*) works around quirks in the way Tk names its applications -- different instances of the application have different names:

*scrollbarSide:	left
*c_current: violet red

Finally, if you are really serious about fiddling with resources, you should look through the app-defaults file. For one thing, there's no guarantee that the resource names used in this chapter, which correspond to version 1.5, will be exactly the same in later versions of exmh. Furthermore, there might be new goodies in future versions that aren't described here. Only by reading the app-defaults file of the current version will you be sure you've set things correctly in your ~/.exmh-defaults file. (Hint: To find the app-defaults file, read through the main exmh script for the definition of the exmh(library) Tcl variable, which defines the script library where app-defaults lives. The script is short; the definition is near the beginning.)

 

 

 

 
 

Disclaimers: This document is provided as free service for the benefits of Active-Venture.com's web hosting customers only.

 
Quotes: Where a government has come into power through some form of popular vote, fraudulent or not, and maintains at least an appearance of constitutional legality, the guerrilla outbreak cannot be promoted, since the possibilities of peaceful struggle have not yet been exhausted.Whenever death may surprise us, let it be welcome if our battle cry has reached even one receptive ear and another hand reaches out to take up our arms.There are no boundaries in this struggle to the death. We cannot be indifferent to what happens anywhere in the world, for a victory by any country over imperialism is our victory; just as any country's defeat is a defeat for all of us.The amount of poverty and suffering required for the emergence of a Rockefeller, and the amount of depravity that the accumulation of a fortune of such magnitude entails, are left out of the picture, and it is not always possible to make the people in general see this.Many will call me an adventurer - and that I am, only one of a different sort: one of those who risks his skin to prove his platitudes.Whoever, in middle age, attempts to realize the wishes and hopes of his early youth, invariably deceives himself. Each ten years of a man's life has its own fortunes, its own hopes, its own desires.Life belongs to the living, and he who lives must be prepared for changes.Fools and sensible men are equally innocuous. It is in the half fools and the half wise that the danger lies.Destiny grants us our wishes, but in its own way, in order to give us something beyond our wishes.We must learn to be still in the midst of activity and to be vibrantly alive in repose.There is certainly no absolute standard of beauty. That precisely is what makes its pursuit so interesting.The conventional view serves to protect us from the painful job of thinking.Power is not something that can be assumed or discarded at will like underwear.People are the common denominator of progress. So - no improvement is possible with unimproved people, and advance is certain when people are liberated and educated.Faced with the choice between changing one's mind and proving that there is no need to do so, almost everyone gets busy on the proof.It is a far, far better thing to have a firm anchor in nonsense than to put out on the troubled sea of thought.The world is full of willing people, some willing to work, the others willing to let them.