Skip to content

Conversation

@Eddio0141
Copy link

@Eddio0141 Eddio0141 commented Aug 31, 2025

Currently niri IPC doesn't have enough information to let you know where tiled windows exist in

Floating windows works just fine

closes #60

@TheFivery
Copy link

The rabbit-hole has lead me here! Will keep an eye out for the Niri support merge! Thank you Eddio0141!

@AlfredoSequeida
Copy link
Owner

Awesome, thank you for taking this on! I have a few questions/suggestions.

  • I think we should move the gaps constant to the constants.py file, this way it becomes part of the config and people can adjust the gaps based on what their setting is rather than hard-coding the value.
  • Have you tested this with multiple monitors? I'm curious to see how that works with the logic for determining window positions.

@Eddio0141
Copy link
Author

Thanks!

  • Yeah that is true, the gaps needs to be set properly since this only applies to my config
  • The window position calculation works to an extent though the calculation isn't complete to be properly usable, and current limit by Niri to make it work. The calculation assumes the focused window is always on the left side of a monitor, which isn't always true for windows that isn't 100% width, and Niri doesn't give more info related to this, so I left the WIP work there for now. Gotta wait for future changes by Niri to complete this

@Eddio0141
Copy link
Author

Eddio0141 commented Sep 30, 2025

Though it would be possible to know the window position if window focus events are tracked and use that to calculate additional offset from the left side of the monitor

Which does mean there would have be a service just for Niri to do this...

Might go and do that for the sake of implementation, future change to Niri can make this simpler with another MR to fix :)

@TheFivery
Copy link

TheFivery commented Oct 1, 2025

I was mid-day-dream thinking about this (saw the recent video Alfredo!)... one of the settings in Niri that I found and played with is the "tab-indicator" layout definition, which I'm thinking would bring it's own considerations with it's properties like "place-within-column", "width" and "gap". Especially place-within-column, which forces it's own space within the stacked/tabbed window column instead of discretely showing within the global window gaps you set.

Here's a little screenshot to illustrate.

Normal windows with gaps
image

Tabbed/stacked windows with the above mentioned tab-indicator property values
image

@Eddio0141
Copy link
Author

Ok yeah there's more edge cases I'd have to consider :/

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

Successfully merging this pull request may close these issues.

niri support

3 participants