Skip to content

davidbernard04/lockunlock

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lockunlock

macOS script to display log in/out time

Display the date and time of macOS log messages associated with login, unlock, lock, and reboot. Output lines associated with lock or shutdown in red, green for login and unlock.

Usage:

lockunlock.sh {duration}

duration: passed directly to log show --last, default 1d; 1 day. Can be any number of minutes (m), hours (h), or days (d).

Tested to work on macOS 11.0 Big Sur, up to 13.0 Ventura.

Screenshot

Inspired by discussion at https://apple.stackexchange.com/questions/331589/any-way-to-get-the-last-times-the-screen-was-unlocked-in-macos/

About

macOS script to display log in/out time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%