clipmenu

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

commit 9a52f7ddba821da6d2b84cca398a483851953af5
parent 6825c302dc892cb757d644055184defe3f3121b1
Author: Chris Down <chris@chrisdown.name>
Date:   Tue, 20 Feb 2018 10:08:13 +0000

Revert "Make sure we don't break #34 in new pre-ownership"

This reverts commit fe6986110197aa73f22fdcbc4f4991f8350ee8b3.

Diffstat:
Mclipmenud | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/clipmenud b/clipmenud @@ -125,10 +125,7 @@ while true; do # Primary is excluded from the change of ownership as applications # sometimes act up if clipboard focus is taken away from them -- # for example, urxvt will unhilight text, which is undesirable. - # - # We need to check if the clipboard is empty to mitigate #34. - data=$(_xsel -o --clipboard; printf x) - [[ $data != x ]] && _xsel -i --clipboard <<< "${data%x}" + _xsel -o --clipboard | _xsel -i --clipboard fi if ! (( CM_ONESHOT )); then