hy3 icon indicating copy to clipboard operation
hy3 copied to clipboard

`changefocus raise` cycles back to lowest level focus when invoked at top level

Open josswright opened this issue 8 months ago • 2 comments

The behaviour for changefocus raise seems to wrap around once it reaches the top level, resulting in the focus returning to the originally-focused window.

I can see that this might be useful in some cases, but it wasn't what I expected from raise, and I think it's less helpful than having the focus stay at the top level if another raise command is given. I quite often use a few repeated changefocus raise commands to focus all windows on a workspace so that I can shift them elsewhere, and this tends to overshoot that back down to the lowest level focus. (I know I could just have another binding to changefocus top, but that seems an unnecessary extra binding.)

Is there any chance that changefocus raise could stop at the top level? If the cycling behaviour is desirable, maybe there could be a cycle-up equivalent?

josswright avatar Apr 16 '25 16:04 josswright

Yes we can split these.

outfoxxed avatar Apr 17 '25 05:04 outfoxxed

Here to add that hy3:changefocus raise and hy3:changefocus lower currently throw an error when added to the configuration as hyprland doesn't recognize them

evil-colon-three avatar Nov 16 '25 12:11 evil-colon-three