I'd like to draw a rectangle on the screen and get the dimensions in pixels of that rectangle. A bit like a ruler in order to measure the distance on screen.
I'm using Sway version 1.8 on Arch Linux 5.19.9.
This post advertises a product without disclosing the author's affiliation or without it being relevant to the topic (spam).
This post violates the Code of Conduct, as a reasonable person would find it inappropriate.
This question is off-topic or cannot be reasonably answered in its current form and needs revision by its author.
This question has been asked before and has already been answered. It should be marked as a duplicate.
This question has been addressed elsewhere.
This question is not within the scope of Power Users.
This question cannot be answered in its current form, because critical information is missing.
This post contains multiple questions or has many possible indistinguishable correct answers or requires extraordinary long answers.
This question cannot be answered in a way that is helpful to anyone. It's not possible to learn something from possible answers, except for the solution for the specific problem of the asker.
One way to do this is using slurp and its -d option.
Here's an example of slurp -d on Sway:
This community is part of the Codidact network.
We have other communities too — take a look!
You can also join us in chat!
Want to advertise this community? Use our templates!
Like what we're doing? Support us! Donate