diff options
| author | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:12:37 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:12:37 -0700 |
| commit | 6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0 (patch) | |
| tree | 2c482558072020cf72ca0a7f36aaa18b6f765f6b | |
| parent | b64035d6f6228323c2e2be7d5adfb1c4e3b498cc (diff) | |
| download | depot-6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0.tar.gz depot-6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0.tar.bz2 depot-6d66b5c0fe54bac2f5f63eea78e82e57ff8190c0.zip | |
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.
| -rw-r--r-- | modules/desktop.nix | 19 |
1 files 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}' '' ); |
