Skip to main content

clipshelf

A fast, good-looking clipboard history for Linux — press Super+V, pick, paste.

Latest release MIT license Linux

clipshelf remembers everything you copy (text, links, code, images) and brings it back with a Windows-style Super+V popup. It is a single Python file with zero dependencies to install: it only uses Python 3, GTK 3 and Xlib, which already ship with Ubuntu, Fedora, Debian and most GNOME desktops.

clipshelf picker showing pinned snippets and recent copies

Features

  • Tracks every copy — text, URLs, code and images, persisted across reboots.
  • Super+V popup that opens next to your mouse, like Windows 11. Press it again to close.
  • Pastes for you — hit Enter and the item is pasted straight into the app you were using (uses Ctrl+Shift+V automatically in terminals).
  • Search as you type, plus filter chips for All / Pinned / Text / Images.
  • Pin favourites so they stay at the top and are never trimmed.
  • Add your own snippets with the + button (or Ctrl+N) — perfect for addresses, canned replies, commands you always forget.
  • Edit any text entry in place.
  • Smart previews — colour swatches for #hex / rgb() values, monospace for code, highlighted links, image thumbnails.
  • Duplicate-free — copying something again moves it to the top instead of adding a copy.
  • Privacy-minded — skips entries that password managers (e.g. KeePassXC) mark as secret, stores history with owner-only permissions, and clearing keeps only what you pinned.
  • Follows your theme — dark or light, picked up from GNOME automatically.

Requirements

  • Linux with an X11 session (GNOME, Cinnamon, MATE, XFCE, …)
  • Python 3.8+ with PyGObject and GTK 3 (python3-gi, gir1.2-gtk-3.0) — preinstalled on virtually every GNOME desktop
  • libX11 and libXtst — part of every X11 install

Nothing to pip install, nothing to compile.

Install

One command (any distro)

curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/install.sh | bash

The installer checks your system, offers to install Python/GTK if they are somehow missing (apt, dnf, pacman, zypper, xbps, apk, eopkg), downloads the latest release and sets everything up. Run the same command again to upgrade. Options go after bash -s --, for example ... | bash -s -- --version v1.0.0; see install.sh --help.

Debian, Ubuntu, Mint, Pop!_OS (.deb)

Download clipshelf_1.0.0_all.deb from the latest release, then:

sudo apt install ./clipshelf_1.0.0_all.deb
clipshelf install

The second command (as your normal user) turns on autostart and the Super+V shortcut.

From source

git clone https://github.com/sudipnext/clipshelf.git
cd clipshelf
python3 clipshelf.py install

What clipshelf install sets up

  1. the program in ~/.local/bin/clipshelf (one-command and source installs),
  2. the background watcher, started now and on every login (~/.config/autostart),
  3. a Clipboard History launcher in your app grid,
  4. on GNOME, the Super+V shortcut. GNOME uses Super+V for the notification list by default, so that binding is moved aside — notifications remain on Super+M.

On other desktops, bind any shortcut you like to clipshelf show.

Using the picker

Key Action
type Search
↑ ↓ / PgUp PgDn Move the selection
Enter Paste into the previous app
Shift+Enter Copy only, don't paste
Alt+1 … Alt+9 Quick-paste the n-th item
Ctrl+P Pin / unpin
Ctrl+E Edit the selected text entry
Ctrl+N New snippet (saved as pinned)
Del (empty search) / Ctrl+D Remove the selected entry
Tab / Shift+Tab Switch filter
Esc Clear the search, then close

Clicking an entry pastes it as well. The broom button clears unpinned history (click twice to confirm).

Command line

clipshelf show           open or close the picker (what Super+V runs)
clipshelf add [TEXT]     save a pinned snippet; reads stdin if TEXT is "-" or omitted
clipshelf list           print the history
clipshelf clear [--all]  clear unpinned history (--all removes pinned entries too)
clipshelf daemon         run the background watcher (started automatically)
clipshelf quit           stop the background watcher
clipshelf install        install, autostart and bind Super+V
clipshelf uninstall      undo install (your history is kept)
clipshelf --version      print the version

Example — save the output of a command as a snippet:

ip -4 addr show wlan0 | clipshelf add -

Configuration

Settings live in ~/.config/clipshelf/config.json (created on first run). Restart the watcher with clipshelf quit && clipshelf show after editing.

Key Default Meaning
max_items 200 Unpinned entries to keep. Pinned entries are never trimmed.
paste_on_select true Paste into the previous app on Enter; false = copy only.
capture_images true Record copied images.
position "pointer" "pointer" opens by the mouse, "center" in the middle of the screen.
theme "auto" "auto", "dark" or "light".
width, height 440, 560 Picker size in pixels.
shortcut "<Super>v" Shortcut bound by clipshelf install (GNOME accelerator syntax).

How it works

  • A small background process listens for clipboard ownership changes through GTK and stores each new entry in ~/.local/share/clipshelf/history.json (images as PNG files beside it).
  • clipshelf show is a tiny client that talks to that process over a Unix socket in $XDG_RUNTIME_DIR, so the popup appears instantly.
  • Auto-paste remembers which window was focused before the popup opened and sends the paste keystroke with the X Test extension via ctypes — no xdotool needed.

Limitations

  • Wayland: compositors only let focused apps read the clipboard, so background capture and auto-paste don't work reliably there. Log in with an X11 session ("Ubuntu on Xorg") to use clipshelf.
  • Rich formats (HTML, files) are stored as their plain-text form.

Uninstall

curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/uninstall.sh | bash

This stops the watcher and removes the shortcut, autostart entry, launcher and program, and gives Super+V back to GNOME's notification list. Your history is kept in ~/.local/share/clipshelf; add -s -- --purge to delete it as well:

curl -fsSL https://raw.githubusercontent.com/sudipnext/clipshelf/main/uninstall.sh | bash -s -- --purge

Installed the .deb? Run clipshelf uninstall first, then sudo apt remove clipshelf.

License

MIT

Metadata

Release files for clipshelf 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clipshelf 1.0.0
File Size Uploaded Provenance Actions
clipshelf-1.0.0.tar.gz 23.1 kB With provenance Details for clipshelf-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clipshelf 1.0.0
File Interpreter ABI Platform Actions
clipshelf-1.0.0-py3-none-any.whl Python 3 none any Details for clipshelf-1.0.0-py3-none-any.whl

Total release size: 46.4 kB

Release files / clipshelf-1.0.0.tar.gz

Download URL clipshelf-1.0.0.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a3688d1a10b0343b987cb603380650026ae523a037916d06ce21eacb508222ea
BLAKE2b-256 checksum
How to use checksums
d3d888772744fb5d6318bd7f5bf6b08dcf9fbc05f4438ff0f8e0c7411fa5f28c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / clipshelf-1.0.0-py3-none-any.whl

Download URL clipshelf-1.0.0-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cad5d7afd2e32a2db56eea95e1acf0c125edf3d5ccc3e27c42c626d8e57c9765
BLAKE2b-256 checksum
How to use checksums
4f4b83f40bedd37e4e4a86c12b484e583934c7a93e87f5fefcd8091f26609712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for clipshelf 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for clipshelf-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page