From 4a03ca25f2879d518afe65c7b2887396fb9b9bd3 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 1 Mar 2025 15:02:25 +0100 Subject: [PATCH] fixup! Hyprland: inhibit idle if fullscreen --- flake.nix | 7 +------ modules/hm/hyprland.nix | 4 ++-- modules/nixos/hyprland.nix | 1 + 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 0557468..9700b98 100644 --- a/flake.nix +++ b/flake.nix @@ -267,12 +267,7 @@ # ./modules/nixos/minio_local.nix ./modules/nixos/hyprland.nix - { - home-manager.users.bertof.imports = [ - ./modules/hm/hyprland.nix - ./modules/hm/swayidle.nix - ]; - } + { home-manager.users.bertof.imports = [ ./modules/hm/hyprland.nix ]; } ./modules/nixos/musa.nix ] ++ homeManagerUModules ++ [{ diff --git a/modules/hm/hyprland.nix b/modules/hm/hyprland.nix index f95258b..afd8d5a 100644 --- a/modules/hm/hyprland.nix +++ b/modules/hm/hyprland.nix @@ -51,7 +51,7 @@ in enable = true; settings = { general = { - # ignore_dbus_inhibit = false; + ignore_dbus_inhibit = false; lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances. before_sleep_cmd = "loginctl lock-session"; # lock before suspend. after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display @@ -64,7 +64,7 @@ in } { timeout = 120; - on-timeout = "${pkgs.brillo}/bin/brillo -e -S 0; loginctl lock-session "; + on-timeout = "${pkgs.brillo}/bin/brillo -e -S 0;"; on-resume = "${pkgs.brillo}/bin/brillo -e -S 100"; } { diff --git a/modules/nixos/hyprland.nix b/modules/nixos/hyprland.nix index 8d3ce92..902af8e 100644 --- a/modules/nixos/hyprland.nix +++ b/modules/nixos/hyprland.nix @@ -18,6 +18,7 @@ }; services.pipewire.wireplumber.enable = true; + security.pam.services.hyprlock = { }; security.pam.services.swaylock = { text = ''