Skip to content

Instantly share code, notes, and snippets.

View croddy's full-sized avatar

Chris Roddy croddy

View GitHub Profile
@croddy
croddy / unbreak-bell.sh
Last active May 17, 2024 15:49
unbreak your X11 bell with pulseaudio
#!/bin/bash
# allegedly these bits can be done in a per-user default.pa, but i could not
# get it to work
pactl upload-sample /home/cmr/sounds/bells/soothingbell.wav soothingbell
pactl load-module module-x11-bell sample=soothingbell
# the default bell volume on my system is very quiet, but you should adjust this
xset b 100
# ...but the default output volume on my system is very loud. allegedly this can
# also be done in default.pa, but i could not get it to work even with pactl.
amixer -D pulse sset Master 50%