mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat: niri, and so much more o.o
This commit is contained in:
parent
f61eca52be
commit
79bf49841b
61 changed files with 1412 additions and 1683 deletions
25
home/environments/niri/swayidle.nix
Normal file
25
home/environments/niri/swayidle.nix
Normal 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue