Supercomputing Institute Scientific Development & Visualization Lab

X Defaults.

You may set default setting for many X-windows applications in the file .Xdefaults. You may set colors, fonts and more. Here are some sample settings.

winterm*foreground:    white
winterm*background:    black
winterm*boldColor:     darkred
xterm*font: 9x15
xterm*saveLines: 1024
emacs.reverseVideo: on
emacs.font: 9x15
The first two lines essentially set a window on an sgi workstation to reverse video, black background and white letters. The third line sets the bold color to red.

The next two lines set the font and the number of scroll lines saved on for an xterm, which is a window on the sun workstations.

The last two lines sets reverse video and the font for an emacs window.

Most resources are set by naming the application, followed by an '*' or a '.', followed by the name of the item (resource) that you want to set, followed by a ':' then the setting.

The fonts can have complicated names, but you can avoid the names by running xfontsel . Play with the settings, when you have a font that you like, press the "select" button. You may now use the middle mouse button to paste the selection into the file .Xdefaults. (If you are using the vi editor be sure you are in insert mode before you press the middle bouse button).

Run the program showrgb for a list of valid colornames. Unfortunately, this does not show you the colors, instead it shows you 3 numbers. If you are interested, the first number is the red component of the color, the second is the green and the last is the blue. White is 255 255 255, black is 0 0 0. Red1 is 255 0 0, darkred is 139 0 0. Notice that these reds have no blue or green component. Magenta which is red and blue mixed together is 255 0 255. Yellow, a mixture of red and green is 255 255 0. A less intense yellow, yellow3 is 205 205 0 and still has no blue, just less red and green.

For more settings, read the man pages for applications that you are running. Look for Xresources or Xdefaults.

This information is available in alternative formats upon request by individuals with disabilities. Please send email to alt-format@msi.umn.edu or call 612-624-0528.

HOME | QUESTIONS | FEEDBACK
Events | Links | People | Publications | Support | Welcome
 


URL: http://www.msi.umn.edu /sdvl/info/introX/xdefaults.html
This page last modified on Wednesday, 23-Apr-2008 11:06:51 CDT  
Please direct questions or problems to help@msi.umn.edu  
Website related questions or problems should be directed to webmaster@msi.umn.edu
The Supercomputing Institute does not collect personal information on visitors to our website. For the University of Minnesota policy, see www.privacy.umn.edu.