Linux command
slop 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
slop
Double click
slop -D
Highlight
slop -l
Example
slop -f "%g"
Example
slop -c [red],[green],[blue],[alpha]
Example
slop -b [thickness]
说明
slop (Select Operation) queries the user for a screen region selection and outputs the geometry to stdout. Users can click and drag to create a selection rectangle, or select an existing window. The output format is configurable for integration with other tools. Common use cases include screenshot region selection, window geometry capture, and integration with screen recording tools. The output can be parsed by scripts to perform operations on the selected area.
参数
- -f, --format _string_
- Output format using specifiers: %x, %y, %w, %h, %i (window ID), %c (cancel), %g (geometry)
- -b, --bordersize _float_
- Selection rectangle border thickness
- -p, --padding _float_
- Padding around selection (negative values shrink)
- -c, --color _r,g,b,a_
- Selection box color as RGBA floats (0.0-1.0)
- -t, --tolerance _float_
- Pixel threshold to distinguish click from drag
- -D, --nodrag
- Use two-click mode instead of click-and-drag
- -l, --highlight
- Fill selection area instead of drawing outline
- -n, --nodecorations _int_
- Window decoration removal aggressiveness (0-2)
- -k, --nokeyboard
- Disable keyboard cancellation
- -q, --quiet
- Suppress warning messages
- -r, --shader _string_
- Custom shader from ~/.config/slop
- -o, --noopengl
- Disable OpenGL acceleration
- -x, --xdisplay _display_
- Specify X display to use
- -v, --version
- Display version
- -h, --help
- Display help
FAQ
What is the slop command used for?
slop (Select Operation) queries the user for a screen region selection and outputs the geometry to stdout. Users can click and drag to create a selection rectangle, or select an existing window. The output format is configurable for integration with other tools. Common use cases include screenshot region selection, window geometry capture, and integration with screen recording tools. The output can be parsed by scripts to perform operations on the selected area.
How do I run a basic slop example?
Run `slop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --format _string_ do in slop?
Output format using specifiers: %x, %y, %w, %h, %i (window ID), %c (cancel), %g (geometry)