SHEET 02projects/shotpaste/ REVISED 

shotpaste

A small Rust daemon that puts every new screenshot on the clipboard as an image, a file and a path in one write, so a single paste works in any app.

Year
2026
Type
Open source
Stack
  • Rust

The problem

Apps disagree about what a pasted screenshot is. Slack, WhatsApp and Discord want image bytes. A JIRA upload field or a file picker wants a file. A terminal, a code editor or a coding agent like Claude Code wants a path it can open. Your screenshot tool usually puts just one of those on the clipboard, so you take the screenshot twice, or you go and drag the file out of Explorer.

What I built

shotpaste is a background daemon that watches your screenshot folder. When a new PNG lands there, it writes to the clipboard once, with three formats at the same time: the image bytes, a file-drop list and the file path as text. Each app takes the format it understands, so one Ctrl+V (Cmd+V on a Mac) does the right thing wherever you paste.

It runs on Windows, macOS and Linux, ships as a single static binary, and is MIT licensed.

How it works

  1. You press your usual screenshot shortcut: Win+PrtScn, Cmd+Shift+3 or PrtScn.
  2. shotpaste sees the new PNG in the watched folder.
  3. It writes the clipboard once, with all three formats.
  4. You paste, and the app you paste into picks the format it wants.
Format on the clipboard Who reads it
Image bytes Slack, WhatsApp, Discord, image editors, browsers
File-drop list JIRA uploads, file pickers, file managers
Text path Terminals, editors, Markdown previews

shotpaste status tells you whether it’s running. By default it watches your OS’s standard screenshot folder, and shotpaste watch takes a different path if yours lives elsewhere.

Decisions and trade-offs

shotpaste watches a folder instead of replacing your screenshot tool or hooking a key. You keep your shortcut and your OS’s capture UI, and shotpaste reacts when a file appears. The cost is that it only sees screenshots that get saved to disk.

All three formats go in a single write. A clipboard write replaces whatever was there before, so writing the formats one after another would leave only the last one.

The prebuilt installers are the main install path. They download a ready binary. cargo install shotpaste works too, but it compiles from source, which is slower.

Piping a script into a shell asks for trust, so the README shows how to print the install script before you run it, and each release publishes the sha256 of every artifact.

Status

Published on crates.io, with prebuilt installers on GitHub Releases for Windows, macOS and Linux, and CI on GitHub Actions.

# macOS / Linux
curl -fsSL https://github.com/ebrahim-sameh/shotpaste/releases/latest/download/shotpaste-installer.sh | sh
shotpaste install
# Windows
irm https://github.com/ebrahim-sameh/shotpaste/releases/latest/download/shotpaste-installer.ps1 | iex
shotpaste install

The build log has more on the clipboard side: One screenshot, three pastes.

Console

Type help and press Enter.