configuration.nix/home/wm/addon/swayidle.nix

19 lines
400 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ pkgs, ... }: {
2023-04-07 19:21:33 +05:30
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
2023-04-07 19:21:33 +05:30
events = [
{
event = "before-sleep";
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
}
];
timeouts = [
{
timeout = 600;
command = "${pkgs.swaylock}/bin/swaylock -f -i /tmp/lockpaper.jpg";
}
];
};
2023-03-15 22:11:59 +05:30
}