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