dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 0fe70c260f283c9111be769180d19092722367a6
parent 481d8831067acb8fd1252e8f85cf31764d6b2989
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  3 May 2019 21:06:56 +0200

Do not show notification if dmenu returns failure

Diffstat:
Mbin/dmenu_run | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/dmenu_run b/bin/dmenu_run @@ -1,3 +1,5 @@ #!/bin/sh +set -e cmd="$(dmenu_path | dmenu_themed "$@")" -notify-send "\$ $cmd" "$(eval "$cmd" 2>&1)" +out="$(eval "$cmd" 2>&1)" +notify-send "\$ $cmd" "$out"