This is a lightweight program to enable clipboard history support for Sherlock using clipvault, which is adapted from a similar program which uses cliphist instead. Do check them out!
sherlock-clipvault | sherlock | clipvault get | wl-copyThis works if your clipboard entries mostly contain text. However, if you have a lot of images in your clipboard and you want to improve how quick it opens/prevent hanging due to a lot of images on your clipboard, you can use this:
sherlock-clipvault --shrink-thumbnails | sherlock | clipvault get | wl-copyThe thumbnails usually are small enough that they're indistinguishable for most cases, so I would recommend the above command instead.
- This project uses rayon to parallelize retrieval of entries from
clipvault get, improving performance. - This program also supports the use of a flag (
--shrink-thumbnails) for downscaling images when displayed within sherlock for performance. The default command does not downscale images by default, in case people might use the extra resolution that their original images would have, but the option is there if you need your clipboard to open as fast as possible.
clipvault
To build sherlock-clipboard from source, follow these steps.
Make sure you have the necessary dependencies installed:
rust- How to install rustgit- How to install git
-
Clone the repository:
cd /tmp git clone https://github.com/DeltaCream/sherlock-clipvault.git cd sherlock-clipboard
-
Build the project:
cargo build --release
-
Install the binary:
After the build completes, install the binary to your system:
sudo cp target/release/sherlock-clipvault /usr/local/bin/
-
(Optional) Delete the build directory:
rm -rf /tmp/sherlock