shell
shell copied to clipboard
Feature request: control windows position by cli
Hello,
I have the habit to auto start a lot of application on session start and move them always in the same place using wmctrl, but with the tile system active wmctrl do not seam able to move any windows and even then it would not be easy to move windows relative to one an other.
Do you think it would be possible to offer an cli command to move a windows in the tile windows tree?
@neodc - are you trying to move the windows via wmctrl when auto-tiling mode is ON?
Yes
Autotiling should override whatever wmctrl is doing. This is sane and expected behavior and that's how other tiling window systems do it. However, it would be great if pop shell would have it's own cli interface to use instead, like bspwm and i3 do.
CLI would be tricky to implement, but theoretically possible with some sort of GLib-based IPC mechanism
Yes please, this would be wonderful !!! I was already referring to this feature in my comment at https://github.com/pop-os/shell/issues/413#issuecomment-760975517
I would use this automatically scale the windows so I get 3 1/3 width columns on my ultrawide. Right now I only get 4 columns split by default and I have to resize it manually.
I second this feature, it would be a nice to have. @mmstick just out of curiosity i gave a quick look at the source, why not use the dbus service you already have defined?
It can be used, but still requires development time to complete. Not currently a priority to have this.
Hi! I am all for this. I have two use cases:
- After I log in, I want to open a bunch of apps in specific places across two desktops. 10 apps across 2 physical screens and two virtual desktops. It's the same setup every time. I want to be able to run one command and have my normal working setup with everything where it should be.
- Recovering from Pop_Shell issues. For example, right now there is 1/8th of my big monitor where it won't place anything. My terminal is half the width it should be, and if I tell it to change orientation it will just make it half the height it's supposed to be, as if there's an invisible window it's keeping track of. Or if I bump my monitor cable, I might get all my windows scrambled and have to manually re-place them. I'd like to be able to run something that tries to put everything back. And if it doesn't work, I want to be able to log out and back in and quickly set up from scratch as in case 1.
So please expose some sort of Pop_Shell API. Thanks!
+1 on this Would be nice have a CLI feature to resize windows in tiling mode