This is a little Python script that plays a random sound whenever a key is pressed/released. Specifically, I sampled my CMStorm Quickfire TK with Blue Cherry switches.
Use it to annoy people when you don't have a mechanical keyboard with you.
To install dependencies (on Debian Jessie):
$ sudo apt-get install python-xlib python-sdl2
On Ubuntu <= 14.10 python-sdl2
is not in the repo, so:
$ sudo apt-get install python-xlib pip libsdl2-mixer-2.0-0
$ sudo pip install PySDL2
$ ./softmech.py
If you want to add your own sounds just put them in a folder and change the sounddir
variable.
Sounds to be played on KeyDown must end with "down.wav", sounds to be played on KeyUp must end with "up.wav"