'\"macro stdmacro
.if n .pH g1.xset @(#)xset	40.3 of 1/9/90
.nr X
.if \nX=0 .ds x} XSET 1 "9/1/88" "X\s-2WIN\s+2 3.0" "\&"
.if \nX=1 .ds x} XSET 1 "9/1/88" "X\s-2WIN\s+2 3.0"
.if \nX=2 .ds x} XSET 1 "" "\&"
.if \nX=3 .ds x} XSET "" "" "\&"
.TH \*(x}
.tr ~
.SH NAME
xset - user preference utility for X
.SH SYNOPSIS
.B xset
[-display \f2display\fP]
[-b] [b on/off] 
[b [\f2volume\fP [\f2pitch\fP [\f2duration\fP]
[-c] [c \f2volume\fP]
[fp= \f2path\fP,...] [fp \f2default\fP]
[fp \f2rehash\fP]
[[[-][+]fp] [fp[-][+]]] \f2path,...\fP 
[[-]led [\f2integer\fP]] [led on/off]
[m[ouse] [\f2acceleration\fP [\f2threshold\fP]]] [m[ouse] default]
[p \f2pixel\fP \f2color\fP]
[[-]r] [r on/off]
[s [\f2length\fP [\f2period\fP]]] [s blank/noblank]
[s expose/noexpose] [s on/off] [s default]
[q][query]
.SH DESCRIPTION
This program is used to set various user preference options of the display.
.SH OPTIONS
.PP
.TP 8
.B \-display \f2display\fP
This option specifies the server to use; see \f2X(1)\fP.
.PP
.TP 8
.B b
The \f3b\fP option controls bell volume, pitch, and duration.  It 
accepts up to three numerical parameters, a preceding dash (-), or an 
`on/off' flag.  
If the dash or `off' are given, the bell will be turned off.  If
only one numerical parameter is given, the bell volume will be set
to that value, as a percentage of its maximum.  Similarly, the
second numerical parameter specifies (in hertz) the bell pitch,
while the third numerical parameter specifies the duration in
milliseconds.  Note that not all hardware can vary the bell
characteristics.  The X server will set the characteristics of the
bell as closely as it can to the user's specifications.
.PP
.TP 8
.B c
The \f3c\fP option sets the key-click volume. Allowable range
is 0-100.
Note that not all hardware can vary key-click volume.
.TP 8
.B fp= \fIpath,...\fP
The \fBfp=\fP sets the font path to the directories given in the path argument.
The directories are interpreted by the server, not by the client, and are
server-dependent.  Directories that do not contain font databases created by
\fImkfontdir\fR will cause the server to return an error. This
could cause a protocol error.
.br
e.g.
xset fp= "/usr/lib/X11/fonts/Xol/,/usr/lib/X11/fonts/misc/,/usr
          /lib/X11/fonts/75dpi/,/usr/lib/X11/fonts/100dpi"
.TP 8
.B fp \fIdefault\fP
The \fIdefault\fP argument causes the font path to be reset to the server's
default.
.TP 8
.B fp \fIrehash\fP
The \fIrehash\fP argument causes the server to reread the font databases in
the current font path.  This is generally only used when adding new fonts to
a font directory (after running \fImkfontdir\fP to recreate the font database).
.TP 8
.B "\-fp \fRor\fP fp\-"
The \fB\-fp\fP and \fBfp\-\fP options remove elements from the current
font path.  They must be followed by a 
comma-separated list of directories terminated by a "/" slash.
e.g., xset -fp "/usr/lib/X11/fonts/100dpi/" removes the 100dpi
font directory from the server's current font path.
.TP 8
.B "\+fp \fRor\fP fp\+"
This \fB\+fp\fP and \fBfp\+\fP options prepend and append elements to the 
current font path, respectively.  They must be followed by a comma-separated 
list of directories.
.PP
.TP 8
.B led
The \f3led\fP option controls the keyboard LEDs.
This controls the turning on or off of one or all of the LEDs.
It accepts an optional integer, a preceding dash(-) or an `on/off' flag.
If no parameter or the `on' flag is given, all LEDs are turned on.
If a preceding dash or the flag `off' is given, all LEDs are turned off.
If a value between 1 and 32 is given, that LED will be turned on or off
depending on the existence of a preceding dash.
A common LED which can be controlled is the "Caps Lock" LED.  "xset
led 3" would turn led #3 on.  "xset -led 3" would turn it off.
The particular LED values may refer to different LEDs on different
hardware.  Note that not all hardware permits LED setting.
.PP
.TP 8
.B m
The \f3m\fP option controls the mouse parameters.
The parameters for the mouse are `acceleration' and `threshold'.
The mouse, or whatever pointer the machine is connected to,
will go `acceleration' times as fast when it travels more than `threshold'
pixels in a short time.  This way, the mouse can be used for precise
alignment when it is moved slowly, yet it can be set to travel across
the screen in a
flick of the wrist when desired.  One or both
parameters for the 
.B m
option can be omitted, but if only one is
given, it will be interpreted as the acceleration.
If no parameters or the flag `default' is used, the system defaults will
be set.
Note that not all hardware changes mouse parameters.
.PP
.TP 8
.B p
The \f3p\fP option controls pixel color values.
The parameters are the color map entry number in decimal,
and a color specification.  The root background colors may be changed
on some servers by altering the entries for BlackPixel and WhitePixel.
Although these are often 0 and 1, they need not be.  Also, a server may
choose to allocate those colors privately, in which case an error will
be generated.  The map entry must not be a read-only color,
or an error will result.
.PP
.TP 8
.B r
The \f3r\fP option controls the autorepeat.
If a preceding dash or the `off' flag is used, autorepeat will be disabled.
If no parameters or the `on' flag is used, autorepeat will be enabled.
Note that not all hardware allows autorepeat to change.
.PP
.TP 8
.B s
The \f3s\fP option lets you set the screen saver parameters.
This option accepts up to two numerical parameters, a `blank/noblank'
flag, an `expose/noexpose' flag, an `on/off' flag, or the `default' flag.
If no parameters or the `default' flag is used, the system will be set
to its default screen saver characteristics.
The `on/off' flags simply turn the screen saver functions on or off.
The `blank' flag sets the
preference to blank the video (if the hardware can do so) rather than
display a background pattern, while `noblank' sets the
preference to display a pattern rather than blank the video.
The `expose' flag sets the
preference to allow window exposures (the server can freely discard
window contents), while `noexpose' sets the preference to disable
screen saver unless the server can regenerate the screens without
causing exposure events.
The length and period
parameters for the screen saver function determines how long the
server must be inactive for screen saving to activate, and the period
to change the background pattern to avoid burn in.
The arguments are specified in seconds.  
If only one numerical parameter is given, it will be used for 
the length.  If a value lower than 30 seconds is used, this option
will reset to a 30-second minimum. 
.PP
.TP 8
.B q
The \f3q\fP option gives you information on the current settings.
.SH NOTE
These settings will be reset to default values when you log out.
.PP
The server will reset itself to its default settings if no clients
are currently active.
.PP
Note that not all X implementations are guaranteed to honor all of these
options.
.SH "SEE ALSO"
X(1), Xserver(1), xsetroot(1)
.\"ident	"@(#)xsetroot:xsetroot.man	1.1"

.\" xsetroot.man (Troff source file)
.\"	Acc: 573827267 Tue Mar  8 07:27:47 1988
.\"	Mod: 573142537 Mon Feb 29 09:15:37 1988
.\"	Sta: 573774704 Mon Mar  7 16:51:44 1988
.\"	Owner: 2011
.\"	Group: 1985
.\"	Permissions: 444


.\"	START USER STAMP AREA


.\"	END USER STAMP AREA

