How I screenshot on Wayland
- Posted: October 11, 2025
- Updated: October 11, 2025
Motivation: I keep forgetting how to combine slurp
and grim
to screenshot.
# To select area to print and save in a file:
slurp | grim -g - $FILENAME.png
# To select area to print and save in the clipboard:
slurp | grim -g - - | wl-copy
You can map the Print key to do that. In Sway, add to your config:
bindsym Print exec grim -g "$(slurp -d)" - | wl-copy
In case it help, my full sway config.