The purpose is to be able to quickly find information about opened windows.
The provider shows you the title and app ID at a glance which is great but sometimes knowing more information about the window is useful to debug or script something.
Here's the output from niri:
$ niri msg windows
Window ID 194:
Title: "New Issue — Original profile — Mozilla Firefox"
App ID: "firefox"
Is floating: no
PID: 113262
Workspace ID: 6
Layout:
Tile size: 1269 x 2120
Scrolling position: column 1, tile 1
Window size: 1269 x 2120
Window offset in tile: 0 x 0
It would be helpful if this information were displayed in the preview area of this provider.
Side / related feature requests to this provider
-
Maybe even an action assigned to CTRL+SHIFT+c to copy this data to your clipboard.
-
Thoughts on adding the window ID in parenthesis after the app ID in the subtext? Some niri commands require passing in the window ID, would be nice to see this at a glance. It's short enough where it probably doesn't need a dedicated copy action.
-
The idea of assigning actions to this provider starts to open up potentially interesting things like adding CTRL+k to kill the process by PID.
What do you think?
Workaround
A while back I wrote a little script and added this to my niri config to help find details about a window dynamically:
Mod+P hotkey-overlay-title="Pick window" { spawn "ghostty" "--class=dot.floating.ghostty" "-e" "sh" "-c" "printf 'Pick a window...\n\n'; niri msg pick-window; niri msg action focus-window-previous; printf '\nDone! Press CTRL+c to quit\n'; read"; }
On my machine it produces a little floating Ghostty terminal to pick a window and then it outputs the information to it like this:
Pick a window...
Window ID 194: (focused)
Title: "New Issue — Original profile — Mozilla Firefox"
App ID: "firefox"
Is floating: no
PID: 113262
Workspace ID: 6
Layout:
Tile size: 1269 x 2120
Scrolling position: column 1, tile 1
Window size: 1269 x 2120
Window offset in tile: 0 x 0
Done! Press CTRL+c to quit
It would be nice to delete this script and let Walker handle it.
The purpose is to be able to quickly find information about opened windows.
The provider shows you the title and app ID at a glance which is great but sometimes knowing more information about the window is useful to debug or script something.
Here's the output from niri:
It would be helpful if this information were displayed in the preview area of this provider.
Side / related feature requests to this provider
Maybe even an action assigned to
CTRL+SHIFT+cto copy this data to your clipboard.Thoughts on adding the window ID in parenthesis after the app ID in the subtext? Some niri commands require passing in the window ID, would be nice to see this at a glance. It's short enough where it probably doesn't need a dedicated copy action.
The idea of assigning actions to this provider starts to open up potentially interesting things like adding
CTRL+kto kill the process by PID.What do you think?
Workaround
A while back I wrote a little script and added this to my niri config to help find details about a window dynamically:
On my machine it produces a little floating Ghostty terminal to pick a window and then it outputs the information to it like this:
It would be nice to delete this script and let Walker handle it.