mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:48:11 +09:00
lock screen
This commit is contained in:
@@ -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 = [
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
description = "swayidle idle management for Wayland sessions";
|
||||
}
|
||||
Reference in New Issue
Block a user