Skip to content

Resizing from another kwin script / wmctrl #8

@RaitaroH

Description

@RaitaroH

So I really wanted to have some grow and shrink shortcuts. I experimented a bit with wmctrl -r :ACTIVE: -e 0,0,0,700,5 made a script and all that. Then I retooled this kwin script a bit, like so

function shrinkCurrentWindow() {
  var win = workspace.activeClient;
  win.geometry = {
      x: win.x + 25,
      y: win.y + 25,
      width: win.width - 50,
      height: win.height - 50,
  }
}

The problem is that the windows resize when you are using the mouse to resize, not some script (kwin, or bash), otherwise the window that is being resized simply goes beyond the edges/borders of the adjacent windows, making this kwin script have no effect at all.

The idea with this is basically replicate a more tiling sorta thing. I am very aware there are some kwin scripts for that too, but KWin script to let snapped window edges stick together when one window is resized. here I have a window that is being resized :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions