Laptop lid behavior suspend/hibernate -> Locks screen #102
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the current implementation, the only way the lock screen appears:
There is no option to have it check for coming out of suspend/hibernate in general. Is this possible?
A C++ plugin can handle lid behavior. Then qml can pick this up.
I honestly don't know if that's possible directly from QML. If you can find a way then I'll gladly implement it, but the reason we have the
lock()IPC call is so that you can lock it whenever you want it to lock, meaning you can set up whatever your equivalent of a systemd service with a trigger is to call the lock method.I did some digging. I have two main options.
I like to write it myself if that is ok. It was suggested to write
cpp, but my preference would bezig. I'd write a package likezshell-elogind-lock/or similar. Would you be okay with zig in the project? In the end, it would be a binary that we'd end up using. What is your preference?Edit: Python is another option indeed in our current codebase.
In the end, it will be a
cppplugin which can be enabled or disabled. I will update the original issue to show criteria.lid-switch-behaviorto lid-switch-behavior@zach if you can assist.
Current issue I am facing is: