lock-before-sleep: --any-display, unit env has no WAYLAND_DISPLAY

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0169F2pgebpibASvMLou1awP
This commit is contained in:
rope 2026-08-21 12:03:51 +01:00
parent 466e4bcd74
commit 2d2dc4a8e4

View file

@ -87,7 +87,9 @@ in
# the config (and thus the instance to talk to) via ~/.config — # the config (and thus the instance to talk to) via ~/.config —
# without it: "Could not find "default" config directory". # without it: "Could not find "default" config directory".
export HOME=/home/fred export HOME=/home/fred
${pkgs.quickshell}/bin/qs ipc call lock lock # --any-display: no WAYLAND_DISPLAY here, and qs skips instances
# on other displays without it.
${pkgs.quickshell}/bin/qs ipc --any-display call lock lock
${pkgs.coreutils}/bin/sleep 1 ${pkgs.coreutils}/bin/sleep 1
''; '';
TimeoutStartSec = "5s"; TimeoutStartSec = "5s";