And finally, it would be cool if we could lock the computer as well 🔒
macOS implementation
extern void SACLockScreenImmediate();
int main() {
SACLockScreenImmediate();
return 0;
}
clang -F /System/Library/PrivateFrameworks -framework login -o lockscreen lockscreen.c
And finally, it would be cool if we could lock the computer as well 🔒
macOS implementation
clang -F /System/Library/PrivateFrameworks -framework login -o lockscreen lockscreen.c