table of contents
slurp(1) | General Commands Manual | slurp(1) |
NAME¶
slurp - select a region in a Wayland compositor
SYNOPSIS¶
slurp [options...]
DESCRIPTION¶
slurp is a command-line utility to select a region from Wayland compositors which support the layer-shell protocol. It lets the user hold the pointer to select, or click to cancel the selection.
If the standard input is not a TTY or the -r option is used, slurp will read a list of predefined rectangles for quick selection. Each line must be in the form "<x>,<y> <width>x<height> [label]". The label is optional and can be any string that doesn't contain newlines. It can be accessed using the "%l" sequence in a format string.
If the Esc key is pressed, selection is cancelled. If the Space key is held, the selection is moved instead of being resized.
OPTIONS¶
-h
-d
-b color
-c color
-s color
-B color
-F font family
-w weight
-f format
-p
-o
-r
-a width:height
COLORS¶
Colors may be specified in #RRGGBB or #RRGGBBAA format. The # is optional.
FORMAT¶
Interpreted sequences are:
%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
%Y The y-coordinate of the selection with coordinates relative to the output
%W The width of the selection cropped to the output containing the top left
%H The height of the selection cropped to the output containing the top left
%l Label included with region from stdin
%o The name of the output containing the top left corner, or "<unknown>" if
The default format is "%x,%y %wx%h\n".
KEYBOARD CONTROLS¶
The following keyboard actions can be used during selection:
Escape Cancel the selection and exit slurp
Space If currently making a selection, 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 -a option wasn't specified, then set the aspect ratio to 1:1 while shift is held down, 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 information about slurp development, see https://github.com/emersion/slurp.
2023-12-14 |