-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix special workspaces #25
Conversation
fbe62c0
to
1709de2
Compare
Just realized autotiling doesn't seem to work consistently with the special workspaces. It should be a simple fix I'll get to soon, so maybe hold off merging until then. |
1709de2
to
18d68f5
Compare
Ok nevermind I've fixed that up lol, good to look over now. |
18d68f5
to
9815fee
Compare
This should not happen, because a group node should always have a fixed size in hy3. Child nodes may only exist inside the constraints of the parent node.
The node as a whole should be scaled. do this by scaling the root node and allowing node scale to propagate via Unless I misunderstand something about the special workspace, it is an optionally smaller/scaled workspace layered over the main one. Correct me if I misunderstand that, because I personally don't use the special workspace. |
Yeah I'm not really sure what to do with that. if the tab bar is over a single node it can scale with it, but that won't work for multiple nodes. Maybe placing it somewhere like 50% through the top padding and 50% into the side padding would be good. Maybe add a mode to scale the entire workspace instead of individual windows? |
Yea exactly, with one it wouldn't be an issue, but multiple would have unexpected behaviour.
Not entirely sure what you mean by this. By padding, do you mean the space that is created from the shrunken windows? If so, I'm not so sure that would work too well. Depending on your layout, you can have it so that the windows fill up that area. That's why I personally think since its still usable space that windows can split into, the current implementation is the best.
I could, but I personally wouldn't care for it. I like the look that the scaled down windows gives when using the special workspace like a parking space for certain windows, but wouldn't necessarily want a shrunken workspace overall. If that's something others wanted though, I'd be down to do it. |
Mmm yeah. I've got one more somewhat more complicated option. What if we categorized windows in a tab group and windows outside of a tab group differently, and scaled an entire group as a single window if it uses a tab. It seems somewhat inconsistent but I really dislike the disconnected tab bar. |
Ah that may work. Scaling the entire group down, and then not applying the scaling to the windows inside the group could very well be the way to go. I'll take a shot at that soon. |
Found another issue with toggling special workspaces on fullscreen windows. After hiding the special workspace again, the fullscreen window behind it will be tiled. Ideally, it should remain fullscreen. I am not sure if this PR is still the right place to report this issue, otherwise I'll open a new issue. |
this is an unrelated known issue, but thanks for reporting it |
b2e6c70
to
9815fee
Compare
36fe20d
to
19ce41b
Compare
@rehanzo are you still working on this? |
My bad, I completely forgot about this. Unfortunately, I don't use the plugin anymore since the hyprland dwindle window movement changes. Hopefully someone can pickup where I left off! |
Fixes #18 , and fixes up operation of special workspaces in general. It now operates exactly how it does for any of the non-plugin layouts now.
I added the
special_scale_factor
config option, which is also present in the other non-plugin layouts, so the scaling factor for special workspaces can be modified.Have a look over, and hopefully its good to go!