Last active
July 29, 2022 13:54
-
-
Save rwp0/9fd83b909d3b50738b1d771aaa2bbf7a to your computer and use it in GitHub Desktop.
Debian GNOME Systemd: Don't Sleep on Locking the Lid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/logind.conf.d/lid.conf | |
HandleLidSwitch=lock | |
HandleLidSwitchDocked=ignore | |
HandleLidSwitchExternalPower=lock | |
# https://unix.stackexchange.com/a/628090/455788 | |
# systemctl restart systemd-logind | |
# kills Xorg/Wayland session | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment