Open jomifepe opened 1 year ago
Update:
com.apple.screenIsLocked
, but since this requires a listener, and Raycast extensions are short-lived, and menu bar commands have a refresh interval, this is not a viable optionlog show --style syslog --predicate "process == 'loginwindow'" --debug --info --last 1d | grep "sending unlock success" | tail -n 1
--last
parameter, and the higher the time range, the longer the command takes to execute. Also, because of this parameter, it's impossible to guarantee that we can always get the last lock (e.g. parameter of 1d
on a machine that hasn't been locked for a whole day).Update:
On system lock
option, and it's also using a listener (electron's powerMonitor
), so also a dead end (see last comment's 2.).
https://github.com/raycast/extensions/issues/4113