Skip to content

y

Usage
y [text...]

Copies text to the system clipboard using wl-copy (Wayland) or xclip (X11). Reads from stdin when no arguments are given.

Arguments:
text Text to copy; reads from stdin if omitted

Returns:

0 Text copied to clipboard
1 No clipboard provider found
Examples
y "hello world"
ls | y
cat file.txt | y