Add --logfile /dev/null
to xsel commands
This commit is contained in:
parent
2ab5b5b502
commit
892fe73110
2
clipmenu
2
clipmenu
|
@ -45,7 +45,7 @@ chosen_line=$(printf '%s\n' "${ordered_selections[@]}" | uniq | dmenu -l 8 "$@")
|
||||||
|
|
||||||
for selection in clipboard primary; do
|
for selection in clipboard primary; do
|
||||||
if type -p xsel >/dev/null 2>&1; then
|
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
|
else
|
||||||
xclip -sel "$selection" < "${selections[$chosen_line]}"
|
xclip -sel "$selection" < "${selections[$chosen_line]}"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -54,7 +54,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do
|
||||||
|
|
||||||
if type -p xsel >/dev/null 2>&1; then
|
if type -p xsel >/dev/null 2>&1; then
|
||||||
debug 'Using xsel'
|
debug 'Using xsel'
|
||||||
data=$(xsel -o --"$selection"; printf x)
|
data=$(xsel --logfile /dev/null -o --"$selection"; printf x)
|
||||||
else
|
else
|
||||||
debug 'Using xclip'
|
debug 'Using xclip'
|
||||||
data=$(xclip -o -sel "$selection"; printf x)
|
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
|
# https://github.com/cdown/clipmenu/issues/34 requires knowing if
|
||||||
# we would skip first.
|
# we would skip first.
|
||||||
if type -p xsel >/dev/null 2>&1; then
|
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
|
else
|
||||||
xclip -o -sel "$selection" | xclip -i -sel "$selection"
|
xclip -o -sel "$selection" | xclip -i -sel "$selection"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue