setup hypridle
This commit is contained in:
parent
2381c4f7d0
commit
2f257de7d9
2 changed files with 15 additions and 2 deletions
|
|
@ -29,6 +29,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.logind.settings.Login = {
|
||||
HandlePowerKey="suspend";
|
||||
};
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
i18n = {
|
||||
|
|
|
|||
11
hyprland.nix
11
hyprland.nix
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue