MyNixOS website logo

Hypridle configuration written in Nix. Entries with the same key should be written as lists. Variables' and colors' names should be quoted. See https://wiki.hyprland.org/Hypr-Ecosystem/hypridle/ for more examples.

Declarations
Type
Hypridle configuration value
Default
{ }
Example
{
  general = {
    after_sleep_cmd = "hyprctl dispatch dpms on";
    ignore_dbus_inhibit = false;
    lock_cmd = "hyprlock";
  };

  listener = [
    {
      timeout = 900;
      on-timeout = "hyprlock";
    }
    {
      timeout = 1200;
      on-timeout = "hyprctl dispatch dpms off";
      on-resume = "hyprctl dispatch dpms on";
    }
  ];
}