← 返回命令列表

Linux command

slurp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Select a region

slurp

Example

slurp -d

Example

slurp -p

Example

slurp -o -f '%o'

Example

grim -g "$(slurp -w 0)"

Example

wf-recorder -g "$(slurp -w 0)"

说明

slurp allows users to select a region on a Wayland compositor interactively. It outputs the selected region coordinates in a format that can be used by other tools like grim for screenshots or wf-recorder for screen recording. The tool renders a translucent overlay and lets users click and drag to select a rectangular region. It's designed to be combined with other Wayland-native tools through shell command substitution.

参数

-d
Display dimensions of selection
-p
Select a single point instead of region
-o
Select an entire output (display)
-r
Require selection to be inside a single output
-b _color_
Set selection box background color
-c _color_
Set selection box border color
-s _color_
Set selection color
-w _width_
Set selection border width (0 for no border)
-f _format_
Output format string (%x, %y, %w, %h, %o)
-a _ratio_
Force aspect ratio (e.g., 16:9)

FAQ

What is the slurp command used for?

slurp allows users to select a region on a Wayland compositor interactively. It outputs the selected region coordinates in a format that can be used by other tools like grim for screenshots or wf-recorder for screen recording. The tool renders a translucent overlay and lets users click and drag to select a rectangular region. It's designed to be combined with other Wayland-native tools through shell command substitution.

How do I run a basic slurp example?

Run `slurp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d do in slurp?

Display dimensions of selection