Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.12 KB

File metadata and controls

26 lines (15 loc) · 1.12 KB

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

  • Python

  • 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 keypress.py

Yes, this was adopted from Sayan “Riju” Chakrabarti (sayanriju).

Good question, guess it just didn’t occur to me :)

The first time I looked at the code, I couldn’t really figure out what was going on. There was a senatra web server acting as a proxy that all the keypresses would go through which I didn’t understand. Not to say that wasn’t the correct approach, but it wasn’t the approach I needed/wanted. I did some looking on threading and tried my best at getting each call to aplay working so that there wasn’t a delay.

The original one that sayanriju made could, and this one will eventually.