From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OlVPz-0000eP-Ew for garchives@archives.gentoo.org; Tue, 17 Aug 2010 23:18:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF01AE08D0; Tue, 17 Aug 2010 23:17:24 +0000 (UTC) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by pigeon.gentoo.org (Postfix) with ESMTP id C1774E08E6 for ; Tue, 17 Aug 2010 23:17:24 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id A44D918A for ; Tue, 17 Aug 2010 19:17:24 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Tue, 17 Aug 2010 19:17:24 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:content-transfer-encoding; s=smtpout; bh=P8KzbsrBpizdUcAMIona26hQI9U=; b=KzO+9OkBS7DuRcxOTEoiLBboBPyatm46DkutCOkoO0yP69QpLOTxgCKkW1I5I1LRqSG6FDu1XzRMOHmtMe26WMomeiaT3y26W+fZrcZSoTKVXLWgan/osAfJmZbsoPCbFvyhwe+hQ43dNC3JpVdBgQUrqNqwCyEExQbnq8K3qF0= X-Sasl-enc: nWd9D14guDf2wi2otj9KgG0w1NeGJWgEViYrxEbhEIW+ 1282087044 Received: from [192.168.31.28] (cpe-069-134-182-167.nc.res.rr.com [69.134.182.167]) by www.fastmail.fm (Postfix) with ESMTPSA id 71DCC5E4751 for ; Tue, 17 Aug 2010 19:17:24 -0400 (EDT) Subject: Re: [gentoo-user] Typewriter sound From: Albert Hopkins To: gentoo-user@lists.gentoo.org In-Reply-To: References: <20100817172005.GA5110@solfire> Content-Type: text/plain; charset="UTF-8" Date: Tue, 17 Aug 2010 19:17:23 -0400 Message-ID: <1282087043.456104.6.camel@paska> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 5f1ee504-c6d5-4e6e-8915-13677dad17b1 X-Archives-Hash: 04f1191e539fa91707c9cbc8f2b24ccd On Tue, 2010-08-17 at 17:14 -0500, Paul Hartman wrote: > I have not tried it, but a Google search showed me this: > http://github.com/colszowka/linux-typewriter > > BTW - I have Unicomp keyboards (modern version of IBM Model M) and > they are loud and awesome ;) > This is a weird script. It's a ruby script that creates a web server, but the web server listens for... It runs a python script that uses python-xlib to listen for key presses, and when a key is pressed it uses curl to open the connection to the ruby script.. when the ruby script receives a request it plays a sound. So really it's the Python script that's doing all the work... If you can just try downloading the python script[1] and replacing 'curl http://localhost:4567/key' with 'aplay myfile.wav' [1] http://github.com/colszowka/linux-typewriter/blob/master/bin/keypress.py