emersion / slurp

Select a region in a Wayland compositor

Home Page:https://wayland.emersion.fr/slurp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change color of background when `-o -r`

spikespaz opened this issue · comments

Currently, when selecting from all available outputs with -o -r, the background is white. I wish this would respect the color set by -b.

When using the -o option, if you want to change the color of the backgrounds, use the -B option to set the color instead. Basically what is happening here is that everything is drawn as part of a "predefined rectangle". So there isn't any background to draw.

That said, perhaps in this situation, if -b is passed and -B isn't perhaps we should use the background color for the predefined rectangles color?

I'm not sure if the benefit is worth the added complexity to the implementation.

I'm wrapping slurp and grim in a Perl script, so it wasn't much of a worry. But having some smarter arguments would be nice!