feat: move hypridle to service
This commit is contained in:
parent
a2b44144bb
commit
4a61ca8b7a
1 changed files with 15 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue