clipmenu

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

commit 190722f909e2a2ca318041cbff4c77eca4758f7e
parent 95b8cd569846967f40e8fb0b66eee8ca8e9c4cfb
Author: Chris Down <chris@chrisdown.name>
Date:   Sat, 22 Aug 2015 19:28:15 +0100

Revert "Remove CLIPMENU_LINES support"

This is a sensible default and probably should remain.

This reverts commit 10f0ffe6cb8901406366738fdc572c7fa89509db.

Diffstat:
Mclipmenu | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/clipmenu b/clipmenu @@ -4,6 +4,7 @@ LC_COLLATE=C # Some people copy/paste huge swathes of text that could slow down dmenu line_length_limit=500 +dmenu_lines=${CLIPMENU_LINES-8} declare -A selections ordered_selections=() @@ -27,7 +28,8 @@ for (( i=${#files[@]}-1; i>=0; i-- )); do done chosen_line=$( - printf '%s\n' "${ordered_selections[@]}" | awk '!x[$0]++' | dmenu "$@" + printf '%s\n' "${ordered_selections[@]}" | + awk '!x[$0]++' | dmenu -l "$dmenu_lines" "$@" ) [[ $chosen_line ]] || exit 1