💤 Hypridle
- Added hypridle with a simple config
This commit is contained in:
26
home/hyprland/hypridle/default.nix
Normal file
26
home/hyprland/hypridle/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
services.hypridle = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
ignore_dbus_inhibit = false;
|
||||
lock_cmd = "hyprlock";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
timeout = 900; # Seconds
|
||||
on-timeout = "hyprlock";
|
||||
}
|
||||
{
|
||||
timeout = 5;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
on-resume = "hyprctl dispatch dpms on";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user