lock screen

This commit is contained in:
2026-08-03 15:28:52 +09:00
parent 98397cf152
commit bdca6fb2fb
8 changed files with 8 additions and 43 deletions
@@ -53,7 +53,7 @@ let
${wlopm} --on '*'
'';
in
lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
{
services.swayidle = {
enable = true;
systemdTargets = [ "graphical-session.target" ];
@@ -75,7 +75,11 @@ lib.mkIf pkgs.stdenv.hostPlatform.isLinux {
resumeCommand = "${turnOnDisplays}";
}
];
events.after-resume = "${afterResume}";
events = {
after-resume = "${afterResume}";
lock = "loginctl lock-session";
before-sleep = "loginctl lock-session";
};
};
systemd.user.services.swayidle.Service.PassEnvironment = [
-3
View File
@@ -1,3 +0,0 @@
{
description = "swayidle idle management for Wayland sessions";
}