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
declared in: nixos/modules/services/x11/xscreensaver.nixView source on NixOS/nixpkgs →# Reconfigure autorandr on screen wake up
{
"RUN" = "${lib.getExe pkgs.autorandr} --change --ignore-lid";
};