This is a lightweight program to enable clipboard history support for Sherlock.
sherlock-clp | sherlock | cliphist-decode | wl-copycliphist
If you're using Arch Linux, you can install the sherlock-clp package with the following command:
yay -S sherlock-clp-gitTo 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:
git clone https://github.com/skxxtz/sherlock-clipboard.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-clp /usr/local/bin/
Make sure you have the following dependency installed:
tar- Tar
-
Download the archive containing the latest release:
The archive can be found here.
-
Extract the files from the archive:
cd ~/Downloads/ tar -xzf sherlock-clipboard*.tar.gz
You can use tab-completion or run
lsto verify the name of the archive. -
Install the binary:
Now move the binary to a location on your
$PATHenvironment variable:sudo mv sherlock-clipboard /usr/local/bin/
Optionally also move the LICENSE file or delete it:
sudo mkdir -p /usr/share/doc/sherlock-clipboard sudo mv LICENSE /usr/share/doc/sherlock-clipboard/ # or, to remove it: rm LICENSE
To build a .deb package directly from the source, follow these steps:
Make sure you have the following dependencies installed:
rust- How to install rustgit- How to install git
-
Install the
cargo-debtool:First, you need to install the
cargo-debtool, which simplifies packaging Rust projects as Debian packages:cargo install cargo-deb
-
Build the Debian package:
After installing
cargo-deb, run the following command to build the.debpackage:cargo deb
This will create a
.debpackage in thetarget/debiandirectory. -
Install the generated
.debpackage:Once the package is built, you can install it using:
sudo dpkg -i target/debian/sherlock-clipboard*.debYou can use tab-completion or
ls target/debian/to confirm the file name.(Make sure to replace the filename if the version number is different.)