Skip to content
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

Resizing from another kwin script / wmctrl #8

Open
RaitaroH opened this issue Feb 8, 2019 · 1 comment
Open

Resizing from another kwin script / wmctrl #8

RaitaroH opened this issue Feb 8, 2019 · 1 comment

Comments

@RaitaroH
Copy link

RaitaroH commented Feb 8, 2019

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 :)

@RaitaroH
Copy link
Author

RaitaroH commented Feb 8, 2019

Example video.
Peek 2019-02-08 16-27.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant