Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

Clipboard

> 数据库
Open source

️ Your new, smart clipboard manager

5.9K stars0 likes1 views
WebsiteGitHub

About

️ Your new, smart clipboard manager

The Clipboard Project cannot continue development unless I receive help from someone who knows C++.

If you are this person, please email me at [email protected]





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!


  • Copy and paste text, files, directories, binary data, your goat, anything
  • Infinite numbers of clipboards with unlimited capacity and history each,
  • Seriously kickASS performance because I'm sick of slow software,
  • Seamless integration with your existing clipboard systems,
  • Support for your favorite languages like español, português, Türkçe, and Français,
  • A superbly scriptable API to automate your workflows in a cinch,
  • Gorgeous and ear candy for your viewing and listening pleasure,
  • Documentation you'll actually want to read (all in this readme)
  • And oodles more!

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


</a>
<a href="https://app.codecov.io/gh/Slackadays/Clipboard">
    
</a>

<br>
<a href="https://github.com/Slackadays/Clipboard/releases">
    
</a>
<a href="https://discord.gg/J6asnc3pEG"></a>

<br>





bash
curl -sSL https://github.com/Slackadays/Clipboard/raw/main/install.sh | sh

powershell
(Invoke-WebRequest -UseBasicParsing https://github.com/Slackadays/Clipboard/raw/main/install.ps1).Content | powershell


Alpine Linux (you'll need to enable the Community packages first)

bash
apk add clipboard

AUR (Use your favorite AUR helper such as yay. You can also get clipboard-bin and clipboard-git)

bash
yay -S clipboard

yay -S clipboard-bin

yay -S clipboard-git

Conda-forge (Use any Conda package manager such as conda, mamba, or pixi)

bash
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-clipboard

Flatpak Flathub (You can also get our nightly Flatpak builds under GitHub Downloads)

bash
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)

bash
emerge -av app-misc/clipboard

Homebrew

bash
brew install clipboard

Nix

bash
nix-env -iA nixpkgs.clipboard-jh

Pacstall

bash
pacstall -I clipboard-bin

Scoop

powershell
scoop install clipboard

Snap (You can also get our nightly Snap builds under GitHub Downloads)

bash
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

bash
sudo xbps-install -S Clipboard

Winget

powershell
winget install -e --id Slackadays.Clipboard

GitHub 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.

bash
# 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.

Copy   cb [--](copy|cp)[(num)|_(id)] (file) [files] or (something) | cb [[--](copy|cp)][(num)|_(id)]

Copy a file.

bash
$ cb copy FooFile
$ cb --copy FooFile
$ cb cp FooFile 
$ cb --cp FooFile
# These are the same!

Copy a file and a directory.

bash
$ cb copy FooFile BarDir
# These are also the same!

Copy piped in data.

bash
$ 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.

bash
$ 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"

bash
$ cb copy4 FooFile

Copy piped in data to the persistent clipboard named "hello"

bash
$ echo "Foobar" | cb copy_hello

Copy text to the clipboard named "hey"

bash
$ 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.

bash
$ cb cp50 "Aventura/God's Project/04 Un Chi Chi.flac" BarDir BazDir

Cut   cb [--](cut|ct)[(num)|_(id)] (file) [files] or (something) | cb [[--](cut|ct)][(num)|_(id)]

Cut a file.

bash
$ cb cut FooFile
$ cb --cut FooFile
$ cb ct FooFile 
$ cb --ct FooFile
# These are the same!

Cut a file and a directory.

bash
$ cb cut FooFile BarDir
# These are also the same!

Cut piped in data.

bash
$ echo "Foobar" | cb cut

Note: Cutting piped in data is the same as copying, except that CB will delete all content after you paste it somewhere.

Cut text directly.

bash
$ 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"

bash
$ cb cut4 FooFile

Cut piped in data to the persistent clipboard named "hello"

bash
$ echo "Foobar" | cb cut_hello

Cut text to the clipboard named "hey"

bash
$ 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.

bash
$ cb ct50 "Aventura/God's Project/04 Un Chi Chi.flac" BarDir BazDir

Paste   cb [--](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.

bash
$ cb copy FooFile WhyAventuraIsTheBest.pdf

Paste in the current working directory.

bash
$ 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."

bash
$ cb p ".*Aventura.*"

Now, let's copy some raw data.

bash
$ echo "Bananas!" | cb

Paste the raw data file in the current working directory.

bash
$ cb paste
# Also the same

Pipe everything out to some file.

bash
$ cb paste > SomeFile

Pipe everything from clipboard "42" out to some file.

bash
$ cb paste42 > SomeFile
$ cb p42 > SomeFile
$ cb -c 42 > SomeFile 
# These three versions all work great!

Pipe everything out to some program.

bash
$ cb | cat
# These three versions also all work great.
$ cb | Write-Output 
# The version for PowerShell

Pipe everything from persistent clipboard "2" out to some program.

bash
$ 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 PowerShell

Note: If you paste after cutting, then CB will delete the raw data afterwards, effectively only letting you paste once.


Add Contents   cb [--](add|ad)[(num)|_(id)] (file|text) [files] or (something) | cb [[--](add|ad)][(num)|_(id)]

Start by copying something.

bash
$ cb copy FooFile

Add a file.

bash
$ cb add SomeOtherFile
$ cb --add SomeOtherFile
$ cb ad SomeOtherFile 
$ cb --ad SomeOtherFile
# CB now holds FooFile and SomeOtherFile

Add a directory.

bash
$ cb add "We Broke The Rules"

Now let's copy some raw data.

bash
$ cb copy "'Let me find that'"

Add raw data to the end of what's stored.

bash
$ 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.

bash
$ echo " What's yours?" | cb add 
# The content is now: 'Let me find that' is one of Romeo Santos' catchphrases. What's yours?

Remove Contents   cb [--](rem

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++bashcliclipboardclipboard-manager

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库