From 815d9d8bf57fa491fe062c7c839c60cdef5dffaf Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 29 Nov 2025 21:24:11 +0100 Subject: modules/river/keymap: Send a notification, when spawning a command fails --- modules/by-name/ri/river/keymap.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/by-name/ri') 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}"; -- cgit 1.4.1