Lock
Lock copied to clipboard
Monterey doesn't support CGSession
CGSession went away in Monterey. Alternatively, pmset sleepnow
puts the machine to sleep which is actually what I personally tend to prefer when walking away from the machine. pmset displaysleepnow
is also an alternative.
thanks for the PR @kdamball
I'll have to test how pmset
behaves on versions before Monterey
pmset
requires additional configuration/access to granted that can not be easily automated and CGSession support has been added to Monterey