From a0cebb81017af38b1ca27aaadcdb99b9c0619a28 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sun, 16 Oct 2022 09:49:53 +0200 Subject: [PATCH] add swayidle to hyprland because we have no systemd-target --- modules/desktop/hyprland/home.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/desktop/hyprland/home.nix b/modules/desktop/hyprland/home.nix index 35cf4e0..6e65035 100644 --- a/modules/desktop/hyprland/home.nix +++ b/modules/desktop/hyprland/home.nix @@ -113,6 +113,7 @@ exec-once=${pkgs.swaybg}/bin/swaybg -m center -i $HOME/.config/wall exec-once=${pkgs.waybar}/bin/waybar exec-once=${pkgs.blueman}/bin/blueman-applet + exec-once=${pkgs.swayidle}/bin/swayidle -w timeout 600 "${pkgs.swaylock}/bin/swaylock -f" timeout 300 "${pkgs.hyprland}/bin/hyprctl dispatch dpms off" resume "${pkgs.hyprland}/bin/hyprctl dispatch dpms on" before-sleep "${pkgs.swaylock}/bin/swaylock -f" ''; }; programs.swaylock.settings = { @@ -123,7 +124,7 @@ }; services.swayidle = { - enable = true; + enable = false; events = [ { event = "before-sleep"; command = "${pkgs.swaylock}/bin/swaylock"; } { event = "lock"; command = "${pkgs.swaylock}/bin/swaylock -fF"; }