disbale hypridle autosuspend on desktop
This commit is contained in:
@ -22,4 +22,6 @@
|
||||
];
|
||||
cursor.no_hardware_cursors = 1;
|
||||
};
|
||||
|
||||
mods.hyprland.autoSuspend = false;
|
||||
}
|
||||
|
@ -1,6 +1,12 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
{
|
||||
options.mods.hyprland.autoSuspend = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "enable hypridle suspend after 10min";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mods.hyprland.enable {
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
@ -17,11 +23,10 @@
|
||||
timeout = 150;
|
||||
on-timeout = "loginctl lock-session";
|
||||
}
|
||||
{
|
||||
] ++ lib.lists.optional config.mods.hyprland.autoSuspend [{
|
||||
timeout = 600;
|
||||
on-timeout = "systemctl suspend";
|
||||
}
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -6,7 +6,7 @@
|
||||
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2025/02/09 22:01:56 by tomoron #+# #+# #
|
||||
# Updated: 2025/02/26 16:47:27 by tomoron ### ########.fr #
|
||||
# Updated: 2025/02/26 16:52:52 by tomoron ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
Reference in New Issue
Block a user