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 ba82605422215c7f725d3e4fa4a2cba19a9deeab
parent dae1a5aaa09c094b211f496c8d324b97764d280b
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  3 Jun 2019 09:11:59 +0200

Only show output from dmenu_run if not empty

Diffstat:
M.local/bin/dmenu_run | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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