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"; }