clipmenu

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

commit be7dcfb4dbd3ac6708545a2edb95cf175d6bf0fd
parent f9ab57522de4e2f859a9d3a68493efe0df94d171
Author: Chris Down <chris@chrisdown.name>
Date:   Mon, 23 Mar 2020 17:52:57 +0000

clipmenu: Since we don't reuse line content, don't store it

Diffstat:
Mclipmenud | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -170,8 +170,7 @@ while true; do num_vacuumed=0 for file in "$cache_dir"/[012346789]*; do cksum=${file##*/} - line=${cksums["$cksum"]-_missing_} - if [[ $line == _missing_ ]]; then + if [[ ${cksums["$cksum"]-_missing_} == _missing_ ]]; then debug "Vacuuming due to lack of reference: $file" (( ++num_vacuumed )) rm -- "$file"