← Back to browse

by @cush

Quick Screenshot

Region-select a screenshot with grim + slurp, copy to clipboard, notify.

steps
2
installs
0
stars
0
size
278 B
Download .kdl

Readme

Why this exists

grim and slurp are the Wayland-native screenshot tools. They're fantastic but the canonical "select region, copy to clipboard" command is a long pipe nobody remembers. This workflow bakes that pipe into a chord.

How it works

slurp opens an interactive region selector. grim -g captures just that region. wl-copy --type image/png puts the result on your clipboard so you can paste straight into Slack/Discord/wherever.

Caveats

  • Wayland-only. X11 users want maim + xclip instead.
  • The notify fires whether or not you actually selected a region. If you cancel slurp (Esc), the pipe still completes with empty output.

KDL source

// Quick screenshot — by @cush
workflow "Quick Screenshot" {
    subtitle "Region select → clipboard. One chord."

    trigger {
        chord "super+shift+s"
    }

    shell "grim -g \"$(slurp)\" - | wl-copy --type image/png"
    notify "📸 Region copied to clipboard"
}