Clipboard history keeper/scratchpad with language detection for text, image metadata extraction, and OCR. This is meant to be a clipboard history keeper and scratchpad.
- Why I built it
- Dependencies
- Build Instructions
- Running
- Auto-start (Hyprland)
- Auto-start (Sway)
- Roadmap
- Versions
I noticed I was using my clipboard history for more than just keeping clipboard history. I found myself searching through it for some information I frequently had to copy and paste such as email addresses, phone numbers, addresses, and more. So I built Clipser to make it easier to access this information, and while I was at it a few extra features as well.
Required (core CLI + database):
- g++ (C++23), make, and pkg-config
- sqlite3 (core database storage)
- libmagic (file type detection)
- exiv2 (image metadata extraction)
- libexttextcat (language detection)
- tesseract + leptonica (OCR headers used by current core build)
Optional (build only if you need these targets):
- gtkmm-4.0 (GTK UI in
src/gui)
sudo apt-get update
sudo apt-get install build-essential pkg-config libmagic-dev libexiv2-dev libexttextcat-dev libsqlite3-dev libtesseract-dev libleptonica-dev
sudo apt-get install sqlite3Optional (GTK UI):
sudo apt-get install libgtkmm-4.0-devsudo pacman -S --needed base-devel pkgconf file exiv2 libexttextcat sqlite tesseract leptonicaOptional (GTK UI):
sudo pacman -S --needed gtkmm-4.0sudo dnf install gcc-c++ make pkgconfig file-devel exiv2-devel libexttextcat-devel sqlite-devel tesseract-devel leptonica-develOptional (GTK UI):
sudo dnf install gtkmm4.0-develOpen a terminal and navigate to the project directory. Then, run the make all command.
Or copy paste the following that will do just that:
git clone https://github.com/jernejmarcic/Clisper
cd Clisper
make allMaybe I will add precompiled binaries so you don't have to compile it yourself and install all the dependancies.
You need two separate instances so both text and images are captured.
wl-paste --type image --watch /path/to/main
wl-paste --type text --watch /path/to/mainAdd the two commands to your Hyprland config
exec-once = wl-paste --type image --watch /path/to/main
exec-once = wl-paste --type text --watch /path/to/mainAdd the two commands to your Sway config
exec wl-paste --type image --watch /path/to/main
exec wl-paste --type text --watch /path/to/main- DB works
- Integration for dmenu compatible interfaces
FULL RELEASE
- Configurable database
- Configurable metadata extraction
- Configurable post-processing
- Image OCR via tesseract
- Custom GTK app
- Custom cross platform copy/paste utility