services.xscreensaver.hooks

NixOS option

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

type: attribute set of strings concatenated with "\n"
Default
{ }
Example
# Reconfigure autorandr on screen wake up
{
  "RUN" = "${lib.getExe pkgs.autorandr} --change --ignore-lid";
};
declared in: nixos/modules/services/x11/xscreensaver.nixView source on NixOS/nixpkgs →