clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit e7e8425c3bf9ad09b319204fbf50aec31da69ab6
parent 618327d545e6e3b833222eac25d4ee4e02257bc2
Author: Chris Down <chris@chrisdown.name>
Date:   Fri,  3 Apr 2020 12:27:40 +0100

clipmenud: Replace empty values for CM_DIR/CM_MAX_CLIPS/CM_SELECTIONS

Empty strings for these are not useful. Related to #123.

Diffstat:
Mclipmenud | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -3,13 +3,13 @@ : "${CM_ONESHOT=0}" : "${CM_OWN_CLIPBOARD=0}" : "${CM_DEBUG=0}" -: "${CM_DIR="${XDG_RUNTIME_DIR-"${TMPDIR-/tmp}"}"}" +: "${CM_DIR:="${XDG_RUNTIME_DIR-"${TMPDIR-/tmp}"}"}" -: "${CM_MAX_CLIPS=1000}" +: "${CM_MAX_CLIPS:=1000}" # Buffer to batch to avoid calling too much. Only used if CM_MAX_CLIPS >0. CM_MAX_CLIPS_THRESH=$(( CM_MAX_CLIPS + 10 )) -: "${CM_SELECTIONS=clipboard primary}" +: "${CM_SELECTIONS:=clipboard primary}" read -r -a selections <<< "$CM_SELECTIONS" major_version=6