mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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;
|
enable = true;
|
||||||
|
|
||||||
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
|
lockCmd = "pidof ${hyprlockExe} || ${hyprlockExe}";
|
||||||
# beforeSleepCmd = "loginctl lock-session";
|
beforeSleepCmd = "loginctl lock-session & sleep1";
|
||||||
afterSleepCmd = "hyprctl dispatch dpms on";
|
afterSleepCmd = "hyprctl dispatch dpms on";
|
||||||
|
|
||||||
listeners = [
|
listeners = [
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./default.nix];
|
imports = [./default.nix];
|
||||||
|
|
@ -20,5 +21,7 @@
|
||||||
--replace "5000" "16"
|
--replace "5000" "16"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.hypridle.beforeSleepCmd = lib.mkForce "";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,19 +4,16 @@
|
||||||
home-manager.users.seb = {
|
home-manager.users.seb = {
|
||||||
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
|
wayland.windowManager.hyprland.settings.monitor = "eDP-1,1920x1080@60,0x0,1";
|
||||||
|
|
||||||
services.hypridle = {
|
services.hypridle.listeners = [
|
||||||
beforeSleepCmd = "loginctl lock-session";
|
{
|
||||||
listeners = [
|
timeout = 300;
|
||||||
{
|
onTimeout = "brillo -q -O && brillo -q -S 10";
|
||||||
timeout = 300;
|
onResume = "brillo -q -I";
|
||||||
onTimeout = "brillo -q -O && brillo -q -S 10";
|
}
|
||||||
onResume = "brillo -q -I";
|
{
|
||||||
}
|
timeout = 1200;
|
||||||
{
|
onTimeout = "systemctl suspend";
|
||||||
timeout = 1200;
|
}
|
||||||
onTimeout = "systemctl suspend";
|
];
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue