about summary refs log tree commit diff stats
path: root/modules/by-name/ri/river/keymap.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-29 21:24:11 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-29 21:24:11 +0100
commit815d9d8bf57fa491fe062c7c839c60cdef5dffaf (patch)
treecd3fbd45c23141d425a0ea610073af136f95d6f5 /modules/by-name/ri/river/keymap.nix
parentpkgs/notify-run: Init (diff)
downloadnixos-config-815d9d8bf57fa491fe062c7c839c60cdef5dffaf.zip
modules/river/keymap: Send a notification, when spawning a command fails
Diffstat (limited to 'modules/by-name/ri/river/keymap.nix')
-rw-r--r--modules/by-name/ri/river/keymap.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/by-name/ri/river/keymap.nix b/modules/by-name/ri/river/keymap.nix
index 81bb0754..458f77de 100644
--- a/modules/by-name/ri/river/keymap.nix
+++ b/modules/by-name/ri/river/keymap.nix
@@ -14,10 +14,14 @@
         if args == ""
         then ""
         else " ";
+      maybeQuote =
+        if args == ""
+        then ""
+        else "\"";
     in {
       command = [
         "spawn"
-        "${lib.getExe' pkg binaryName}${maybeSpace}${args}"
+        "${lib.getExe pkgs.notify-run} \"${lib.getExe' pkg binaryName}\" ${maybeSpace}${maybeQuote}${args}${maybeQuote}"
       ];
 
       description = "${binaryName}${maybeSpace}${args}";