This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/home/hyprland/hypridle.nix

45 lines
744 B
Nix
Raw Normal View History

{ config, ... }:
{
# include hyprland configs
home.file.".config/hypr/hypridle.conf".text = ''
# general
general {
ignore_dbus_inhibit = false
}
# listeners
# notify inactivity
listener {
timeout = 45
on-timeout = notify-send -t 4000 "Are you there ?"
}
listener {
timeout = 50
on-timeout = notify-send -t 4000 "Are you there ??"
}
listener {
timeout = 55
2024-03-30 14:09:48 +01:00
on-timeout = notify-send -t 4000 "Apperantly not, lock engaged ! "
}
# lock screen
listener {
timeout = 60
on-timeout = hyprlock
}
# suspend after 5 minutes
listener {
timeout = 500
on-timeout = systemctl suspend
}
'';
}