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";
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
i18n = {
|
i18n = {
|
||||||
|
|
|
||||||
11
hyprland.nix
11
hyprland.nix
|
|
@ -57,6 +57,8 @@ let cfg = config.cos.hyprland; in
|
||||||
yaru-theme
|
yaru-theme
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.hypridle.enable = true;
|
||||||
|
|
||||||
home-manager.users.${config.cos.username} = {pkgs, ...}: {
|
home-manager.users.${config.cos.username} = {pkgs, ...}: {
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -173,9 +175,16 @@ let cfg = config.cos.hyprland; in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
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