️ Your new, smart clipboard manager
The Clipboard Project is a fast and lightweight, feature packed, and user friendly tool that lets you do more on the computer in style. Seriously.
Say hello to one of the most cutting-edge clipboard managers ever. Save time and effort easier and more powerfully than ever before.
Don't just take my word for it!
I believe Clipboard is the best tool for clipboard interaction. As a matter of fact, as of today you have 2713 stars on github, kudos! Keep up the good work.
- pidario on GitHub.com
Thanks for your work! This is by-far one of my favourite projects on GitHub!
- MaddyGuthridge on GitHub.com
...I've just discovered CB & it's suiting my needs very well!
- all64bits on Discord.com
I started using this because I just wanted an easy "cb copy && cb paste" VS trying to remember the correct input AND output flags when Im using xclip with different file types. I write a lot of shell scripts that copy certain stuff like images and text and this makes it a lot easier.
- SweetBabyAlaska on Reddit.com
As a sysadmin and hourly terminal user, I found it so useful. Making stuffs some easier.
- Simpleboy_ir on Reddit.com
Thank you for this app, so simple yet effective! Hats off
- GlassGruber on GitHub.com
BTW, really LOVE this project. Its [sic] so unbelievable it isn't already in Linux.
- AtomicRobotMan0101 on GitHub.com
...Thank you again for this great application!
- kohane27 on GitHub.com
curl -sSL https://github.com/Slackadays/Clipboard/raw/main/install.sh | sh(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/install.ps1).Content | powershellAlpine Linux (you'll need to enable the Community packages first)
apk add clipboardAUR (Use your favorite AUR helper such as yay. You can also get clipboard-bin and clipboard-git)
yay -S clipboard
yay -S clipboard-bin
yay -S clipboard-gitConda-forge (Use any Conda package manager such as conda, mamba, or pixi)
conda install -c conda-forge cb-clipboard
mamba install -c conda-forge cb-clipboard
micromamba install -c conda-forge cb-clipboard
pixi global install cb-clipboardFlatpak Flathub (You can also get our nightly Flatpak builds under GitHub Downloads)
flatpak install app.getclipboard.Clipboard
# After installing, do "alias cb='flatpak run app.getclipboard.Clipboard'" to use CB easily.
# Then, add that command to your terminal profile (like .bashrc) to make it work every time.Gentoo GURU and LiGurOS (For Gentoo, enable the GURU repo first)
emerge -av app-misc/clipboardHomebrew
brew install clipboardNix
nix-env -iA nixpkgs.clipboard-jhPacstall
pacstall -I clipboard-binScoop
scoop install clipboardSnap (You can also get our nightly Snap builds under GitHub Downloads)
sudo snap install clipboard
# After installing, do "alias cb='snap run clipboard'" to use CB easily.
# Then, add that command to your terminal profile (like .bashrc) to make it work every time.Void Linux
sudo xbps-install -S ClipboardWinget
winget install -e --id Slackadays.ClipboardGitHub Downloads
First, get the latest revision of the Clipboard Project from GitHub Actions or the latest release from GitHub Releases.
Then, unpack what you just downloaded to a nice place anywhere on your system.
If you downloaded the Flatpak, now do flatpak install what-you-downloaded.flatpak. Or if you downloaded the Snap, now do sudo snap install --dangerous what_you_downloaded.snap.
Finally, add CB to your PATH (so that you can run it anywhere) by doing one of the following:
…You'll need CMake, C++20 support, and OpenSSL, and if you want X11 or Wayland support, you'll also need libx11 or libwayland plus Wayland Protocols respectively. If you're on Linux, you'll need ALSA.
Get the latest release instead of the latest commit by adding --branch 0.9.1 right after git clone....
Change the system installation prefix by adding -DCMAKE_INSTALL_PREFIX=/custom/prefix to cmake .., or the library install location by adding -DCMAKE_INSTALL_LIBDIR=/custom/dir.
# First, let's download the code and go a nice place to build everything.
$ git clone https://github.com/Slackadays/Clipboard
$ cd Clipboard/build
# Now let's set up CMake and build CB.
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . -j 12
# Finally, let's install it onto our system.
$ cmake --install .Remove everything listed in install_manifest.txt. If you're not using Windows, you can also do xargs rm < install_manifest.txt.
…Add a number to the end of your action to choose which temporary clipboard you want to use (the default is 0). Or, add _ to use a persistent clipboard instead.
cb [--](copy|cp)[(num)|_(id)] (file) [files] or (something) | cb [[--](copy|cp)][(num)|_(id)]Copy a file.
$ cb copy FooFile
$ cb --copy FooFile
$ cb cp FooFile
$ cb --cp FooFile
# These are the same!Copy a file and a directory.
$ cb copy FooFile BarDir
# These are also the same!Copy piped in data.
$ echo "Foobar" | cb
$ echo "Foobar" | cb copy
# The "copy" action is optional here since the only possible action here in the first place is "copy"Copy text directly.
$ cb copy "Aventura was the best bachata band"Note: This happens instead of copying a file/directory if there is only one item present and that item doesn't exist as a file/directory.
Copy a file to the clipboard named "4"
$ cb copy4 FooFileCopy piped in data to the persistent clipboard named "hello"
$ echo "Foobar" | cb copy_helloCopy text to the clipboard named "hey"
$ cb --clipboard hey copy "Aventura was the best bachata band"
$ cb -c hey copy "Aventura was the best bachata band"
# These are the same!Copy a file with spaces and many directories to clipboard "50" using the abbreviated action name.
$ cb cp50 "Aventura/God's Project/04 Un Chi Chi.flac" BarDir BazDircb [--](cut|ct)[(num)|_(id)] (file) [files] or (something) | cb [[--](cut|ct)][(num)|_(id)]Cut a file.
$ cb cut FooFile
$ cb --cut FooFile
$ cb ct FooFile
$ cb --ct FooFile
# These are the same!Cut a file and a directory.
$ cb cut FooFile BarDir
# These are also the same!Cut piped in data.
$ echo "Foobar" | cb cutNote: Cutting piped in data is the same as copying, except that CB will delete all content after you paste it somewhere.
Cut text directly.
$ cb cut "Hunter2"Note: This happens instead of cutting a file/directory if there is only one item present and that item doesn't exist as a file/directory.
Cut a file to the clipboard named "4"
$ cb cut4 FooFileCut piped in data to the persistent clipboard named "hello"
$ echo "Foobar" | cb cut_helloCut text to the clipboard named "hey"
$ cb --clipboard hey cut "Aventura was the best bachata band"
$ cb -c hey cut "Aventura was the best bachata band"
# These are the same!Cut a file with spaces and many directories to clipboard "50" using the abbreviated action name.
$ cb ct50 "Aventura/God's Project/04 Un Chi Chi.flac" BarDir BazDircb [--](paste|p)[(num)|_(id)] [regex] [regexes] or cb [[--](paste|p][(num)|_(id)] | (something) or cb [[--](paste|p)][(num)|_(id)] > (some file)Start by copying or cutting something.
$ cb copy FooFile WhyAventuraIsTheBest.pdfPaste in the current working directory.
$ cb paste
$ cb --paste
$ cb p
$ cb --p
# These are the same!Note: If you paste after cutting, then CB will delete the original files that you cut.
Paste anything containing "Aventura."
$ cb p ".*Aventura.*"Now, let's copy some raw data.
$ echo "Bananas!" | cbPaste the raw data file in the current working directory.
$ cb paste
# Also the samePipe everything out to some file.
$ cb paste > SomeFilePipe everything from clipboard "42" out to some file.
$ cb paste42 > SomeFile
$ cb p42 > SomeFile
$ cb -c 42 > SomeFile
# These three versions all work great!Pipe everything out to some program.
$ cb | cat
# These three versions also all work great.
$ cb | Write-Output
# The version for PowerShellPipe everything from persistent clipboard "2" out to some program.
$ cb paste_2 | cat
$ cb p_2 | cat
$ cb -c _2 | cat
# These three versions also all work great.
$ cb -c _2 | Write-Output
# The version for PowerShellNote: If you paste after cutting, then CB will delete the raw data afterwards, effectively only letting you paste once.
cb [--](add|ad)[(num)|_(id)] (file|text) [files] or (something) | cb [[--](add|ad)][(num)|_(id)]Start by copying something.
$ cb copy FooFileAdd a file.
$ cb add SomeOtherFile
$ cb --add SomeOtherFile
$ cb ad SomeOtherFile
$ cb --ad SomeOtherFile
# CB now holds FooFile and SomeOtherFileAdd a directory.
$ cb add "We Broke The Rules"Now let's copy some raw data.
$ cb copy "'Let me find that'"Add raw data to the end of what's stored.
$ cb add " is one of Romeo Santos' catchphrases."
# The content is now: 'Let me find that' is one of Romeo Santos' catchphrases.Add raw data by piping it in.
$ echo " What's yours?" | cb add
# The content is now: 'Let me find that' is one of Romeo Santos' catchphrases. What's yours?cb [--](remNo open issues yet, or sync has not completed.