calcite,dolomite: minor fixes

This commit is contained in:
xinyangli 2024-11-20 10:28:31 +08:00
parent 1b513bd869
commit 6d5436bbaa
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
8 changed files with 282 additions and 37 deletions

View file

@ -84,8 +84,12 @@ in
enable = true;
timeouts = [
{
timeout = 900;
command = "/run/current-system/systemd/bin/systemctl suspend";
timeout = 600;
command = ''[ "$(${pkgs.tlp}/bin/tlp-stat -m)" == "battery" ] && /run/current-system/systemd/bin/systemctl suspend'';
}
{
timeout = 1200;
command = ''${getExe pkgs.niri} msg action power-off-monitors'';
}
];
events = [