feat: move hypridle to service

This commit is contained in:
Noa Aarts 2024-08-29 22:05:23 +02:00
parent a2b44144bb
commit 4a61ca8b7a
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -63,7 +63,21 @@ in
config.common.default = "*"; config.common.default = "*";
}; };
services.playerctld.enable = true; services = {
hypridle = {
enable = true;
settings.listener = [
{
timeout = 330;
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
}
];
};
playerctld.enable = true;
};
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = cfg.package; package = cfg.package;
@ -84,7 +98,6 @@ in
"${pkgs.waybar}/bin/waybar" "${pkgs.waybar}/bin/waybar"
"${pkgs.dunst}/bin/dunst" "${pkgs.dunst}/bin/dunst"
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1" "${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
"${pkgs.hypridle}/bin/hypridle"
"${pkgs.keepassxc}/bin/keepassxc" "${pkgs.keepassxc}/bin/keepassxc"
"${pkgs.planify}/bin/planify" "${pkgs.planify}/bin/planify"
"${pkgs.thunderbird}/bin/thunderbird" "${pkgs.thunderbird}/bin/thunderbird"