When copying text to the clipboard, xclip provides several selection targets:
-selection specify which X selection to use, options are: "primary" to use XA_PRIMARY (default), "secondary" for XA_SECONDARY "clipboard" for XA_CLIPBOARD
Is there a way to target multiple selections?
I have tried the following options
echo "Hello world" | xclip -i -selection primary -selection clipboard
echo "Hello world" | xclip -i selection primary | xclip -i selection clipboard
echo "Hello world" | xclip -i selection primary,clipboard
but none of them worked.