about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-06 11:21:17 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-06 11:21:41 +0200
commit2c69d33227017a2a87aa1d407c1851879af82203 (patch)
tree0f334ec7903882725260cc195dee4079723e679b /modules
parentpkgs/tskm/browser/open: Don't fail on stale qutebrowser ipc sockets (diff)
downloadnixos-config-2c69d33227017a2a87aa1d407c1851879af82203.zip
modules/river/keymap: Avoid trailing spaces in spawn
Diffstat (limited to '')
-rw-r--r--modules/by-name/ri/river/keymap.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/by-name/ri/river/keymap.nix b/modules/by-name/ri/river/keymap.nix
index a842563a..077bcbf9 100644
--- a/modules/by-name/ri/river/keymap.nix
+++ b/modules/by-name/ri/river/keymap.nix
@@ -9,14 +9,19 @@
 
   mkTagCommand = name: index: [name (index2tag index)];
   mkSpawn' = pkg: binaryName: args: further: (further
-    // {
+    // (let
+      maybeSpace =
+        if args == ""
+        then ""
+        else " ";
+    in {
       command = [
         "spawn"
-        "${lib.getExe' pkg binaryName} ${args}"
+        "${lib.getExe' pkg binaryName}${maybeSpace}${args}"
       ];
 
-      description = "${binaryName} ${args}";
-    });
+      description = "${binaryName}${maybeSpace}${args}";
+    }));
 
   mkSpawn = pkg: args: further: (mkSpawn' pkg pkg.meta.mainProgram args further);