grimshot(1)
π grimshot(1) β like, the manual, but make it make sense
okay so bestie, this is grimshot from the General Commands Manual β a little helper for taking screenshots inside sway π¦. She's tiny, she's powerful, and she's about to be your new favorite. Let's go β¨
πΈ SYNOPSIS πΈ
grimshot [--notify] [--cursor] [--freeze] [--wait N] (copy|save)
[TARGET] [FILE]
grimshot check
grimshot usage
fr fr that's the whole shape of it: some optional flags, then you pick copy or save, then a TARGET and a FILE if you feel like it. There's also check and usage as their own little standalone modes π
β¨ OPTIONS β¨
--notifyβ pops a notification so you actually know the screenshot happened π. And listen β when you're saving to a file andxdg-open(1)is available, the notification comes with actions to open the file or the directory it lives in. icon behavior ngl.--cursorβ includes your cursors in the screenshot. yes, the little pointer gets to be in the picture too π«Ά--freezeβ freezes the displays before taking the screenshot. requireswayfreeze. main character energy: everybody hold still π--wait Nβ waitsNseconds before taking the screenshot. important detail: it waits after any manual selection is made. recommended to combine with--notifyso you actually know when the shot got taken β
π and then the subcommands π
saveβ saves the screenshot into a regular file. where does it go? glad you asked: grimshot writes image files toXDG_SCREENSHOTS_DIRif that's set (or defined inuser-dirs.dirs), otherwise it falls back toXDG_PICTURES_DIR. a variable set in the environment takes precedence overuser-dirs.dirsπ. SetFILEto'-'and it pipes the output to STDOUT instead. And if you want to rename your babies, set theGRIMSHOT_FILENAME_FORMATenv variable to adate(1)format string to override the default filename πcopyβ copies the screenshot data (asimage/png) into the clipboard. boom, paste it anywhere πsavecopyβ the both-at-once queen π. Saves the screenshot into a regular file (see thesavedocumentation) and copies the screenshot data into the clipboard (see thecopydocumentation). why choose π
π DESCRIPTION π
grimshot is an easy-to-use screenshot utility for sway. Under the hood it's giving a convenient interface over grim, slurp and jq, and it supports storing the screenshot either directly to the clipboard using wl-copy or to a file. that's it, that's the whole vibe check β¨
π¦ EXAMPLES π¦
so the classic usage pattern β literally the thing everyone does β is adding these bindings to your sway config:
# Screenshots:
# Super+P: Current window
# Super+Shift+p: Select area
# Super+Alt+p Current output
# Super+Ctrl+p Select a window
bindsym Mod4+p exec grimshot save active
bindsym Mod4+Shift+p exec grimshot save area
bindsym Mod4+Mod1+p exec grimshot save output
bindsym Mod4+Ctrl+p exec grimshot save window
And/or (yes, and/or, live your truth) add these environment variables to your shell configuration:
export GRIMSHOT_FILENAME_FORMAT='%Y-%m-%dT%H-%M-%S'
β TARGETS β
grimshot can capture the following named targets β memorize these, they're the whole personality:
activeβ Captures the currently active window. the one in the spotlight πscreenβ Captures the entire screen. This includes all visible outputs. everything. all of it πareaβ Allows manually selecting a rectangular region, and captures that. click-drag realness β¨windowβ Allows manually selecting a single window (by clicking on it), and captures it. just one, bestie πoutputβ Captures the currently active output. one monitor's worth π¦anythingβ the chaotic icon π. Allows manually selecting a single window (by clicking on it), an output (by clicking outside of all windows, e.g. on the status bar), or an area (by using click and drag). truly the "why not all three" of targets π
π OUTPUT π
Grimshot will print the filename of the captured screenshot to stdout if called with the save or savecopy subcommands. so like, it tells you where it put the thing π«Ά
π SEE ALSO π
no cap, that's the whole page. go take some screenshots, you're gonna slay π
and that's the tea π β this was grimshot(1) from the General Commands Manual, this copy dated 2026-10-28. mwah, go forth and screenshot π
β¨
π¦ where this page comes from
- arch rolling: sway-contrib 1.12-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms