From b33d74cae5e93c9e2107eb6ea80af46f2450e608 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Thu, 8 Feb 2018 00:55:29 +0000 Subject: [PATCH] Add messages when clipnotify is not detected --- clipmenud | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clipmenud b/clipmenud index 048c35f..5ee6e00 100755 --- a/clipmenud +++ b/clipmenud @@ -89,6 +89,11 @@ declare -A last_data command -v clipnotify >/dev/null 2>&1 && has_clipnotify=1 +if ! (( has_clipnotify )); then + echo "WARN: Consider installing clipnotify for better performance." >&2 + echo "WARN: See https://github.com/cdown/clipnotify." >&2 +fi + exec {lock_fd}> "$lock_file" while true; do