NAME
XBell — ring the bell.
SYNOPSIS
XBell(display, percent) Display ∗display; int percent;
ARGUMENTS
displaySpecifies a connection to an X server; returned from XOpenDisplay().
percentSpecifies the volume for the bell, relative to the base volume set with XChangeKeyboardControl(). Possible values are −100 (off), through 0 (base volume), to 100 (loudest) inclusive.
DESCRIPTION
Rings the bell on the keyboard at a volume relative to the base volume, if possible. percent can range from −100 to 100 inclusive (else a BadValue error). The volume at which the bell is rung when percent is nonnegative is:
volume = base - [(base ∗ percent) / 100] + percent and when percent is negative:
volume = base + [(base ∗ percent) / 100]
To change the base volume of the bell, set the bell_percent variable of XChangeKeyboardControl().
ERRORS
BadValuepercent < −100 or percent >100.
SEE ALSO
XAutoRepeatOff(), XAutoRepeatOn(), XChangeKeyboardControl(), XGetDefault(), XGetKeyboardControl(), XGetPointerControl().
Xlib Reference Manual