LinuxCommandLibrary

xkbbell

Control the keyboard bell sound

SYNOPSIS

xkbbell [-help] [-version] [-display display] [-volume percent] [-pitch frequency] [-duration milliseconds] [-default] [-off] [-on]

PARAMETERS

-help
    Display a summary of the command's options.

-version
    Display the version of the program.

-display display
    Specify the X display to use. Defaults to the value of the DISPLAY environment variable.

-volume percent
    Set the bell volume to the specified percentage (0-100).

-pitch frequency
    Set the bell pitch to the specified frequency (Hz).

-duration milliseconds
    Set the bell duration to the specified milliseconds.

-default
    Reset the bell settings to their default values.

-off
    Disable the bell.

-on
    Enable the bell (using current or default settings).

DESCRIPTION

The xkbbell command allows users to configure the audible bell (beep) of the X keyboard. It provides options to control the bell's volume, pitch, and duration. This utility is primarily useful in environments where audible feedback is desired for certain keyboard events, such as errors or warnings. xkbbell can be used to customize the bell sound to be more pleasant or less disruptive, or to disable the bell entirely.

The command interacts with the X Keyboard Extension (XKB) to modify bell-related settings. It is often used in conjunction with other X configuration tools to create a personalized desktop environment. This simple tool contributes to the overall accessibility and usability of the X Window System. While modern graphical environments often provide their own bell customization options, xkbbell offers a command-line alternative that can be useful for scripting and remote management.

EXAMPLES

xkbbell -off: Disables the keyboard bell.
xkbbell -volume 50 -pitch 1000 -duration 200: Sets the volume to 50%, pitch to 1000Hz, and duration to 200ms.
xkbbell -default: Resets the bell settings to default.

SEE ALSO

xset(1)

Copied to clipboard