diff --git a/modules/config/xsession.nix b/modules/config/xsession.nix index 471bdef..d116a0a 100644 --- a/modules/config/xsession.nix +++ b/modules/config/xsession.nix @@ -93,6 +93,9 @@ in enable = true; lockCmd = "${lock-screen}/bin/lock-screen"; inactiveInterval = 20; + + # lock before suspending/hibernating, see https://github.com/i3/i3lock/issues/207 + xssLockExtraOptions = [ "--transfer-sleep-lock" ]; }; systemd.user.startServices = true;