Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.apps > #432

Re: Keyboard lock applet?

From Patrick <patrick2000@a2s46.webhop.net>
Newsgroups comp.os.linux.development.apps
Subject Re: Keyboard lock applet?
Date 2012-02-19 00:00 +0100
Organization TornevallNET - http://news.tornevall.net
Message-ID <jhpb1p$cmc$1@tornado.tornevall.net> (permalink)
References <jhlufe$716$1@rumours.uwaterloo.ca>

Show all headers | View raw


On 17.02.2012 17:15, Carlos Moreno wrote:
> Hi,
>
> I wonder if something like this exists? Like a lockscreen,
> except that it doesn't completely lock the system --- I want
> the screen to be visible and the mouse active, just with the
> keyboard disabled.
>
> If not available, would this be something easy to develop?
> What sort of information / documentation would I need to look
> up? (is it desktop environment specific? I mean, is it
> something that one would have to do specifically for, say,
> GNOME, and specifically for GNOME2 and separately for GNOME3?)
>
> BTW, in case you're wondering, there's a 1.5-year old wandering
> around the computers around here --- when I'm away, I lock screen;
> but when the little one is around and I'm, say, watching something,
> or using some application that can be used exclusively with mouse,
> I'd like a solution more practical than a hardware solution such
> as having to unplug the keyboard!
>
> Thanks for any tips,
>
> Carlos
> --

Ok, I had a great time tackling this! :-)

There is good changes that you're just a "wget deb-url && dpkg -i *.deb"
away from having this working. But I guess you're running an rpm-based
distro. Or pacman???

Otherwise install it, and start the "NoKeyboard" application.

It's not yet perfect, but should be usable.

Here you go:
  http://a2s46.webhop.net/nokeyboard_0.2.1_all.deb

Here is the source tree:
  http://a2s46.webhop.net/git/nokeyboard.git/tree
It can be cloned with git like this:
  git clone http://a2s46.webhop.net/git/nokeyboard.git

Now, what's missing: If you release the keyboard with 
<leftCtrl>-<rightCtrl>+<Escape> instead of through D-Bus, the service
is not stopped. But that doesn't actually matter. I should have merged
the two objects in nokeyboard-service.py to be able to easily do this.
Plus what is mentioned in TODO.

If you're looking for docs, I dropped some URLs in README.

Review & comments most welcome!

Have fun!

Back to comp.os.linux.development.apps | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Keyboard lock applet? Carlos Moreno <moreno_news@mailinator.com> - 2012-02-17 11:15 -0500
  Re: Keyboard lock applet? Patrick <patrick2000@a2s46.webhop.net> - 2012-02-17 22:42 +0100
  Re: Keyboard lock applet? Patrick <patrick2000@a2s46.webhop.net> - 2012-02-19 00:00 +0100
    Re: Keyboard lock applet? Carlos Moreno <moreno_news@mailinator.com> - 2012-02-19 18:56 -0500

csiph-web