mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Restructure the idlelock exception
This commit is contained in:
parent
759979860f
commit
8ca2e82d62
3 changed files with 15 additions and 15 deletions
|
|
@ -30,7 +30,7 @@
|
|||
enable = true;
|
||||
|
||||
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
|
||||
# beforeSleepCmd = "loginctl lock-session";
|
||||
beforeSleepCmd = "loginctl lock-session & sleep1";
|
||||
afterSleepCmd = "hyprctl dispatch dpms on";
|
||||
|
||||
listeners = [
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [./default.nix];
|
||||
|
|
@ -20,5 +21,7 @@
|
|||
--replace "5000" "16"
|
||||
'';
|
||||
};
|
||||
|
||||
services.hypridle.beforeSleepCmd = lib.mkForce "";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,19 +4,16 @@
|
|||
home-manager.users.seb = {
|
||||
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
|
||||
|
||||
services.hypridle = {
|
||||
beforeSleepCmd = "loginctl lock-session";
|
||||
listeners = [
|
||||
{
|
||||
timeout = 300;
|
||||
onTimeout = "brillo -q -O && brillo -q -S 10";
|
||||
onResume = "brillo -q -I";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
onTimeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
services.hypridle.listeners = [
|
||||
{
|
||||
timeout = 300;
|
||||
onTimeout = "brillo -q -O && brillo -q -S 10";
|
||||
onResume = "brillo -q -I";
|
||||
}
|
||||
{
|
||||
timeout = 1200;
|
||||
onTimeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue