https://github.com/pe/locks
Format login / lock messages
https://github.com/pe/locks
Last synced: about 2 months ago
JSON representation
Format login / lock messages
- Host: GitHub
- URL: https://github.com/pe/locks
- Owner: pe
- Created: 2021-09-03T06:17:15.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-04-17T20:04:55.000Z (about 4 years ago)
- Last Synced: 2025-07-23T08:40:10.841Z (12 months ago)
- Language: Java
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Format login / lock messages
Read logs of macOS locks/unlocks. Group and format them for copy & paste into a time tracking spreadsheet.
```console
log show --predicate '(subsystem == "com.apple.login") && (category == "Logind_General") && (eventMessage beginswith "-[SessionAgent SA_SetSessionStateForUser:state:reply:]:536: state set to:")' --style compact --last 2d
```