Thanks for taking an interest. Yes, I had the idea to add bluetooth too, removes the whole plugging and unplugging spiel. I might start work on that, and if anyone else wants to dive in and help, feel free. I will probably need to refactor the Listener a little, or create a USB and BT listener class.
Cheers On 11 April 2013 10:20, Dylan Evans <dy...@dje.me> wrote: > This looks cool, would actual be pretty useful. I see you did it as a usb > project but probably bluetooth would be better so you could just pair it to > your phone and know that your PC will lock when you walk away. > > > > On Tue, Apr 9, 2013 at 1:21 AM, Sven <sven...@gmail.com> wrote: > >> I've been working on a little project and have a working Linux >> implementation so far. Basically it allows a user to use any USB stick as a >> key to lock and unlock their computer. More info in the repo or PyPi >> https://pypi.python.org/pypi/USBLock >> >> Basically run the program with -a to add a device (added once you insert >> it), then run it without any arguments. Insert the key again, and when you >> remove it your computer will lock. Insert the key again and it will unlock. >> It's not intended to provide military grade security, it's more of a >> convenience tool to launch built in screen locking software. >> >> Currently it locks a Linux box with xlock, pending a better solution. >> >> I wrote it as an exercise in playing around with USB media and events, >> and also because I needed a use for these old USB keys I have lying around >> :) >> >> Always looking for contributions, suggestions and improvements. >> Especially OS X and Win support. >> >> Repo: >> https://github.com/Svenito/usblock >> >> Thanks for your time. >> >> -- >> ./Sven >> >> -- >> http://mail.python.org/mailman/listinfo/python-list >> >> > > > -- > "The UNIX system has a command, nice ... in order to be nice to the other > users. Nobody ever uses it." - Andrew S. Tanenbaum > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- ./Sven
-- http://mail.python.org/mailman/listinfo/python-list