clipsaver

Crates.ioclipsaver
lib.rsclipsaver
version0.2.0
created_at2023-09-15 16:44:29.339834+00
updated_at2025-03-22 22:31:24.890963+00
descriptionA CLI utility that allows you to save images in you clipboard to a file.
homepagehttps://ionshard.com/
repositoryhttps://github.com/Ionshard/clipsaver
max_upload_size
id973797
size69,428
Victor Ling (Ionshard)

documentation

README

Clipsaver

Clipsaver is a simple utility that allows you to save an image currently stored in your OS' clipboard and save it as a file.

Why?

I like to use Cmd+Shift+4 on MacOS to screenshot a portion of my window, most of the time I immediately paste this image into a chat program or website. However sometimes I want the screenshot to be longer lived or I need it as a file due to a restriction at the source. Instead of needing to go into the options of the clip tool and switch back to storing the screenshot as a file (and then remember to switch it back afterwards) this tool was created to allow me to quickly save the image in the clipboard to disk.

Additionally it was a good way to get started in Rust

Install

Use cargo-bininstall

cargo-binstall clipsaver

If you trust running generated shell scripts from 3rd party servers...

curl -fsSL https://bina.egoist.dev/Ionshard/clipsaver | sh

Usage

clipsaver -d ~/Pictures/Screenshots
Commit count: 11

cargo fmt