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 1OlVKU-0000JU-9C for garchives@archives.gentoo.org; Tue, 17 Aug 2010 23:12:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CC70E0864; Tue, 17 Aug 2010 23:11:57 +0000 (UTC) Received: from mail-pz0-f53.google.com (mail-pz0-f53.google.com [209.85.210.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 4E304E0864 for ; Tue, 17 Aug 2010 23:11:57 +0000 (UTC) Received: by pzk9 with SMTP id 9so3560224pzk.40 for ; Tue, 17 Aug 2010 16:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=EzftBwFW4Y/q/afWuHw7uBFedebkyhKNOyVigN0Jthw=; b=jzCieGu6XEijb+qfXnhfvZkbVVtRiRk//8fPce6CLC92y3TBnMtpfg9E2vwJ8LV/Kz yrLCLLVrkwSVRUPjYrJQPrl2QSJ0RZJA5vpDqpOBDH9+gPAnVWndAf+YUVywXACblRDO He2h972iw7bu9nY1vzdUeHuNcWG9g6TLH7qjI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=sXKQGShAxJ+EK2bcPctoeIDtVoCzzSHSNVGfJWx62UA/h8iXIaPOfc73YCZZZDEEJk 6zpObopwajIRhz38Qiu6SGVG4EcrTUUuUQnlsJHPnOPGYkNpz1YeFXpE5U7P0kqn+tUl sYkaZvcu9yTOzlnl6bMQn2k4PayWuzTWkA/2A= Received: by 10.114.94.10 with SMTP id r10mr8690957wab.19.1282086716583; Tue, 17 Aug 2010 16:11:56 -0700 (PDT) Received: from [192.168.0.12] ([209.20.133.224]) by mx.google.com with ESMTPS id d38sm15256835wam.8.2010.08.17.16.11.54 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 16:11:55 -0700 (PDT) Message-ID: <4C6B1732.2030505@gmail.com> Date: Tue, 17 Aug 2010 16:11:46 -0700 From: Bill Longman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100817 Lightning/1.0b2pre Thunderbird/3.1.1 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Typewriter sound References: <20100817172005.GA5110@solfire> <20100817184309.GA9068@solfire> <1282073645.451766.13.camel@paska> <201008172244.55311.michaelkintzios@gmail.com> In-Reply-To: <201008172244.55311.michaelkintzios@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c6a6d1cb-9254-4fae-abdd-d2dd65e415a5 X-Archives-Hash: d805d761388a91d4804efe1e63d34cc6 On 08/17/2010 02:44 PM, Mick wrote: > On Tuesday 17 August 2010 20:34:05 Albert Hopkins wrote: >> On Tue, 2010-08-17 at 20:43 +0200, meino.cramer@gmx.de wrote: >>> Bill Longman [10-08-17 20:16]: >>>> On 08/17/2010 10:56 AM, Albert Hopkins wrote: >>>>> On Tue, 2010-08-17 at 19:20 +0200, meino.cramer@gmx.de wrote: >>>>>> Hi, >>>>>> >>>>>> on YouTube there was a Blender-2.5 tutorial with audio. >>>>>> There was an interesting detail: While there were spoken >>>>>> instructions one can hear one typing on its keyboard. >>>>>> Each hit on one of the keys made the sound of an old >>>>>> typewriter (no, it was not the sound of the legendary >>>>>> "IBM Model M" keyboard ;) ). >>>>>> =20 >>>>>> How can I achieve this? >>>>>> What software can I use to make this geeky feature to >>>>>> come true. >>>>>> Unfortunately I have no idea, how to name this kind >>>>>> of what(?) ... >>>>>> =20 >>>>>> Thank you very much for any hint in advance! >>>>>> Best regards, >>>>>> mcc >>>>> >>>>> There probably a number of ways to do this. >>>>> >>>>> A cheap and easy way would be to use xev to monitor a window and th= en >>>>> pipe the stderr to a a program that waits for a keypress event and >>>>> then plays an apropriate. >>>>> >>>>> A less cheap way would be to have our program do what xev does >>>>> instead of using a pipe. >>>> >>>> Or you could set your X keyclick using xset. >>> >>> Hi, >>> >>> thanks a lot for your replies! :) >>> Is there any program already, which does this? >>> A daemon or... >>> =20 >>> Best regards, >>> mcc >> >> Well I found out that when you pass window id to xev it does not trap >> keyboard presses per-s=C3=A9. But there is another way... >> >> Anway the following is a quick hack (in python). It pretty much works >> except it also seems to trap mouse presses. I got the .wav file at >> http://www.soundjay.com/typewriter-sounds.html >> >> I tried using 'xset c' but it basically does nothing for me. My guess >> is that it does work it basically sends the a BELL to the console. My thinking was that you could enable the system bell through the sound system (there's a kernel setting for it) and then just change the sound to whatever the typewriter sound is. Kinda cruddy, but it might be worth trying....