Xclip: Difference between revisions

From wikinotes
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
xclip is a cli interface for your clipboard.
xclip is a cli interface for your clipboard.
= Documentation =
<blockquote>
{| class="wikitable"
|-
| github || https://github.com/astrand/xclip
|-
| <code>man xclip</code> || https://man.archlinux.org/man/extra/xclip/xclip.1.en
|}
</blockquote><!-- Documentation -->


= Usage =
= Usage =
<blockquote>
<blockquote>
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
echo foo | xclip                      # copy 'foo' to selection-buffer (shift+ins)
# copy 'foo' to selection-buffer (shift+ins)
echo foo | xclip -selection clipboard  # copy 'foo' to clipboard       (ctrl+v, alt+shift+ins)
echo foo | xclip
 
# copy 'foo' to clipboard (ctrl+v, alt+shift+ins)
echo foo | xclip -selection clipboard 
 
# print contents of secondary clipboard
xclip -o -selection secondary
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- Usage -->
</blockquote><!-- Usage -->

Latest revision as of 01:14, 5 February 2024

xclip is a cli interface for your clipboard.

Documentation

github https://github.com/astrand/xclip
man xclip https://man.archlinux.org/man/extra/xclip/xclip.1.en

Usage

# copy 'foo' to selection-buffer (shift+ins)
echo foo | xclip

# copy 'foo' to clipboard (ctrl+v, alt+shift+ins)
echo foo | xclip -selection clipboard  

# print contents of secondary clipboard
xclip -o -selection secondary