diff options
-rwxr-xr-x | .local/bin/plumber-dmenu | 3 |
1 files changed, 2 insertions, 1 deletions
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 |