nix-configs

Personal NixOS and home-manager configuration files
Log | Files | Refs

hypridle.nix (441B)


      1 {
      2   services.hypridle = {
      3     enable = true;
      4     settings = {
      5   general = {
      6     after_sleep_cmd = "hyprctl dispatch 'hl.dsp.dpms({ action = \"enable\" })'";
      7     ignore_dbus_inhibit = false;
      8     lock_cmd = "hyprlock";
      9   };
     10   listener = [
     11     {
     12       timeout = 300;
     13       on-timeout = "hyprctl dispatch 'hl.dsp.dpms({ action = \"disable\" })'";
     14       on-resume = "hyprctl dispatch 'hl.dsp.dpms({ action = \"enable\" })'";
     15     }
     16   ];
     17 };
     18   };
     19 }