hyprland-plugins icon indicating copy to clipboard operation
hyprland-plugins copied to clipboard

Hyprscrolling: focus on center

Open NikSudo opened this issue 3 months ago • 2 comments

Don't fully understand right now how the focus work. If it's empty workspace and I open new window => it opens on center Start open new windows on the same workspace => they appear on right but focus not centered. BUT if I use bind = $mainMod, right/left, layoutmsg, move +/-col => after moving to the right/left window it placed on center as I wanted.

Also changed focus_fit_method = 0 follow_focus = false. If something of that have other value I can flue out of space on the right and can't return back before workspace changes

NikSudo avatar Oct 19 '25 21:10 NikSudo

As far as I understand, by default it fits columns, aka. does the minimum movement to have the column visible

vaxerski avatar Oct 21 '25 14:10 vaxerski

Found this issue troubleshooting focus_fit_method = 0.

I can reproduce NikSudo's observations on Gentoo Linux using 0.5.1.1 after running hyprpm update. New hyprscrolling user, so no past experience to reference.

When using the default or explicitly setting focus_fit_method = 0 (center), first window centers but subsequent new windows do not center. However, when using swapcol, the focused window centers. Also, when using togglefit, I have to depress the keybind twice for it to take effect the first time leading me to believe new windows are suppose to spawn centered. It is not necessary to trigger togglefit twice the first time when focus_fit_method = 1.

Hope the information is helpful, but happy to take time gathering additional info. I just need guidance.

rharmonson avatar Oct 22 '25 19:10 rharmonson