#clipboard #file #why #clipsaver

app clipsaver

A CLI utility that allows you to save images in you clipboard to a file

2 unstable releases

Uses new Rust 2024

0.2.0 Mar 22, 2025
0.1.0 Sep 15, 2023

#615 in Command line utilities

Download history 1/week @ 2025-02-08 3/week @ 2025-02-15 2/week @ 2025-03-01 119/week @ 2025-03-22 9/week @ 2025-03-29

128 downloads per month

MIT license

21KB
112 lines

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

Dependencies

~8–21MB
~340K SLoC