[move] Add choice of anchor as well as more predefined positions #3689
I'm submitting a…
[ ] Bug [x] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
i3 version: 4.16.1
- Linux Distribution & Version: Debian testing (buster), 4.19.0-4-amd64 - Are you using a compositor (e.g., xcompmgr or compton): No
Thanks a lot!
The "Current Behavior" description sounds like you are talking exclusively about moving floating windows. Is this correct?
Could you explain what all of these would do?
All of these can be trivially achieved using external scripts. The "move center" one is the odd one out because i3 itself does actually need this (floating, scratchpad).
Yes, sorry I forgot that.
Move a floating window to a position from
It would be very handy for me not to rely on extra scripts and extra programs doing the calculations since this is window size and screen resolution dependent.
That depends on the definition of easy or rather the viewpoint. Someone working on the code base could maybe do this "easily".
Afaik would I have to write a separate script for every application and after 10 min of googling I still don't know how to get the window dimensions for the calculations although I once wrote something similar (I can not find anymore).*
*I remember slightly that I had to install a separate X package, what would kill the portability of the config.
I wouldn't see why the application matters. The script just has to figure out the current window, its dimensions, the screen dimensions, do whatever math you want to do and reposition the window. All of this can be done using i3's IPC, using a lot of open tools such as
I'm not too inclined to add more commands to i3 here because we are not a floating window manager and try to limit floating window support to the necessary things. We already allow
If you need help writing such a script, you can head over to /r/i3wm where people might well be able to help you out. Chances are someone already wrote something like this, even.