From: Iain Buchanan <iaindb@netspace.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] caps lock osd
Date: Mon, 07 Jun 2010 13:48:43 +0930 [thread overview]
Message-ID: <1275884323.25447.16.camel@localhost> (raw)
In-Reply-To: <1275878500.25447.11.camel@localhost>
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 <iaindb at netspace dot net dot au>
I have never been one to sacrifice my appetite on the altar of appearance.
-- A.M. Readyhough
prev parent reply other threads:[~2010-06-07 4:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-07 2:41 [gentoo-user] caps lock osd Iain Buchanan
2010-06-07 4:18 ` Iain Buchanan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275884323.25447.16.camel@localhost \
--to=iaindb@netspace.net.au \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox