lbarrys/cliphist

Project ID: 209227

Description

Clipboard history “manager” for Wayland.

  • Write clipboard changes to a history file.
  • Recall history with dmenu, rofi, wofi (or whatever other picker you like).
  • Both text and images are supported.
  • Clipboard is preserved byte-for-byte.
    • Leading/trailing whitespace, no whitespace, or newlines are preserved.
    • Won’t break fancy editor selections like Vim wordwise, linewise, or block mode.
  • No concept of a picker, only pipes.

Installation Instructions

Install

1.sudo dnf copr enable lbarrys/cliphist 2.sudo dnf install -y cliphist

Usage

Listen for clipboard changes $ wl-paste --watch cliphist store This will listen for changes on your primary clipboard and write them to the history. Call it once per session - for example, in your Sway config.

Select an old item $ cliphist list | dmenu | cliphist decode | wl-copy Bind it to something nice on your keyboard.

Delete an old item $ cliphist list | dmenu | cliphist delete Or else query manually: $ cliphist delete-query "secret item".

Clear database $ cliphist wipe.

Picker examples

dmenu cliphist list | dmenu | cliphist decode | wl-copy

fzf cliphist list | fzf --no-sort | cliphist decode | wl-copy

rofi (dmenu mode) cliphist list | rofi -dmenu | cliphist decode | wl-copy

fuzzel (dmenu mode) cliphist list | fuzzel --dmenu | cliphist decode | wl-copy

wofi cliphist list | wofi -S dmenu | cliphist decode | wl-copy

To get rid of the numbers

fzf cliphist list | fzf -d $'\t' --with-nth 2 | cliphist decode | wl-copy

fuzzel cliphist list | fuzzel --dmenu --with-nth 2 | cliphist decode | wl-copy

wofi It kind of works but breaks with quotes in the original selection. I recommend not trying to hide the column with wofi. cliphist list | wofi --dmenu --pre-display-cmd "echo '%s' | cut -f 2" | cliphist decode | wl-copy

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Fedora 41 x86_64 (0)* Fedora 41 (2 downloads)
Fedora 42 x86_64 (0)* Fedora 42 (2 downloads)
Fedora 43 x86_64 (0)* Fedora 43 (2 downloads)
Fedora rawhide x86_64 (0)* Fedora rawhide (0 downloads)

* Total number of downloaded packages.