You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I really love your script, but in my case I had to introduce small gaps between windows. Here is a patched function. It would be nice if this feature is configurable.
function newSlotPosition(workspace, client, numberXslots, numberYslots, x, y, xSlotToFill, ySlotToFill) {
var maxArea = workspace.clientArea(KWin.MaximizeArea, client);
var newX = maxArea.x + Math.round(maxArea.width / numberXslots * x) + 8;
var newY = maxArea.y + Math.round(maxArea.height / numberYslots * y) + 8;
var gapX = x + xSlotToFill < numberXslots ? 8 : 0;
var gapY = y + ySlotToFill < numberYslots ? 8 : 0;
// Width and height is calculated by finding where the window should end and subtracting where it should start
var clientWidth = Math.round(maxArea.width / numberXslots * (x + xSlotToFill)) - (newX - maxArea.x) - 8 + gapX;
var clientHeight = Math.round(maxArea.height / numberYslots * (y + ySlotToFill)) - (newY - maxArea.y) - 8 + gapY;
return [newX, newY, clientWidth, clientHeight]
}
The text was updated successfully, but these errors were encountered:
There's https://github.com/nclarius/tile-gaps which works together with this (well enough). However, the project there seems somewhat dead (last release 2 years ago) and it's lacking Plasma 6 (and Wayland, at least in my experience) support.
I really love your script, but in my case I had to introduce small gaps between windows. Here is a patched function. It would be nice if this feature is configurable.
The text was updated successfully, but these errors were encountered: