A set of commands to be executed after a specific idle timeout. The commands specified in command
and canceller
are passed escaped to the script. To use or re-use environment variables that are script-dependent, specify them in the environment
section.
Declarations
Type
list of (submodule)
Default
[ ]
Example
[
{
delay = 60;
command = "xrandr --output \"$PRIMARY_DISPLAY\" --brightness .1";
canceller = "xrandr --output \"$PRIMARY_DISPLAY\" --brightness 1";
}
{
delay = 120;
command = "${pkgs.writeShellScript "my-script" ''
# A complex script to run
''}";
}
]