A MacOS status bar item to show today's screen time for roughly tracking work hours.
This is pretty much just an alternative display to System Preferencs/Screen Time
.
Uses macOS "Knowledge" SQLite database to find total app usage and displays in status bar with format of ##h ##m
.
Also, built without using xcode editor and only uses Swift Package Manager (SPM).
Tested on MacBook Pro M1 with macOS 12.6
# build
swift build
# run
swift run
# screentime.applescript
do shell script "swift run --package-path $PATH_TO_REPO"
# compile AppleScript command to macOS app
osacompile -o ScreenTime.app screentime.applescript
Go to System Preferences > Users & Groups > Login Items
, then press +
and add ScreenTime.app
.