From b731c7f1fda2ea099e50956c759fadfe68eeaa42 Mon Sep 17 00:00:00 2001 From: tdro Date: Fri, 20 Nov 2020 02:19:41 -0500 Subject: .local/bin/plumber-dmenu: Notify on empty clipboard --- .local/bin/plumber-dmenu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/plumber-dmenu b/.local/bin/plumber-dmenu index 431bbb7..9feda59 100755 --- a/.local/bin/plumber-dmenu +++ b/.local/bin/plumber-dmenu @@ -7,5 +7,6 @@ printf "%s" "$options" \ | while read -r option do text=$(plumber --option "$option" --text "$(xsel -o)") - notify-send "$text" && printf "%s" "$text" | xsel -ib + { notify-send "$text" && printf "%s" "$text" | xsel -ib; } \ + || notify-send "Plumber: Clipboard selection is empty" done -- cgit v1.2.3