Code Monkey home page Code Monkey logo

linux-typewriter's Introduction

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

linux-typewriter's People

Contributors

colszowka avatar

Watchers

Yi Xianfu avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.