disable swayidle

This commit is contained in:
Frost-Phoenix 2023-12-14 16:02:50 +01:00
parent bc93476875
commit 112ba74a77

View file

@ -49,35 +49,35 @@
}; };
}; };
services.swayidle = { # services.swayidle = {
enable = true; # enable = true;
events = [ # events = [
{ # {
event = "before-sleep"; # event = "before-sleep";
command = "${pkgs.swaylock-effects}/bin/swaylock -fF"; # command = "${pkgs.swaylock-effects}/bin/swaylock -fF";
} # }
{ # {
event = "lock"; # event = "lock";
command = "${pkgs.swaylock-effects}/bin/swaylock -fF"; # command = "${pkgs.swaylock-effects}/bin/swaylock -fF";
} # }
]; # ];
timeouts = [ # timeouts = [
{ # {
timeout = 90; # timeout = 90;
command = "swaylock"; # command = "swaylock";
} # }
{ # {
timeout = 300; # timeout = 300;
command = "systemctl suspend"; # command = "systemctl suspend";
} # }
# { # {
# timeout = 180; # timeout = 180;
# command = "systemctl suspend"; # command = "systemctl suspend";
# # command = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off"; # # command = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off";
# # resumeCommand = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on"; # # resumeCommand = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on";
# } # }
]; # ];
}; # };
systemd.user.services.swayidle.Install.WantedBy = lib.mkForce ["hyprland-session.target"]; # systemd.user.services.swayidle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];
} }