disable swayidle
This commit is contained in:
		
							parent
							
								
									bc93476875
								
							
						
					
					
						commit
						112ba74a77
					
				
					 1 changed files with 30 additions and 30 deletions
				
			
		| 
						 | 
					@ -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"];
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue