PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

[Feature Request] Ability to center group of windows

Open steelcowboy opened this issue 4 years ago • 1 comments

Reading through the documentation nothing immediately jumped out at me as having the ability to do this (I'll do a PR to update the documentation if it does exist! :) ), but basically I want to return windows to how they were before moving them.

In my case, sometimes unplugging my laptop from my monitor and plugging it back in results in all of my windows being anchored to the left side. I want to return both of them to the center -- that is, undo any movement of any kind and put them how they'd be if I had just opened them.

The way I conceptualize this is seeing all the windows as one super window and aligning that with the center of the screen. However, it could just be an undo-all-movement-modifications type thing.

Does this exist already? If so, how would I accomplish it? Thanks!

steelcowboy avatar Mar 30 '20 16:03 steelcowboy

There's no action at the moment to recenter the whole tiling strip (in the case where the monitor is wider than the windows). An ad-hoc solution: select the right most window, «take» all windows with <Super>T and release, that will do the job :laughing:

In my case, sometimes unplugging my laptop from my monitor and plugging it back in results in all of my windows being anchored to the left side.

Right, that's not ideal, and we can probably handle some of the monitor changes better. Though unfortunately when monitors are changed (eg. when adding/removing a monitor), we simply get an entirely new list of monitors without a mechanism to identify them with the old list of monitors. So we rely on some rough heuristics do this mapping, which means there's some limitations to what we can do.

hedning avatar Mar 31 '20 15:03 hedning