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] hex window IDs #10

Closed
prez opened this issue Sep 13, 2019 · 3 comments
Closed

[Feature request] hex window IDs #10

prez opened this issue Sep 13, 2019 · 3 comments

Comments

@prez
Copy link

prez commented Sep 13, 2019

It would be nice if window IDs in hexadecimal format could be supported, as that would allow simple oneliners like shotgun -i $(xqp) using xqp.

I also noticed the window IDs used by xwininfo -int / shotgun (if you convert them from dec) and wmutils / xdo / xqp don't match up.

Thank you.

@9ary
Copy link
Member

9ary commented Sep 13, 2019

It would be nice if window IDs in hexadecimal format could be supported, as that would allow simple oneliners like shotgun -i $(xqp) using xqp.

Sounds reasonable to me. I think the 0x prefix should be enough to accept hex input?

I also noticed the window IDs used by xwininfo -int / shotgun (if you convert them from dec) and wmutils / xdo / xqp don't match up.

It looks like this is because you are using a reparenting window manager (so am I, and I can reproduce this on i3). Some tools attempt to descend through the window tree, while others, including xqp, don't (understandably, since baskerville is the author of bspwm which is non-reparenting). slop lets you control that behavior with the -n flag.

@9ary 9ary closed this as completed in 3258e82 Sep 13, 2019
@prez
Copy link
Author

prez commented Sep 13, 2019

Some tools attempt to descend through the window tree, while others, including xqp, don't

That makes sense. Thank you so much!

@9ary
Copy link
Member

9ary commented Sep 13, 2019

Keep in mind that as far as shotgun is concerned, both "types" of ID are valid, the only difference it will make is whether the decorations added by the window manager will be included in the screenshot or not.

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

No branches or pull requests

2 participants