| BUCKLE-X11(1) | User Commands | BUCKLE-X11(1) |
NAME¶
buckle-x11 - Nostalgia bucklespring keyboard sound, X11 flavour
SYNOPSIS¶
buckle-x11 [options]
DESCRIPTION¶
Buckle emulates the sound of an old IBM Model-M space saver bucklespring keyboard while typing within an X session.
It runs as a background process and plays back the sound of each key pressed and released on the keyboard, just as if using an IBM Model-M. The sound of each key has carefully been sampled, and is played back while simulating the proper distance and direction for a realistic 3D sound palette of pure nostalgic bliss.
This flavour grabs key events through X11, and therefore only reports keys typed within an X session. For Wayland compositors and for the console, see buckle-libinput(1).
The mouse clicks too: the buttons, and the scroll wheel, one click per detent. Use --no-click to silence it, or to silence only some of it.
A key held down long enough to repeat clicks for every repeat. The X server does not repeat the modifier keys, so holding shift stays quiet by itself.
Where it was built with the system tray, and there is a tray to put it in, an icon appears there. Its menu holds the two things worth one click, pausing and quitting, and an entry that opens the preferences window; rolling the wheel over the icon changes the volume without opening the menu at all. --no-tray leaves the icon out. It is a StatusNotifierItem, which KDE Plasma shows as it is and GNOME Shell shows through an extension; where nothing is listening there is simply no icon and nothing else changes.
Everything else -- the volume, the clip set, the audio device, the fallback sound, the headphone filter -- is in that window, and not in the menu: a menu on a tray icon travels over dbusmenu, which carries labels and check marks rather than widgets, so a volume there can only be a ladder of radio items and a device list has to be rebuilt as a submenu whenever it changes. It also means a desktop with nowhere to put the icon still has all of it. The running buckle-x11 puts the window up when it is asked: --preferences asks over the session bus and exits; that second invocation plays nothing and holds no sound device of its own. The desktop file carries the same thing as an action, named Bucklespring preferences, and SIGUSR1 does it too, for a keyboard shortcut with no dbus tooling in it. Closing the window leaves the clicks running.
Each key is played at a position of its own, left to right as it sits on the board, which --stereo-width scales. On headphones --hrtf runs that through OpenAL's head related transfer functions, which is the difference between a key sounding placed somewhere around you and merely panned between your ears. OpenAL left to itself does this only when it believes it is talking to headphones, and --hrtf=auto is that default; the preferences window offers the same three choices while running.
The samples live one set to a directory under /usr/share/bucklespring/clips, the Model M recordings the program began with being the set called bucklespring. --list-clips says which are installed and --clips picks one; the preferences window lists them too and switches between them as it runs, dropping the samples of the old set so that the new ones load as you type. -p still names a directory of wav files directly, for a set kept somewhere of its own. A set need not cover the whole keyboard, and -f then borrows a clip for the rest, nearest first: the set's own generic click, so that it still sounds like the set that was chosen; failing that the same key from the set shipped with the program, the right key on the wrong keyboard; failing that the shipped set's generic click. Without -f a key the set does not cover stays silent. The preferences window carries the same switch, and the systemd unit shipped with this program passes -f when it starts.
A set may hold more than one recording of the same key, named XX-Y-Z with Z counting from zero, and one is chosen at random for each press, which keeps a held or repeated key from sounding like a loop of a single click. A set with one recording per key names it XX-Y as before.
Clips are read with libsndfile(3), so a set may be flac, wav, ogg or opus, the first of those found for a key winning in that order. The set shipped with the program is flac, lossless and a little under half the size of the same samples as wav; ogg and opus are smaller again at the cost of being lossy. Anything with more than one channel is mixed down to mono, OpenAL positioning only single channel buffers.
OPTIONS¶
- --clips=NAME
- play the clip set NAME; --list-clips says which are installed
- -d, --device=DEVICE
- use OpenAL audio device DEVICE
- -f, --fallback-sound
- use a fallback sound for unknown keys
- -g, --gain=GAIN
- set playback gain [0..100]
- --hrtf[=WHEN]
- filter for headphones, so that keys sound placed around you rather than panned: on, off, or auto to leave it to OpenAL
- -m, --mute-keycode=CODE
- use CODE as mute key (default 0x46 for scroll lock)
- -M, --mute
- start the program muted
- -c, --no-click[=LIST]
- don't play a sound on mouse click; LIST narrows it to some of left, middle, right, side, extra, wheel, hwheel, all, none
- -h, --help
- show help
- --list-clips
- list the clip sets that are installed
- -l, --list-devices
- list available OpenAL audio devices
- --preferences
- open the preferences window of the running bucklespring
- -p, --audio-path=PATH
- load clips from the directory PATH
- -r, --no-repeat
- stay silent while a held key auto repeats
- --repeat-delay=MS
- wait MS before the first repeat, overriding what the compositor or the kernel says
- --repeat-rate=HZ
- make HZ repeats per second, likewise
- -s, --stereo-width=WIDTH
- set stereo width [0..100]
- --no-tray
- do not put an icon in the system tray
- -v, --verbose
- increase verbosity / debugging
- -V, --version
- show version and exit
AUTHOR¶
Written by Ico Doornekamp.
COPYRIGHT¶
Copyright © 2016-2025 Ico Doornekamp License GPLv2+: GNU
GPL version 2 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.
This manual page is generated from the output of buckle-x11 --help and --version by help2man(1), around wording written by Dominik George for the Debian project.
SEE ALSO¶
buckle-x11.service(8), buckle-libinput(1), update-alternatives(1)
| October 2026 | Bucklespring keyboard sound |