trap failed commands to bombard your ears with random sounds
Find a file
2026-05-31 17:29:40 -04:00
audio add demo video 2026-05-31 17:20:24 -04:00
play_random.sh split into long/short files 2026-04-05 21:40:22 -04:00
README.md add github video to md 2026-05-31 17:29:40 -04:00

error-lobotomy

See the demo below: (VOLUME WARNING)

https://github.com/user-attachments/assets/704a48ee-df8f-44d9-9dd5-c15a7c8c2cd7

A small bash script to play a random sound when a command fails.

  • Only tested on Linux
  • Uses paplay to play audio files

Installation

  1. Clone the repo somewhere permanent on your filesystem
  2. Add/remove mp3 files of your choosing to/from the audio folder
    • Shorter sounds go in audio/short/ and longer ones go in audio/long/
  3. Add the following to your .bashrc, .zshrc, or equivalent:
    • Replace ~/Code/ with wherever you cloned the code
trap '~/Code/error-lobotomy/play_random.sh' ERR

None of the sound effects included are my own work