diff options
author | tdro <tdro@users.noreply.github.com> | 2020-11-20 02:19:41 -0500 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-11-20 02:19:41 -0500 |
commit | b731c7f1fda2ea099e50956c759fadfe68eeaa42 (patch) | |
tree | 46a42e31846f87563e731d56ed477016b98d0b6e /.local | |
parent | 7a8273b885c6df9365ee2dd26d6df4362a97dc3b (diff) | |
download | dotfiles-b731c7f1fda2ea099e50956c759fadfe68eeaa42.tar.gz dotfiles-b731c7f1fda2ea099e50956c759fadfe68eeaa42.tar.bz2 dotfiles-b731c7f1fda2ea099e50956c759fadfe68eeaa42.zip |
.local/bin/plumber-dmenu: Notify on empty clipboard
Diffstat (limited to '.local')
-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 |