Skip to content

Commit

Permalink
hyprland configs refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
number5 committed Sep 9, 2024
1 parent a000617 commit 256d42c
Show file tree
Hide file tree
Showing 12 changed files with 629 additions and 95 deletions.
134 changes: 67 additions & 67 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions home/modules/hypridle/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ specialArgs, ... }:

let
dpmsSettings =
if specialArgs.hidpi then { } else
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
};
in
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};

listener = [
{
timeout = 900;
on-timeout = "hyprlock";
}
dpmsSettings
];
};
};
}
Loading

0 comments on commit 256d42c

Please sign in to comment.