shell icon indicating copy to clipboard operation
shell copied to clipboard

Feature request: control windows position by cli

Open neodc opened this issue 5 years ago • 9 comments
trafficstars

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 avatar Jul 28 '20 11:07 neodc

@neodc - are you trying to move the windows via wmctrl when auto-tiling mode is ON?

jmmaranan avatar Jul 31 '20 20:07 jmmaranan

Yes

neodc avatar Aug 03 '20 13:08 neodc

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.

Chrysostomus avatar Sep 05 '20 11:09 Chrysostomus

CLI would be tricky to implement, but theoretically possible with some sort of GLib-based IPC mechanism

mmstick avatar Sep 06 '20 05:09 mmstick

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

varac avatar Jan 15 '21 14:01 varac

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.

0xR avatar Apr 13 '21 10:04 0xR

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?

l-maia avatar Nov 18 '21 17:11 l-maia

It can be used, but still requires development time to complete. Not currently a priority to have this.

mmstick avatar Nov 18 '21 17:11 mmstick

Hi! I am all for this. I have two use cases:

  1. 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.
  2. 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!

wpietri avatar May 23 '22 17:05 wpietri

+1 on this Would be nice have a CLI feature to resize windows in tiling mode

Gu7z avatar Jul 04 '22 23:07 Gu7z