update, add utils and suspend on idle

This commit is contained in:
tristan 2023-09-02 14:20:28 +01:00
parent 6885594e02
commit 91b08381c0
3 changed files with 66 additions and 35 deletions

View file

@ -154,18 +154,24 @@ in
};
};
services.swayidle.enable = true;
services.swayidle.systemdTarget = "graphical-session.target";
services.swayidle.events = [
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
{ event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
];
services.swayidle.timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock-effects}/bin/swaylock -f";
}
];
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
events = [
{ event = "before-sleep"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
{ event = "lock"; command = "${pkgs.swaylock-effects}/bin/swaylock"; }
];
timeouts = [
{
timeout = 300;
command = "${pkgs.swaylock-effects}/bin/swaylock -f";
}
{
timeout = 600;
command = "systemctl suspend";
}
];
};
services.mako = {
enable = true;