Replace swayidle with hypridle
This commit is contained in:
parent
2334582c33
commit
b4ae0e7547
2 changed files with 18 additions and 5 deletions
|
|
@ -16,6 +16,24 @@ let
|
|||
}
|
||||
in {
|
||||
|
||||
services.hypridle.enable = true;
|
||||
services.hypridle.settings = {
|
||||
general = {
|
||||
before_sleep_cmd = "swaylock -f";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 120;
|
||||
on-timeout = "swaylock -f --grace=180"
|
||||
}
|
||||
{
|
||||
timeout = 600;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
# Idle inhibiting
|
||||
|
||||
home.packages = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue