v1.2.0
copy v1.2.0
A small, dependency-free CLI tool that pipes stdin to the system clipboard,
automatically detecting X11, Wayland, WSL, or macOS backends.
Installation
Debian, Ubuntu, Mint, Pop!_OS (amd64):
sudo dpkg -i copy_1.2.0_amd64.deb
sudo apt-get install -fAny other distribution (build from source):
git clone https://github.com/MaxEdgar/copy.git
cd copy
make
sudo make installChanges since v1.1.0
Removed
- Termux support (
termux-clipboard-setbackend). This target depended on
the separate Termux:API companion app being installed and running, which
is outside this tool's control and not part of a standard Termux install.
It was unreliable in practice and has been dropped.
Supported platforms
| Platform | Backend | Notes |
|---|---|---|
| Linux, X11 session | xclip or xsel |
GNOME/Xorg, KDE, XFCE, i3, most traditional desktops |
| Linux, Wayland session | wl-copy |
GNOME/Wayland, Sway, Hyprland, most modern desktops |
| WSL | clip.exe |
Works by default, no setup required |
| macOS | pbcopy |
Build from source; no .deb provided |
Not supported: Android/Termux, and headless environments with no display
or session to hold a clipboard.
Full changelog: see CHANGELOG.md
Usage
echo hello | copy
cat notes.txt | copy
tail -f app.log | copy -n 20
dmesg | copy -c 500 -pLicense
MIT