MyNixOS website logo
option

services.xscreensaver.hooks

An attrset of events and commands to run upon each event. Refer to https://www.jwz.org/xscreensaver/man3.html for supported events.

Declarations
Type
attribute set of strings concatenated with "\n"
Default
{ }
Example
# Reconfigure autorandr on screen wake up
{
  "RUN" = "${lib.getExe pkgs.autorandr} --change --ignore-lid";
};