slurp(1)
โจ slurp(1) โ the region-selector bestie โจ
okay so like. hi. you're looking at the manual for slurp, and honestly? she's iconic. she's a command-line utility, she lives in the General Commands Manual, and she's here to help you pick a little rectangle off your screen. let's get into it ๐
๐ธ NAME ๐ธ
slurp โ select a region in a Wayland compositor
๐ SYNOPSIS ๐
slurp [options...]
๐ฆ DESCRIPTION ๐ฆ
slurp is a command-line utility that lets you select a region from Wayland compositors which support the layer-shell protocol. literally her whole thing. you just hold the pointer to select, or click to cancel the selection. that's it, that's the vibe. no cap ๐
now, here's where it gets interesting. if the standard input is not a TTY, or if you used the -r option, then slurp switches modes and reads a list of predefined rectangles so you can do quick selection instead of freehand dragging. each line has to be in this exact shape:
<x>,<y> <width>x<height> [label]
the label? optional, bestie. it can be any string that doesn't contain newlines. and you can grab it later using the %l sequence inside a format string. so cute, so useful ๐ซถ
two more keyboard things to know about while you're selecting:
- hit the Esc key โ selection is cancelled ๐ญ
- hold the Space key โ the selection moves instead of being resized โจ
๐ OPTIONS ๐
-hโ show the help message and quit. short, sweet, informative.-dโ display the dimensions of the selection. now you know how big your rectangle is ๐-bcolor โ set the background color. peek at COLORS below for the deets.-ccolor โ set the border color. again, COLORS has you.-scolor โ set the selection color. yes. also COLORS.-Bcolor โ set the color used for highlighting predefined rectangles from standard input when they are not selected. (this one doesn't send you to COLORS, so, y'know, do with that what you will ๐ธ)-Ffont family โ set the font family name used when displaying the dimensions box. only useful when you pair it with-d, fyi. the font family names guaranteed to work are the standard generic CSS2 options:serif,sans-serif,monospace,cursiveandfantasy. it defaults to thesans-seriffamily name. periodt.-wweight โ set the border weight.-fformat โ set the format. the FORMAT section is right down there, go look ๐-pโ select a single pixel instead of a rectangle. โ ๏ธ heads up: this mode ignores any predefined rectangles read from the standard input.-oโ add predefined rectangles for all outputs, as if they'd been provided on standard input. and the label for each one? it'll be the name of the output. love that for us ๐-rโ require the user to select one of the predefined rectangles. those can come from standard input, or โ if-ois used โ the rectangles of all display outputs. ๐จ this option conflicts with-p. pick a lane bestie ๐ญ-awidth:height โ force selections to have the given aspect ratio. note that this constraint is not applied to the predefined rectangles specified using-o. so those little guys are free to be whatever shape they want ๐ฆ
๐ COLORS ๐
colors can be given in either #RRGGBB or #RRGGBBAA format. the # is optional โ she's flexible like that ๐
โญ FORMAT โญ
here's every interpreted sequence, laid out for you:
%xโ the x-coordinate of the selection%yโ the y-coordinate of the selection%wโ the width of the selection%hโ the height of the selection%Xโ the x-coordinate of the selection, with coordinates relative to the output containing the top left corner%Yโ the y-coordinate of the selection, with coordinates relative to the output containing the top left corner%Wโ the width of the selection cropped to the output containing the top left corner%Hโ the height of the selection cropped to the output containing the top left corner%lโ the label included with the region fromstdin%oโ the name of the output containing the top left corner, or"<unknown>"if it's not known ๐
and the default format? it's this, exactly:
"%x,%y %wx%h\n"
๐ KEYBOARD CONTROLS ๐
these are the keyboard actions you can use while you're mid-selection, bestie:
- Escape โ cancel the selection and exit
slurp - Space โ if you're currently making a selection, then while space is held down, move the entire selection rather than change the selection's size as you move the pointer
- Shift โ experimental. if the
-aoption wasn't specified, then set the aspect ratio to 1:1 while shift is held down, and releasing it restores the un-constrained aspect ratio. ๐ note: this behavior may change in the future depending on feedback
๐ AUTHORS ๐
maintained by Simon Ser <contact@emersion.fr>, who is assisted by other open-source contributors. for more info about slurp development, see https://github.com/emersion/slurp. the whole community ate with this one, fr fr ๐ซถ
and that's the whole page, babes ๐ this was slurp(1) from the General Commands Manual, dated 2026-03-22. go select a region. you got this. slay โจ๐ธ๐
๐ฆ where this page comes from
- ubuntu stonking: slurp 1.6.0really1.5.0-1 ยท MIT
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms