Declared hypridle config
This commit is contained in:
22
hyprland/hypr/hypridle.nix
Normal file
22
hyprland/hypr/hypridle.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
inhibit_sleep = 3;
|
||||||
|
};
|
||||||
|
|
||||||
|
listener = [
|
||||||
|
{
|
||||||
|
timeout = 300;
|
||||||
|
on-timeout = "pidof hyprlock || hyprlock";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 900;
|
||||||
|
on-timeout = "systemctl suspend";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../programs/fuzzel.nix
|
./hypridle.nix
|
||||||
../programs/kitty.nix
|
./hyprlock.nix
|
||||||
|
../raw/fuzzel.nix
|
||||||
|
../raw/kitty.nix
|
||||||
../scripts/powermenu.nix
|
../scripts/powermenu.nix
|
||||||
../scripts/screenshot.nix
|
../scripts/screenshot.nix
|
||||||
../scripts/themeswitch.nix
|
../scripts/themeswitch.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user