From 466e4bcd741b7bca25650c48b1c690452e1a7426 Mon Sep 17 00:00:00 2001 From: rope Date: Fri, 21 Aug 2026 11:59:53 +0100 Subject: [PATCH] lock-before-sleep: export HOME, qs needs it to find the config Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_0169F2pgebpibASvMLou1awP --- settings/hyprland.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 56ec659..13f7510 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -83,6 +83,10 @@ in # one in User=, so it pointed qs at /run/user/0. ExecStart = pkgs.writeShellScript "lock-before-sleep" '' export XDG_RUNTIME_DIR=/run/user/$(${pkgs.coreutils}/bin/id -u) + # HOME too: system units don't set it for User=, and qs resolves + # the config (and thus the instance to talk to) via ~/.config — + # without it: "Could not find "default" config directory". + export HOME=/home/fred ${pkgs.quickshell}/bin/qs ipc call lock lock ${pkgs.coreutils}/bin/sleep 1 '';