Is there a way to resize tiled windows with a dispatcher?

Can anyone explain the resizeactive dispatcher ? My understanding of it is not lining up with the behavior.

What I imagine is this scenario. There are n>1 windows on the screen arranged in any kind of tiled format. When I issue the dispatch resizeactive exact 80% 80%, then the active window (I use follow_mouse=1 so the window under the mouse) will resize to 80% of screen. This does not work as I imagine. It seems to resize only the same window. I have read in the past that this dispatch is meant to only work with floating windows; is this my issue?

Is there a way to resize the currently active tiled window ?

resizewindow ???

Use resizeactive.

Yes, you are right.

I actually am using resizeactive. I mistyped the original post, and I am editing it.

So I still don’t understand the behavior I witness.

I am not sure what you mean or do not understand.
Issuing a dispatch on a currently active floating terminal, will -obviously- resize that particular terminal.

So I assume you have something else in mind, not clear to me.

If for example you want to float+resize a particular window you would need to create a keybind with some sort of instructions to meet your preferences.
Again as an example, I use a submap (because I enjoy doing everything with one finger) which is bind to a key and with that I “instruct” float+center+dimensions for any given active window (follow_mouse=1).

Sorry if I can’t help any further, I don’t understand your confusion.

Perhaps you answered it. I want to resize tiled windows not floating windows.

The dispatch resizeactive does resize a tiled window, but it doesn’t resize the active window - it seems like it resizes an arbitrary window.

May I post a screen recording?

use resizewindowpixel

resizewindowpixel 10 10, activewindow

see Dispatchers – Hyprland Wiki

In general on tiled windows the behavior might be a bit unintuitive as layouts are usually tuned for intuitive mouse resizing not keyboard.

I can see how some are a bit weird in this regard (e.g. dwindle)

this could be fixed, open a discussion over on github

Thank you for all the direction.

When I dispatch resizewindowpixel, {resizeparams}, activewindow I observe the same behavior as resizeactive, {params}. It just seems like it is not resizing the active window, but resizing the first-created window on that screen. Perhaps the issue is that I misunderstand the definition of active window?

I have tried with layouts dwindle and master. I will follow up with a github discussion. Would a screen recording be helpful for the discussion?

I use the following (273 is right click) to resize tiled. Works as expected.
bindm = $mainMod, mouse:273, resizewindow

wev is your friend to identify key presses.

Yes, I do the same with the mouse.

My intention here is to resize the active window to a specific size with a dispatch. In testing, I am initiating the dispatch with a key-press. In the end, however, this dispatch will be in a script monitoring the socket.

The mouse resize works fine, and I am working toward another use-case.