slop
slop copied to clipboard
Add format option to output exact position of cursor
I want to get exact point that was clicked (e. g. to determine color of pixel under it)
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.
This unfortunately doesn't work, it select the coordinates of the window under the cursor.
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.