{pkgs, ...}: {
  home = {
    packages = [pkgs.hypridle];
    file.".config/hypr/hypridle.conf".text = ''
      general {
        lock_cmd = pgrep hyprlock || hyprlock
        before_sleep_cmd = loginctl lock-session
        ignore_dbus_inhibit = false
      }

      listener {
        timeout = 300 # in seconds
        on-timeout = loginctl lock-session
      #}
      #listener {
      #  timeout = 600 # in seconds
      #  on-timeout = systemctl suspend
      #}
    '';
  };
}
