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

niri msg pick-window #589

Open
YaLTeR opened this issue Aug 12, 2024 · 3 comments
Open

niri msg pick-window #589

YaLTeR opened this issue Aug 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@YaLTeR
Copy link
Owner

YaLTeR commented Aug 12, 2024

A new command, niri msg pick-window, that lets you pick a window with your mouse, then prints information about it. Kinda like niri msg focused-window but with a mouse picker.

Will also be useful for IPC in the future present.

@YaLTeR YaLTeR added the enhancement New feature or request label Aug 12, 2024
@amadalusia
Copy link

I have a (probably bad) idea of how this could be done:

Step 1: Store the currently focused window
Step 2: Grab an element like what screenshot_window(&self, renderer, output, mapped) does
Step 3: Focus onto that window
Step 4: Display information about that window
Step 5: Focus back on the stored window in Step 1.

I may be able to write this up but I would need to put my rust-fu to the test.

@YaLTeR
Copy link
Owner Author

YaLTeR commented Oct 7, 2024

Step 3: Focus onto that window
Step 4: Display information about that window
Step 5: Focus back on the stored window in Step 1.

Why? This all happens in the niri process. Just return information about the target window, no focus changes necessary.

@amadalusia
Copy link

You know this is probably fair, I was kinda thinking as a way to make a really short function which basically mimics focused-window.

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

No branches or pull requests

2 participants