mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:48:12 +09:00
fix
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
};
|
||||
|
||||
logind = {
|
||||
lidSwitch = "lock"; # Lock when lid is closed
|
||||
lidSwitch = "suspend"; # Lock when lid is closed
|
||||
lidSwitchDocked = "ignore"; # Ignore when docked
|
||||
extraConfig = ''
|
||||
HandleLidSwitchExternalPower=lock
|
||||
|
||||
@@ -7,7 +7,6 @@ let
|
||||
lockCmd = "${noctaliaExe} ipc call sessionMenu lock";
|
||||
lockAndSuspendCmd= "${noctaliaExe} ipc call sessionMenu lockAndSuspend";
|
||||
|
||||
|
||||
dpmsOff = "${pkgs.niri}/bin/niri msg action power-off-monitors";
|
||||
dpmsOn = "${pkgs.niri}/bin/niri msg action power-on-monitors";
|
||||
in
|
||||
@@ -17,14 +16,12 @@ in
|
||||
systemdTarget = "graphical-session.target";
|
||||
|
||||
timeouts = [
|
||||
{ timeout = 300; command = noctaliaLock; }
|
||||
|
||||
{ timeout = 306; command = dpmsOff; resumeCommand = dpmsOn; }
|
||||
{ timeout = 300; command = lockAndSuspendCmd; }
|
||||
];
|
||||
|
||||
events = [
|
||||
{ event = "lock"; command = noctaliaLock; }
|
||||
{ event = "before-sleep"; command = noctaliaLock; }
|
||||
{ event = "lock"; command = lockCmd; }
|
||||
{ event = "before-sleep"; command = lockCmd; }
|
||||
{ event = "after-resume"; command = dpmsOn; }
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user