clipmenu

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

commit 892fe73110fa0a4fc228466ecbdf5a3b8d75346e
parent 2ab5b5b502b83c0ba3239da50dd5475a5b5e9061
Author: kesha-on-disc <kesha-on-disc@keshasparty.com>
Date:   Tue, 29 Nov 2016 23:25:22 +0000

Add `--logfile /dev/null` to xsel commands

Diffstat:
Mclipmenu | 2+-
Mclipmenud | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/clipmenu b/clipmenu @@ -45,7 +45,7 @@ chosen_line=$(printf '%s\n' "${ordered_selections[@]}" | uniq | dmenu -l 8 "$@") for selection in clipboard primary; do if type -p xsel >/dev/null 2>&1; then - xsel -i --"$selection" < "${selections[$chosen_line]}" + xsel --logfile /dev/null -i --"$selection" < "${selections[$chosen_line]}" else xclip -sel "$selection" < "${selections[$chosen_line]}" fi diff --git a/clipmenud b/clipmenud @@ -54,7 +54,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do if type -p xsel >/dev/null 2>&1; then debug 'Using xsel' - data=$(xsel -o --"$selection"; printf x) + data=$(xsel --logfile /dev/null -o --"$selection"; printf x) else debug 'Using xclip' data=$(xclip -o -sel "$selection"; printf x) @@ -109,7 +109,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do # https://github.com/cdown/clipmenu/issues/34 requires knowing if # we would skip first. if type -p xsel >/dev/null 2>&1; then - xsel -o --"$selection" | xsel -i --"$selection" + xsel --logfile /dev/null -o --"$selection" | xsel -i --"$selection" else xclip -o -sel "$selection" | xclip -i -sel "$selection" fi