polonium icon indicating copy to clipboard operation
polonium copied to clipboard

Add Max Window Width for Tiled Windows

Open divinae opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I'm using an ultrawide monitor and it would be great to have an option to limit the width of a tiled window when it is the only one on a workspace. So the app doesn't take up the whole screen unnecessarily.

Describe the solution you'd like

  • define maximum width for windows
  • mechanism like smart_gaps inverse_outer for i3/sway

Additional context https://www.reddit.com/r/swaywm/comments/uu2m1d/dont_use_full_width_for_first_windows/ https://github.com/leftwm/leftwm/issues/475 https://github.com/hyprwm/Hyprland/issues/2092

divinae avatar Feb 05 '24 11:02 divinae

Probably not possible due to how gaps are handled in kwin (no fancy gaps), but I'll keep an eye on this for plasma 6/v1.0.

zeroxoneafour avatar Feb 05 '24 23:02 zeroxoneafour

If it's only one window on the workspace you can simply float it and resize it as needed. The only problem is that Polonium doesn't seem to remember float window sizes for now so you need to resize it every time :|

Granitosaurus avatar Feb 08 '24 10:02 Granitosaurus

Floating window sizes are out of the scope of this script right now. KWin should remember them (?) and retain them correctly. I don't see this feature coming to Polonium in the near future.

zeroxoneafour avatar Apr 03 '24 13:04 zeroxoneafour