feat: niri, and so much more o.o

This commit is contained in:
Kat Inskip 2025-07-13 04:04:41 -07:00
parent f61eca52be
commit 79bf49841b
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
61 changed files with 1412 additions and 1683 deletions

View file

@ -0,0 +1,25 @@
{ pkgs, config, ... }: {
services.swayidle = {
enable = true;
timeouts = [
{
timeout = 180;
command = "${pkgs.libnotify}/bin/notify-send 'Locking in 5 seconds from now.'";
}
{
timeout = 185;
command = "${config.programs.swaylock.package}/bin/swaylock* -f";
}
{
timeout = 600;
command = "${config.programs.niri.package}/bin/niri msg action power-off-monitors";
}
];
events = [
{
event = "before-sleep";
command = "${config.programs.swaylock.package}/bin/swaylock* -f";
}
];
};
}