<div dir="ltr"><div style>Thanks for taking an interest.</div><div><br></div>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.<div>
<br></div><div style>Cheers</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 April 2013 10:20, Dylan Evans <span dir="ltr"><<a href="mailto:dylan@dje.me" target="_blank">dylan@dje.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>

<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Apr 9, 2013 at 1:21 AM, Sven <span dir="ltr"><<a href="mailto:svenito@gmail.com" target="_blank">svenito@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>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 <a href="https://pypi.python.org/pypi/USBLock" target="_blank">https://pypi.python.org/pypi/USBLock</a></div>


<div><br></div><div>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.</div>


<div><br></div><div>Currently it locks a Linux box with xlock, pending a better solution.</div><div><br></div><div>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 :)</div>


<div><br></div><div>Always looking for contributions, suggestions and improvements. Especially OS X and Win support.</div><div><br></div><div>Repo: </div><a href="https://github.com/Svenito/usblock" target="_blank">https://github.com/Svenito/usblock</a><div>


<br></div><div>Thanks for your time.<span><font color="#888888"><br clear="all"><div><br></div>-- <br>./Sven
</font></span></div></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>"The UNIX system has a command, nice ... in order to be nice to the other users. Nobody ever uses it." - Andrew S. Tanenbaum</div>

</font></span></div>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>./Sven
</div>