Fixing Terminal Beep in Cinnamon Desktop

I recently started a new job where IRC is used internally. I installed irssi and configured it to “beep” when my nick is mentioned, but nothing would come out of the speakers. Even the beep command would fail. I have a theory that it’s due to the Macbook I use not having a “PC speaker”, but I’m not 100% sure as I managed to fix things pretty quicky using this train of thought. Here are the commands that fixed it.

I created a script with the following commands:

★ cat scripts/fedora/ 
# to load this script, put it in the cinnamon startup

pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell
pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY
xset b 100

I then configured Cinnamon to execute the script on startup. Beep fixed! For anyone wondering what the script does, it basically tells PulseAudio to emulate the X11 “bell” with an ogg file instead. xset tells the beep to be at 100% volume.