40

I'm looking for an application that can copy two or more items and then I can choose one of them to paste. Indeed, it should work on terminal.

Vitor Abella
  • 7,257
  • 12
  • 55
  • 102

2 Answers2

54

[Update on May 2020]

Clipit is now deprecated. The official replacement is Diodon. To download Diodon, you can use the instructions here.

--------------------------------------------------------------------------------------------------------

Clipit is the best among all.

sudo apt-get install clipit

Launch it, one icon will appear on top right where you can choose one of your clipboards.

dvdmn
  • 103
  • 4
Vitor Abella
  • 7,257
  • 12
  • 55
  • 102
  • 1
    Couldn't find a way to filter/search the list using Clipit :( – AlikElzin-kilaka Dec 13 '17 at 16:29
  • 3
    Cool program. Note that this is a blocking command, so if you want it to run in `~/.bashrc` or if you simply do not want it to freeze your terminal window while it runs: Use `clipit &` to run it. – SDsolar Jun 04 '18 at 14:23
  • This now has a bug that prevents it from being usable https://github.com/CristianHenzel/ClipIt/issues/97. – Uri Sep 20 '19 at 20:29
  • 5
    Clipit is now [deprecated](https://packages.debian.org/sid/misc/clipit). The official replacement is [Diodon](https://wiki.ubuntu.com/Diodon). To download Diodon, you can use the instructions [here](https://launchpad.net/~diodon-team/+archive/ubuntu/stable). – hb20007 May 13 '20 at 13:23
  • @hb20007 yes, hotkeys seem to be an issue. otherwise, it's a good alternative. – ssi-anik Feb 12 '21 at 16:52
40

CopyQ is a cross-platform, well-designed and fully-featured clipboard manager (my favorite). It features among others a (very handy) command line interface.

To install it on Ubuntu 18.04+:

sudo apt install copyq

To install it on Ubuntu 16.04-:

  • Downloading a .deb file:

    • Download the correct .deb file from github: hluk/CopyQ.
    • Perform installation:

      sudo dpkg -i copyq_*_Ubuntu_*.deb
      

Or

  • Using a PPA:

    $ sudo add-apt-repository ppa:hluk/copyq
    $ sudo apt update
    $ sudo apt install copyq
    

PPA info source: https://github.com/hluk/CopyQ#ubuntu-ppa

loxaxs
  • 759
  • 5
  • 15
  • 6
    Add global shortcut: Tray icon > Preferences > Shortcuts Tab > Custom Actions and Global Shortcuts.. > Add > Show/hide main window – Viktor Kruglikov Mar 30 '17 at 13:37
  • this is the right and best answer :| – Ghasem Pahlavan Jul 08 '17 at 20:45
  • Took me a while to figure out this tool. It's has a lot of possible functionality. One of the best things I've ever seen through. Thank you! – Mark Nov 29 '17 at 01:36
  • Can someone compare and contrast clipit and copyq? from apt-get, Copyq is 2.5MB of archives and 10MB of disk space, while clipit is 149KB and 612KB respectively. – Steven Lu Jul 03 '18 at 19:20
  • I think the idea is that clipit is gtk and copyq is qt, so me being on gnome it makes sense the former requires fewer things to get installed. Now, I will say this from my testing, clipit does not work very well. Hopefully copyq will get the job done. – Steven Lu Jul 03 '18 at 19:25
  • 1
    I couldn't get the global short cut to display the clipboard. I didn't any of the extra features, so clipit worked better for me – Fred Schoen Aug 10 '18 at 13:16
  • Ubuntu 16.04. My impression is that using copyq is like using hadron collider where you need a simple hammer. A hint about global shortcuts - first you go to Hot Keys tab and find there that F6 is for "Commands/GlobalShortcuts...". Then you click tray icon and select "show/hide" and the main window appears. Then you hit F6 and "Copyq commands" window opens. Then you click "+ Add" and select "Show the tray menu", assign a hotkey and apply changes. Voila. Now you can easily access the tray menu when you need to copy smth back from the clipboard. Clipit - install, hit Ctrl+Alt+H, done. – trushkevich Sep 06 '18 at 07:34
  • 1
    copyq supports images and clipit doesn't, if that's something you care about – Reza Sanaie Nov 01 '18 at 17:27
  • Does CopyQ have this feature? https://github.com/hluk/CopyQ/issues/1149 – Ram Patra May 23 '19 at 09:13
  • Everyone, in case you click on it and it seems not to be opening, it's in the tray icons section! Or you can also use the `copyq show` command to show it. – aderchox Jul 16 '20 at 11:57