add swayidle to hyprland because we have no systemd-target

This commit is contained in:
Kabbone 2022-10-16 09:49:53 +02:00
parent 46dbd0c4bb
commit a0cebb8101

View File

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