systemctl suspend & swaylock when lid is closed #1129
Unanswered
theamit-969
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Try it first, the bug is device specific. It might be fine on your end. Note It's convenient to just use the above method than using the systemd configuration Logind reference : |
Beta Was this translation helpful? Give feedback.
0 replies
-
I want to use this same post for a similar issue! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trigger when the switch is turning off, Might cause bugs. Recommend to use logind instead.
#bindl= , switch:on:Lid Switch, exec, swaylock && systemctl suspend
I have read this in .conf file but how to use logind so without commenting the command laptop goes automatically in systemctl suspend and sway lock
Beta Was this translation helpful? Give feedback.
All reactions