refactor: move idle inhibitor logic into Quickshell
This commit is contained in:
parent
706756d6fa
commit
2d5b25daa3
5 changed files with 25 additions and 148 deletions
|
|
@ -9,6 +9,27 @@
|
|||
imv
|
||||
];
|
||||
|
||||
# Hypridle
|
||||
|
||||
services.hypridle.enable = true;
|
||||
services.hypridle.settings = {
|
||||
general = {
|
||||
before_sleep_cmd = "hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 120;
|
||||
on-timeout = "hyprlock --grace 180";
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
# Hyprlock
|
||||
|
||||
programs.hyprlock.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue