Skip to content

Commit

Permalink
Fix hypridle
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Nov 28, 2024
1 parent d827546 commit 41165fc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions home/services/wayland/hypridle.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
lib,
config,
inputs,
pkgs,
...
}: {
services.hypridle = {
enable = true;

package = inputs.hypridle.packages.${pkgs.system}.hypridle;

settings = {
lockCmd = "pidof hyprlock || ${lib.getExe config.programs.hyprlock.package}";
general = {
lock_cmd = lib.getExe config.programs.hyprlock.package;
before_sleep_cmd = "${pkgs.systemd}/bin/loginctl lock-session";
};

listener = [
{
timeout = 300;
onTimeout = "pidof hyprlock || ${lib.getExe config.programs.hyprlock.package}";
}
{
timeout = 500;
onTimeout = "hyprctl dispatch dpms off";
Expand Down

0 comments on commit 41165fc

Please sign in to comment.