💤 Hypridle

- Added hypridle with a simple config
This commit is contained in:
Martin Berg Alstad 2024-12-30 23:19:40 +01:00
parent b28a7d7fbb
commit 793b3a16d0
Signed by: martials
GPG Key ID: A3824877B269F2E2
4 changed files with 34 additions and 5 deletions

View File

@ -5,6 +5,7 @@
imports = [
./hyprcursor
./waybar
./hypridle
];
home.file.".config/hypr/hyprland.conf".source = ./hyprland.conf;

View File

@ -0,0 +1,26 @@
{ ... }:
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = 900; # Seconds
on-timeout = "hyprlock";
}
{
timeout = 5;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
}

View File

@ -1,8 +1,8 @@
{...}:
{ ... }:
{
home.file.".config/waybar" = {
source = ./config;
recursive = true;
};
home.file.".config/waybar" = {
source = ./config;
recursive = true;
};
}

View File

@ -17,4 +17,6 @@
enable = true;
xwayland.enable = true;
};
services.hypridle.enable = true;
}