Subject: Customizing Your Colors on RCS


Software Category:

system


Supported by:

Academic Computing Services, for Motif Window Manager only


Description:

You can change the color of various parts of your screen, such as the main background, window backgrounds, and title bars of windows.


Getting Started:

To change the background color of your screen, you can add an xsetroot command similar to the following to your .xrc file:

     xsetroot -solid NavyBlue (or other color)

In the above example, your screen background would now be NavyBlue.

Refer to the file /usr/lib/X11/rgb.txt for a list of other availabe color names. The numeric values to the left of each color in the file refer to the hexidecimal values of red, green, and blue that combine to make the specific color. You can use a similar technique to create your own colors; for example, you could include a commands similar to the following to your .xrc file:

     xsetroot -solid  #44446f

In this case, you have specified a color with equal amounts red and green (hex 44) and a greater amount of blue (hex 6f). The resulting color is somewhat darker than NavyBlue.

To change the background color for your UNIX Windows (which are of the class XTerm), you could add the line

     XTerm*background: white (or other color)

to your .Xdefaults file.

To change the color of your title bar, you would supply values for specific Mwm graphics characteristics, such as foreground or activeBackground. For example, you might add the following lines to your .Xdefaults file:

    Mwm*foreground: white

to set the color of your inactive window's text to white

    Mwm*background: grey

to set the color of your inactive window's title bar to grey

    Mwm*activeBackground: blue

to set the color of your active window's title bar to blue


Go to the Help Desk Consulting homepage.

Return to the Customizing page.

Go to the Accounts page.


Return to ACS home page.


Please send comments and suggestions to consult@rpi.edu