xset
systemLinux/Unix
The xset command is one of the most frequently used commands in Linux/Unix-like operating systems. xset User preference utility for X Window System
Quick Reference
Command Name:
xset
Category:
system
Platform:
Linux/Unix
Basic Usage:
xset [options] [arguments]
Common Use Cases
Syntax
xset [options]
Options
Display Control Options
Option | Description |
---|---|
-display display |
Specifies which X display to use |
s [timeout] |
Set screen saver parameters. If timeout is 0, screen saver is disabled |
s [blank|noblank] |
Sets the preference for the screen saver to blank the video (or not) |
s [expose|noexpose] |
Sets the preference for the screen saver to expose (or not expose) the window |
s [on|off|default] |
Turns the screen saver on, off, or sets it to default |
s [timeout [cycle]] |
Sets the timeout and cycle parameters for screen saver |
+dpms |
Enables DPMS (Energy Star) features |
-dpms |
Disables DPMS (Energy Star) features |
dpms [standby [suspend [off]]] |
Sets DPMS timeout values in seconds |
dpms force [standby|suspend|off|on] |
Forces the monitor to immediately go into a specific DPMS mode |
Keyboard Control Options
Option | Description |
---|---|
c [on|off] |
Turns key-click on or off |
c [volume] |
Sets key-click volume (0-100) |
r [rate [delay]] |
Sets keyboard repeat rate (delay in ms, rate in Hz) |
r on|off |
Turns keyboard repeat on or off |
led [led-number] |
Turns the specified LED on or off (1-32) |
led on|off |
Turns all keyboard LEDs on or off |
m [accel [threshold]] |
Sets mouse acceleration and threshold |
m default |
Sets mouse acceleration and threshold to default values |
Bell Control Options
Option | Description |
---|---|
b [on|off] |
Turns bell on or off |
b [volume [pitch [duration]]] |
Sets bell volume (0-100), pitch (Hz), and duration (ms) |
Font Path Options
Option | Description |
---|---|
fp= path[,path...] |
Sets font path to the specified path(s) |
fp default |
Sets font path to default |
fp rehash |
Resets font path to its current value |
+fp path[,path...] |
Adds the specified paths to the front of the current font path |
-fp path[,path...] |
Removes the specified paths from the current font path |
Query and Miscellaneous Options
Option | Description |
---|---|
q |
Queries current settings |
q [option] |
Queries specific option setting (s, pointer, dpms, etc.) |
Examples
How to Use These Examples
The examples below show common ways to use the xset
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
# Disable screen saver
xset s off