From 47091f06968a9b00e85d8673bb925882196df4bd Mon Sep 17 00:00:00 2001 From: ant Date: Mon, 8 Dec 2025 19:52:27 +0100 Subject: [PATCH] automatic lock when inactive only for allegro --- home/allegro.nix | 7 +++++++ home/ui.nix | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/home/allegro.nix b/home/allegro.nix index 50e6c77..fc20bd2 100644 --- a/home/allegro.nix +++ b/home/allegro.nix @@ -112,6 +112,13 @@ yuview ]; + services.swayidle.timeouts = [ + { + timeout = 900; + command = "${config.swaylock-bin} -defF"; + } + ]; + home.sessionVariables = { TMPDIR = "/home/${config.home.username}/tmp"; GSETTINGS_SCHEMA_DIR = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/gsettings-desktop-schemas-47.1/glib-2.0/schemas"; diff --git a/home/ui.nix b/home/ui.nix index 3ebe7b4..ecdff38 100644 --- a/home/ui.nix +++ b/home/ui.nix @@ -286,10 +286,6 @@ in ]; timeouts = [ - { - timeout = 900; - command = "${config.swaylock-bin} -defF"; - } { timeout = 900; command = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off";