Fix clipboard thing
This commit is contained in:
parent
3d5f7a5e9e
commit
2e513e0e80
1 changed files with 2 additions and 5 deletions
7
bin/clip
7
bin/clip
|
@ -2,12 +2,9 @@
|
|||
|
||||
if is_wayland; then
|
||||
# echo "Clip: YES. THIS IS WAYLAND SPEAKING." >&2
|
||||
sed 's/^\s+//g' | wl-copy "$@"
|
||||
sed 's/^\s+//g' | sed 's/\s+$//g' | wl-copy "$@"
|
||||
echo "Your trimmed input was stored in all clipboards."
|
||||
else
|
||||
xclip -selection primary
|
||||
xclip -selection primary -out | xclip -selection clipboard
|
||||
xclip -selection primary -out | xclip -selection secondary
|
||||
echo "Your input was stored in all clipboards."
|
||||
xclip -selection clipboard
|
||||
sleep 5 && killall xclip > /dev/null 2>&1 &
|
||||
fi
|
||||
|
|
Reference in a new issue