feat: created integration of all hypr ecosystem components

This commit is contained in:
Zhongheng Liu 2024-08-09 17:06:39 +08:00
commit 7af26d3e3f
7 changed files with 92 additions and 19 deletions

View file

@ -0,0 +1,22 @@
{pkgs, ...}:
let
timeoutSeconds = 60;
in
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = timeoutSeconds;
on-timeout = "hyprlock";
}
];
};
};
}