diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-29 21:24:11 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-11-29 21:24:11 +0100 |
| commit | 815d9d8bf57fa491fe062c7c839c60cdef5dffaf (patch) | |
| tree | cd3fbd45c23141d425a0ea610073af136f95d6f5 /modules/by-name/ri/river/keymap.nix | |
| parent | pkgs/notify-run: Init (diff) | |
| download | nixos-config-815d9d8bf57fa491fe062c7c839c60cdef5dffaf.zip | |
modules/river/keymap: Send a notification, when spawning a command fails
Diffstat (limited to '')
| -rw-r--r-- | modules/by-name/ri/river/keymap.nix | 6 |
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}"; |
