swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.5k stars 1.11k forks source link

Move windows relative to output #5376

Closed Samed-Hamma closed 4 years ago

Samed-Hamma commented 4 years ago

Issue :

Positioning floating windows is not flexible enough. Example: I am running krunner as a launcher and have two monitors with different resolutions, I can center top position krunner in the first output, but it gets messy when run in the second one.

Proposal :

Add possibility to move windows relative to the containing output:

  1. add relative keyword to the move command with (move up|down|left|right) + add keywords (move top|bottom when used with relative)
  2. add % as a unit to move position

P.S. This is my first ever issue post on github, I hope it's clear enough and not breaking any rules. Thanks for the great WM, I use it as my daily driver, and it helps me get more active and involved in the FOSS community.

emersion commented 4 years ago

Thanks for taking the time to write this feature request, However we don't accept new window management features unless i3 implements them.\

(Also, what you describe can be done with a script)

Samed-Hamma commented 4 years ago

Thanks for your fast answer @emersion , looks like I need to make this feature request to the i3 project in order to get it implemented in sway :p I understand this is a policy thing, (which I am curious about). What if I implement it myself ? Will my merge request get rejected because of this policy ?

emersion commented 4 years ago

Yes. You're of course free to keep it in your Sway fork.