Turn your Linux keyboard into a typewriter.
git clone https://github.com/Zombant/Typewriter.git
cd Typewriter
sudo make installNote: You must add the appropriate event number for your keyboard to typewriter.c before installing.
Your device event number can be found with cat /proc/bus/input/devices.
The -b flag allows the program to run after the terminal is closed
sudo -b typewriterTo specify a device:
sudo -b typewriter /dev/input/event2Note that this may not work if you don't have access to /dev/input. This is why it is run with sudo. However, the root user cannot produce sound with pulseaudio.
See the two workarounds below.
Run the following at the command line:
sudo killall typewriterIf the sound effects do not play with PulseAudio, try following the directions on the PulseAudio page on the Arch Wiki to start PulseAudio system-wide.
This is a bad idea so don't do it
As root, run (replacing event3 with the event for your device)
chmod o+r /dev/input/event3Now you do not have to run the typewriter as root
To undo this, run as root:
chmod o-r /dev/input/event3sudo make uninstall