Declared hypridle config
This commit is contained in:
22
hyprland/hypr/hypridle.nix
Normal file
22
hyprland/hypr/hypridle.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
inhibit_sleep = 3;
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 300;
|
||||
on-timeout = "pidof hyprlock || hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 900;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user