4 ms·
I've got a simple USB watching script (with hammerspoon) to lock my computer when I remove my yubikey. I just yank the yubikey and go. I also have it iMessage
by ojkelly 10y ago
I've got a simple USB watching script (with hammerspoon) to lock my computer when I remove my yubikey. I just yank the yubikey and go.
I also have it iMessage me when it's removed. In case someone else grabs it when I'm not near it.
I also have it wake up the screen when I plug it in, combined with Knock I can get in and out of my computer quickly and easily.
- cmsj 10y agovery nice ideas!
- sandtrip 10y agowould love to see that.
- escherize 10y agoYeah - code or it doesn't exist!
- iamdave 10y agoPlease share this? Would love to have something like this for as often as I'm pulled away from my desk
- ojkelly 10y agoHere's the gist: https://gist.github.com/ojkelly/45dda0a5a7066c6a79a038ece8bde55a https://gist.github.com/ojkelly/45dda0a5a7066c6a79a038ece8bd... In the original post, I left out that I also have a usb LED sign [1] that I also have programmed, so people know when they can and cannot interrupt me. Again controlled with hammerspoon and my yubikey. [1] http://dreamcheeky.com/led-message-board http://dreamcheeky.com/led-message-board
- tra3 10y agoFantastic idea! One day I hope this will be replaced by me walking away (with my phone) for more than X meters. Meanwhile, this seems like a great solution. What else do you use the ubikey for?
- fanf2 10y agoThis reminds me of the pull request I did for Hammerspoon to allow your scripts to watch more screen lock and user switching events. My goal was to delete keys from the ssh-agent when the screen locks or the computer suspends. http://fanf.livejournal.com/139925.html http://fanf.livejournal.com/139925.html