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 1OLTqW-0003n7-KE for garchives@archives.gentoo.org; Mon, 07 Jun 2010 04:21:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D5042E0C95; Mon, 7 Jun 2010 04:20:40 +0000 (UTC) Received: from mail2.pcorp.com.au (mail2.pcorp.com.au [150.101.72.19]) by pigeon.gentoo.org (Postfix) with ESMTP id 64645E0C95 for ; Mon, 7 Jun 2010 04:20:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail2.pcorp.com.au (Postfix) with ESMTP id 681B0A00010 for ; Mon, 7 Jun 2010 13:50:38 +0930 (CST) X-Virus-Scanned: amavisd-new at mail2.pcorp.com.au Received: from mail2.pcorp.com.au ([127.0.0.1]) by localhost (mail2.pcorp.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LFikGyQSQ0Na; Mon, 7 Jun 2010 13:50:37 +0930 (CST) Received: from [172.16.0.52] (unknown [172.16.0.52]) by mail2.pcorp.com.au (Postfix) with ESMTP id DB73FA0000E for ; Mon, 7 Jun 2010 13:50:37 +0930 (CST) Subject: Re: [gentoo-user] caps lock osd From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: <1275878500.25447.11.camel@localhost> References: <1275878500.25447.11.camel@localhost> Content-Type: text/plain; charset="ISO-8859-1" Date: Mon, 07 Jun 2010 13:48:43 +0930 Message-ID: <1275884323.25447.16.camel@localhost> 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.28.3.1 Content-Transfer-Encoding: 7bit X-Archives-Salt: a91d909f-006c-4126-aa90-be2d91a5af80 X-Archives-Hash: 2b3a2d85233d8b0e717d6d597f4f5442 On Mon, 2010-06-07 at 12:11 +0930, Iain Buchanan wrote: > Hi, > > is there a way to get the num lock, caps lock and scroll lock state > displayed in an OSD? Still looking for a good solution, but the best I've come up with so far is this: 1. add to .xbindkeysrc: "/home/iain/.bin/capstog" m:0x12 + c:66 Mod2 + Caps_Lock 2. /home/iain/.bin/capstog is simply: #!/bin/sh mkdir -p ~/.run/ if ( grep On ~/.run/capstog 1>/dev/null 2>&1 ) ; then echo Caps Off > ~/.run/capstog else echo Caps On > ~/.run/capstog fi 3. then run in another shell: tail -f .run/capstog 2>/dev/null | osd_cat --delay=1 --lines=1 --pos=bottom --offset=100 --indent=800 --shadow=3 --font=-*-times-*-*-*-*-34-*-*-*-*-*-*-* 4. finally run "xbindkeys" Now I get a "Caps On" and "Caps Off" message every time I press the caps lock. A lot of manual steps to get there though! Surely there's a tool to do this already?! -- Iain Buchanan I have never been one to sacrifice my appetite on the altar of appearance. -- A.M. Readyhough