Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: get display geometry #161

Open
apprehensions opened this issue Aug 6, 2022 · 3 comments
Open

Feature request: get display geometry #161

apprehensions opened this issue Aug 6, 2022 · 3 comments

Comments

@apprehensions
Copy link

mainly went here as this could be useful for x11grab in ffmpeg and maim.

@naelstrof
Copy link
Owner

Ah yeah I see what you mean, could be nice. You could already implement this by switching slop to pixel mode, then using xrandr output to determine which monitor you selected.

I wrote an example a while ago here: https://gist.github.com/naelstrof/544d76b0649512ee2458da4e6569278f

Though I understand this script is a little intense and it would be nice if there was a more embedded feature.

@apprehensions
Copy link
Author

yep, it is VERY intense, even as a shell programmer this is nearly unreadable for me.

what does the script do exactly?

@naelstrof
Copy link
Owner

Yeah whoops. It essentially acts exactly like maim -s, except if you click on the background it shoots the monitor.

It could be far far simpler, just set slop to pixel mode and then use xrandr to parse the desktop geo and do a collision test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants