This is an overview of how I configured my system to play a sound when a USB device (such as a flash drive) is plugged in.
- Linux install with
udev
andsystemd
. - Root access.
- A utility to play sounds (I used
aplay
). - Sounds to play.
Using the tool aplay
(found in the Arch package alsa-utils
), it is easy to play an audio file: aplay insert.wav