Simple daemon for locking and unlocking macOS with Yubikey
Simple daemon for locking and unlocking macOS with Yubikey.
Via Homebrew formula:
brew tap shtirlic/yubikeylockd https://github.com/shtirlic/yubikeylockd
brew install shtirlic/yubikeylockd/yubikeylockd
When you attach Yubikey for the first time launchctl
will run yubikeylockd
daemon
that will simply monitor the state of the Yubikey USB devices.
Daemon based on the sample provided by Apple for IOKit development.
It does two things:
IOPMAssertionDeclareUserActivity
call to turn screen onIORequestIdle
to put display to sleep and (if you configured it) also locks the OS X