Graphics Xwin-Motif Q and A's


1. How do I change the tone and volume of the beep?
2. What are the minimum filesets needed for Xwindows?
3. When running xedit, which key is the meta key?
4. Where can I find the Xresources for applications?
5. How do I change the pointer configuration to a left handed mouse?
6. How do I set the display at login?
7. What are some options with the Xwindows Print Screen?
8. How do I check Xresources for an application?
9. How do I load Xresources via a command line?

1. How do I change the tone and volume of the beep?

To change the tone, volume, and/or duration of the beep, use the xset b command.

From the xset man page:

b or b on
Turns the bell on, which is the default setting. Take note, however, that all hardware is not able to vary the bell characteristics, but for that which can, all of the b flag permutations and its variables are available.
b [Volume [Pitch [Duration] ] ]
Specifies the bell volume, pitch, and duration. This flag accepts up to three numeric values.
Volume
If only one numeric is given, it is assumed to be volume. The bell volume is set to that numeric as a percentage of the bell's maximum possible volume, which is dependent on current hardware capabilities.
Pitch
The second numeric, in hertz values, is the tonal sound of the bell.
Duration
The third numeric, in milliseconds, is the length of time that the bell rings.
-b or b off
Turns the bell off.

2. What are the minimum filesets needed for Xwindows?

Suggested filesets for Xwindows.

X11.apps.all
X11.base.all
X11.compat.all
X11.fnt (selected filesets)
X11.motif.all

To run CDE, you will need:

X11.Dt.all

If you connect remotely (for example, a PC using Xemulator), you will need:

X11.fnt.fontServer

3. When running xedit, which key is the meta key?

You can map meta to any key. For example, enter the command:

	xmodmap -e "keysym Alt_L = Meta_L"

The preceding entry will map the meta key to the left Alt key. By pressing Alt-Q, you will be able to edit paragraphs in xedit.


4. Where can I find the Xresources for applications?

The Xresources for X applications are located in /usr/lib/X11/app-defaults.


5. How do I change the pointer configuration to a left handed mouse?

Enter:

	xmodmap -e "pointer = 3 2 1"

6. How do I set the display at login?

As long as the server can resolve the remote machine's short name correctly, the following line should work. However, this will not set your DISPLAY on the local machine.

Add the following line to the .profile of the account on the remote machine.

	export DISPLAY=`who -m | cut -f2 -d "(" | cut -f1 -d .`:0

7. What are some options with the Xwindows Print Screen?

To print the entire screen, enter:

                  xwd -root | xpr | lp -dps -     (ps is the name of the print queue)

To print only one window, enter:

	xwd | xpr | lp -dps -

Your cursor will turn into a crosshair. Using the crosshair, click on the window that you would like to print.

To do a screen capture to a file, enter:

	xwd -root > <filename.1>
or
	xwd > <filename.2>

To view this file, enter:

	xwud < <filename.1>

To print this file, enter:

	xpr < <filename.1> | lp -dps -

8. How do I check Xresources for an application?

Enter:

	
	appres <executable filename>
For example:
	appres xterm
The preceding command will list all of the current Xresource settings for a given executable.
9. How do I load Xresources via a command line?

Dtterm, Aixterm, and Xterm have an option that allow you to enter resource strings on the command line. The following line is an example:

	dtterm -xrm "*mwmDecorations:2" -xrm "Dtterm*menuBar:false"



[ Doc Ref: 97682163921816     Publish Date: Dec. 19, 2000     4FAX Ref: none ]