Improve notifications

This commit is contained in:
Geoffrey Frogeye 2025-06-14 12:04:20 +02:00
parent 1843c63924
commit a70cb66771
4 changed files with 11 additions and 68 deletions

View file

@ -50,7 +50,9 @@ in
{
# Warn
timeout = (idleTime - 1) * 60;
command = ''${lib.getExe pkgs.libnotify} "Screen turns off in 1 minute"'';
# Arbitrary id. Might cause issues but simplify things
command = ''${lib.getExe pkgs.libnotify} -r 87 -t 60000 "Screen turns off in 1 minute"'';
resumeCommand = ''${lib.getExe pkgs.libnotify} -r 87 -t 1 ""'';
}
{
# Screen off