From 6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sun, 31 Aug 2025 19:12:37 -0700 Subject: improve multi-arg command for swaylock This seems like a much nicer way to specify multi-arg commands. Will likely convert all such usecases to this style going forward. --- modules/desktop.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/desktop.nix b/modules/desktop.nix index f992fc2..1355ef0 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -70,19 +70,20 @@ in xwayland = afterGraphical "${pkgs.xwayland-satellite}/bin/xwayland-satellite"; swayidle = let - swaylock = '' - ${pkgs.swaylock}/bin/swaylock \ - --color 2b3328 \ - --indicator-caps-lock \ - --ignore-empty-password \ - --daemonize''; + swaylock = lib.concatStringsSep " " [ + "${pkgs.swaylock}/bin/swaylock" + "--color 2b3328" + "--indicator-caps-lock" + "--ignore-empty-password" + "--daemonize" + ]; in afterGraphical ( pkgs.writeShellScript "start-swayidle" '' ${pkgs.swayidle}/bin/swayidle -w \ - timeout 601 '${pkgs.niri}/bin/niri msg action power-off-monitors' \ - timeout 600 '${swaylock}' \ - before-sleep '${swaylock}' + timeout 601 '${pkgs.niri}/bin/niri msg action power-off-monitors' \ + timeout 600 '${swaylock}' \ + before-sleep '${swaylock}' '' ); -- cgit v1.3.1