Skip to content
For when you want to make sounds when typing...
Python Ruby
Branch: master
Clone or download
Latest commit 919cc06 Feb 14, 2010
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Initial commit Feb 14, 2010
sounds Initial commit Feb 14, 2010
LICENSE Initial commit Feb 14, 2010
README.rdoc Initial commit Feb 14, 2010
linux-typewriter.rb Initial commit Feb 14, 2010

README.rdoc

Linux Typewriter

If you want to make some kind of screencast that features keyboard typing sounds, this might come in handy. Get the script, run linux-typewriter.rb and pump up your volume.

This is totally hacked-away, but it works for me. Your mileage may vary, though.

Requirements

  • Python, Ruby, Rubygems

  • python-xlib (On Debian-based, install with sudo apt-get install python-xlib)

  • aplay command line player, but you really can dump in anything you want, see linux-typewriter.rb

  • sinatra (sudo gem install sinatra)

Why this weird threading architecture with sinatra and python and stuff?

Simple: The aplay command is too slow when used directly from keypress.py, locking the process for a while. I am no python genius and have no idea how to establish a thread, and I do not care. It now makes a webrequest to the running sinatra app, which launches aplay in a separate thread, thus not locking the keypress listener anymore.

Copyrights

keypress.py by Sayan “Riju” Chakrabarti, Released under WTFPL Version 2 rants.sayanriju.co.cc/script-to-make-tick-tick-sound-on-keypress

  • Modifications by Christoph Olszowka

Keypress sounds extracted from 'keyboard-typing' by Anton at Freesound, www.freesound.org/samplesViewSingle.php?id=137

You can’t perform that action at this time.