diff --git a/README.md b/README.md index 216c7ff..c6fb8d5 100755 --- a/README.md +++ b/README.md @@ -22,4 +22,5 @@ each host should have these files: - divide steam and gamemode? - laptop specific configuration (power profiles daemon, battery, etc) - sddm cursors no work :( - - try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm) \ No newline at end of file + - try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm) + - gnome keyring / gcr for saving passwords \ No newline at end of file diff --git a/modules/desktop/hypridle.nix b/modules/desktop/hypridle.nix index 231dd50..49bd7fb 100644 --- a/modules/desktop/hypridle.nix +++ b/modules/desktop/hypridle.nix @@ -14,18 +14,18 @@ in { }; config = mkIf cfg.enable { - hm.services.hypridle = let - hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl"; - in { + hm.services.hypridle = { enable = true; package = cfg.package; - lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${hyprctl} dispatch exec ${lib.getExe config.modules.desktop.hyprlock.package}"; + lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}"; unlockCmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock"; beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session"; - listeners = [ + listeners = let + hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl"; + in [ { timeout = 90; # 1.5 min onTimeout = "${hyprctl} dispatch dpms off"; # turn off screen diff --git a/modules/desktop/hyprland.nix b/modules/desktop/hyprland.nix index 67e5465..b0ceb0a 100644 --- a/modules/desktop/hyprland.nix +++ b/modules/desktop/hyprland.nix @@ -35,6 +35,8 @@ in { xwayland.enable = true; package = cfg.package; + systemd.variables = [ "--all" ]; + settings = { source = [];