How to tame window placement?

I don't know if this is the way it should be, but I don't think so!

First, let me explain that I have a dual monitor setup that I like, with a 22" Dell monitor rotated left above my 17" Samsung laptop monitor. The laptop monitor is and should be designated as the primary monitor. I use the Dell monitor for reading, generally not manipulating or entering stuff like this post. It gets used for my email window, my comics aggregator window, news feed windows, etc. It looks like this:

Now, on with the issue.... So many windows in Elive open in places I wasn't expecting or don't want them to. When I was fiddling with Cairo-dock, its settings or plugins options window would open at the very top of the upper monitor, and with a dark theme, I didn't even notice it early on. Many Enlightenment/Elive menu selections open in the upper monitor, probably in the "center" as defined by the X-Y dimensions X from the laptop monitor width and Y from the combination of the monitor heights. SOME windows would open at the top left, which turned out to be REALLY annoying, as if the window was small enough, it would be in non-visible space outside of the upper monitor. I could go on (usually do! :rofl: )....

Other distros I use have mechanisms to deal with window placement. Openbox will let you identify the monitor a window should open on; if I choose the "primary" monitor, and a window is supposed to open in the center, it opens in the center of the primary monitor. In Elive, its "center" placement is somewhere in the lower part of my upper monitor.

I've poked around in the Enlightenment Settings menu (which I despise, as the window jumps all around as you click a category to fiddle with), and the only thing that I see that could possibly remedy this is the "Placement" category, but it offers nothing that helps.

It shouldn't be that difficult to figure out to put a new window at the "top" or "center" of this combination -- the numbers are all available:

~ >>> xrandr | grep \ connected
LVDS-1 connected primary 1600x900+0+1920 (normal left inverted right x axis y axis) 382mm x 215mm
VGA-1 connected 1080x1920+260+0 left (normal left inverted right x axis y axis) 477mm x 268mm

The primary monitor and its dimensions is identified. The X offset for the top monitor is there (260), as is its height (1920) and Y offset (900). The math is doable even for a stupid yad window which doesn't let you select the monitor, you have to use its --geometry setting. Here's one that puts a 750x665 window in the center of my lower monitor:

--geometry=750x665+425+2038

So this can be done in scripts that invoke yad for different sized yad windows. However, that doesn't help with things like the Cairo-dock tweakers and Elive/Enlightenment menu initiated windows. Is this an Enlightenment bug, then?

It's actually a feature. :rofl2:

You'll notice that in "settings" e16 sees both your monitors as a single 'desk' which are part of a total virtual desktop set-up divided into 'areas'..... that'll mean that in your setup the greyed space to the left and right of your VGA1 will also be used as a space to put stuff. Meaning you can actually loose widgets there. :shocked:

Thanks, @triantares -- yes, I know/knew that. BUT, the same is true for Openbox, IceWM, and JWM. They all (I think) have features/options to determine where new windows open, and at least on Openbox, there's a dialog box that has a pull-down for the monitor of choice -- if that is a choice, etc.. Waaay more flexible and controllable. Openbox and the others are not DE's per se, so I guess Enlightenment is "above them" in that regard, but Enlightenment is also a window manager, and it doth seem lacking in that department (and yes, I know it's got built-in compositing, but in general, I don't use those on other WMs anyway).

I'd really like a way to control the window placement, please.

I'm not at all sure how to go about that, considering that E27 (which I use mostly) has an own screen setup/configuration. E27 is vastly superior considering E16 is fairly old and is/was mainly meant as a stop-gap solution to the coming Elive desktop.

When I'm fighting a window placement I mostly use the 'pager' to position windows/widgets where I want them and Alt&Tab key combo to cycle through their stacking.
That's also the reason I like my pager top-right (like in old Elive) and fairly large i.e large enough to see what I'm doing.

A few years ago I made video on how I use the pager on E16 to do just that, you might find some useful tips/insights there.

On a side note:

You may notice that I use 'tint2' there, including a populated systray. The smaller icon set at the end of the bar. :wink:

Thanks, @triantares -- yes, that is pretty cool! I don't have problems with window placement once they're launched -- it's where they get placed at launch that bugs me. I'm hoping that you're right about e27 having something like what Openbox, IceWM, and JWM have. I think they all do this in their config files, and given the fun of manually editing the Openbox rc.xml file, the guys'n'gals there provided a nice OBConf GUI. Here's the relevant settings there:

THIS is what I want. Is that what e27 provides? If so, can't wait!

As a side note, remembering my screen shot complaint/post -- my MX 25 is using "flameshot" and it's really, really cool! You might want to give it a try!

Enlightenment is a completely different beast. Manually configuring isn't done through separate dedicated text files. So you might not like what you get if you want to persist in habits acquired on other WMs..

On E27 that is AFAIK always the primary monitor, which one, of course you decide for yourself.

You seem to have missed that flameshot is the default screenshooter (normally under PrtScrn) on Elive .... 'scrot' is only there for legacy reasons and/or commandline access.

Maybe on e27? Not on my Elive e16, it's using a custom elive script:

Elive_Screenshot_2026-10-11_13:30:59__841x35

Not sure, but that just looks like the monitor setup stuff, not what's for new window launching, but maybe I just don't grok it yet and unless there's more to the screen you're showing there?

It's easy enough to install the latest E27 and see for yourself:
In a terminal "apui enlightenment enlightenment-data"

And you can simply choose on logging out/in. :innocent:

No, E27 has it's own screenshooter.... but I also prefer flameshot under the key, so I customized that.

In e16:

triantares ~ ❯❯❯ less .e16/bindings.cfg | grep flame                                                                                                                                                   1
KeyDown    -    Print                     exec bash -c "( flameshot gui & ) ; sleep 15m ; killall flameshot"

Ah, nice to know. I'll give it a try!