SLOP(1)
π SLOP β like, the slop(1) manual, but make it cute π
okay bestie, gather round, because this is the manual page for slop from section 1 of the manual, and honestly? she's iconic. π
β¨ NAME β¨
slop β select operation, either mark screen region or pick window π¦
πΈ SYNOPSIS πΈ
slop [-klqn] [OPTIONS]
π DESCRIPTION π
so basically slop is that girl π
β she asks the user for a selection and then prints the region to stdout. periodt.
Here's the whole vibe: she grabs the mouse π±οΈ and turns it into a crosshair, lets you click and drag to make a selection (or just click on a window, no drag needed, we love a low-effort queen), and while you're doing all that she's drawing a pretty box around it β¨. Then finally β the main character moment β she prints the selection's dimensions to stdout. no cap.
π OPTIONS π
-h,--helpβ prints the help and then dips. bye bestie π-v,--versionβ prints the version and exits. short and sweet fr fr.-x,--xdisplay=hostname:number.screen_numberβ sets which xdisplay to use. like, pick your screen bestie π-b,--bordersize=FLOATβ sets the thickness of the selection rectangle. thick box energy π-p,--padding=FLOATβ sets the padding size for the selection. and heads up, this one can be negative! yes really, negative. math is wild.-t,--tolerance=FLOATβ how far in pixels the mouse can move after clicking and still get detected as a normal click instead of a click-and-drag. Set this to0and window selections are disabled entirely. Or set it to9999999and it'll force a window selection. extremes only, i guess π-c,--color=FLOAT,FLOAT,FLOAT,FLOATβ sets the selection rectangle's color. supports RGB or RGBA input. depending on your system's window manager / OpenGL support, the opacity might get straight-up ignored π (not her fault, blame the wm)-r,--shader=STRINGβ sets the vertex shader + fragment shader combo to use when drawing the final framebuffer to the screen. this obviously only works when OpenGL is enabled. shaders get loaded from~/.config/slop. wanna make your own? go peek athttps://github.com/naelstrof/slopfor the deets π§-f,--format=STRINGβ sets the output format for slop. the format specifiers are:%x(x offset),%y(y offset),%w(width),%h(height),%i(window id),%c(1 if cancelled, 0 otherwise),%g(geometry β%wx%h+%x+%y), and%%for a literal percent sign. mix and match, it's giving customizable π-n,--nodecorations=INTβ sets how aggressive she is about trying to remove window decorations.0is off,1will try lightly to remove decorations, and2will recursively descend into the root tree until it gets the deepest available visible child under the mouse (yes she will go that deep, she's committed). defaults to0. and fun fact: giving slop just-nis equivalent to giving it-n1. lazy girlies, that one's for you π«Ά-l,--highlightβ instead of outlining a selection, slop highlights it instead. super useful when the color is set to an opacity lower than 1. glow-up mode β¨-D,--nodragβ lets you click twice to indicate a selection instead of click-dragging. for the people whose wrists said "no" π-q,--quietβ disables any unnecessary cerr output. any warnings just... won't print. silence is golden π€«-k,--nokeyboardβ disables the ability to cancel selections with the keyboard. once you're in, you're in bestie π-o,--noopenglβ disables graphics acceleration. might be useful if you're getting rendering bugs π
π EXAMPLES π
wanna emulate a windows XP selection? okay retro queen, try something like this:
slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4
and to avoid using eval(1) in your scripts β which is a pretty big security issue, like genuinely, do not β you can use slop like this instead:
read -r X Y W H G ID < <(slop -f "%x %y %w %h %g %i")
look at that, no eval, no yikes, we stay safe out here π‘οΈ
π¦ SEE ALSO π¦
maim(1) β her bestie fr fr π
π BUGS π
No known bugs. she's flawless, your honor. periodt. π
π AUTHOR π
Dalton Nell (naelstrof@gmail.com) β thank you for this gift, king π«Ά
and that's the whole page bestie!! π this manual was served up on Linux and dated 2021-02-03, and it's SLOP(1) β slop's very own man page. go select something pretty β¨πΈπ
π¦ where this page comes from
- alpine 3.24: slop-doc 7.7-r3 Β· MIT
- arch rolling: slop 7.7-4 Β· GPL3
- fedora 43: slop 7.7-3.fc43 Β· GPL-3.0-only
- fedora 43: slop 7.7-3.fc43 Β· GPL-3.0-only
- fedora 44: slop 7.7-4.fc44 Β· GPL-3.0-only
- fedora 44: slop 7.7-4.fc44 Β· GPL-3.0-only
- nixos 26.05: slop 7.7
- nixpkgs unstable: slop 7.7
- ubuntu stonking: slop 7.7-2ubuntu1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms