2 unstable releases
Uses new Rust 2024
0.2.0 | Mar 22, 2025 |
---|---|
0.1.0 | Sep 15, 2023 |
#720 in Command line utilities
128 downloads per month
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–22MB
~337K SLoC