setup hypridle

This commit is contained in:
Clayton Hickey 2025-10-15 14:18:32 -04:00
parent 2381c4f7d0
commit 2f257de7d9
2 changed files with 15 additions and 2 deletions

View file

@ -29,6 +29,10 @@
};
};
services.logind.settings.Login = {
HandlePowerKey="suspend";
};
time.timeZone = "America/New_York";
i18n = {

View file

@ -57,6 +57,8 @@ let cfg = config.cos.hyprland; in
yaru-theme
];
services.hypridle.enable = true;
home-manager.users.${config.cos.username} = {pkgs, ...}: {
wayland.windowManager.hyprland = {
enable = true;
@ -173,9 +175,16 @@ let cfg = config.cos.hyprland; in
];
};
};
};
hypridle = {
services.hypridle = {
enable = true;
settings = {
general = {
lock_cmd = "pidof hyprlock || hyprlock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "hyprctl dispatch dms on";
};
};
};