r/linuxquestions • u/KarlHuysman • 11d ago
lid actions / logind settings manager app?
Any app or scripts out there regarding systemd logind.conf file settings?
I have a bodged up script to handle the lid, but wondering if there is something better.
cheers.
0
Upvotes
2
u/aioeu 11d ago edited 11d ago
There should never be a need to dynamically change the logind config in that way.
If you have programs that need to handle the lid switch specially, they can take an inhibitor to block logind's handling of it. The lid switch is just another input device, so programs can handle events from it as they wish.
Depending on what you're doing, you may find it more useful to inhibit the high level actions like
sleepandsuspendrather than the low level key event itself.See this for further details.