-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] Lock screen #7
Comments
The code above worked like a charm on macOS Monterey with Apple silicon. 🙂 |
Windows:
|
I think it should be noted that this is a private API and I think it would cause your app to be rejected from the macOS app store -- this obviously doesn't matter for some use cases but definitely worth documenting. I wonder if maybe a better alternative would be to run a script that locks the screen instead. A very silly and unfortunate workaround but hey-ho that's Apple for ya. |
AppleScript
|
Linux implementation is a nightmare across desktop environments, so I won't go there, but just need to figure out function names on each of these DBUS endpoints that are already implemented
|
Is it possible for the user to change this key combo somehow, thereby breaking our script? |
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
The text was updated successfully, but these errors were encountered: