slop icon indicating copy to clipboard operation
slop copied to clipboard

Add format option to output exact position of cursor

Open GoldsteinE opened this issue 5 years ago • 3 comments

I want to get exact point that was clicked (e. g. to determine color of pixel under it)

GoldsteinE avatar Nov 29 '19 13:11 GoldsteinE

You can do that with slop -t 0. It disables the the window selection, so If you don't drag, it will output a 1x1 selection.

Example output: 1x1+825+297. Here X=825, and Y=297.

TitouanT avatar Feb 09 '21 20:02 TitouanT

This unfortunately doesn't work, it select the coordinates of the window under the cursor.

NNBnh avatar Feb 17 '22 06:02 NNBnh

This unfortunately doesn't work, it select the coordinates of the window under the cursor.

@NNBnh

Can you tell us some information about your environment ? WM / DE ? Because last time I checked it did disable the window selection and the pixel position was not relative to the window.

TitouanT avatar Feb 17 '22 23:02 TitouanT