Skip to content

Instantly share code, notes, and snippets.

@rwp0
Last active July 29, 2022 13:54
Show Gist options
  • Save rwp0/9fd83b909d3b50738b1d771aaa2bbf7a to your computer and use it in GitHub Desktop.
Save rwp0/9fd83b909d3b50738b1d771aaa2bbf7a to your computer and use it in GitHub Desktop.
Debian GNOME Systemd: Don't Sleep on Locking the Lid
# /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