grimshot(1) | General Commands Manual | grimshot(1) |
NAME
grimshot - a helper for screenshots within sway
SYNOPSIS
grimshot [--notify] [--cursor] [--wait N] (copy|save)
[TARGET] [FILE]
grimshot check
grimshot usage
OPTIONS
--notify
--cursor
--wait N
save
copy
savecopy
DESCRIPTION
Grimshot is an easy-to-use screenshot utility for sway. It provides a convenient interface over grim, slurp and jq, and supports storing the screenshot either directly to the clipboard using wl-copy or to a file.
EXAMPLES
An example usage pattern is to add 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 add these environment variables to your shell configuration:
export GRIMSHOT_FILENAME_FORMAT="$(date --iso-8601=ns | tr ':' -)"
TARGETS
grimshot can capture the following named targets:
active
screen
area
window
output
anything
OUTPUT
Grimshot will print the filename of the captured screenshot to stdout if called with the save or savecopy subcommands.
SEE ALSO
2025-08-03 |