swaywm / sway

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

Support setting (dynamic) title bar location #883

Closed johnp closed 3 years ago

johnp commented 8 years ago

"Use case": 16:10 screens are unreasonably high price and nearly impossible to get in a laptop. (Also, Firefox tabs-in-titlebar doesn't work in sway/i3, which means you can't just flick the mouse pointer to the screen edge to switch tabs)

It would therefore be nice to have a title_bar command in the sway config with the basic options:

Advanced options (not sure if these are worth it, but would make some nice /r/unixporn posts):

Advanced options need to have a fallback, specifying which option to choose, should no outer edge or two exist in that plane.

Examples:

title_bar outer_edge_vertical bottom

E.g. first doing horizontal splits always places the title bar at the bottom, but upon doing a vertical split, the title bar of the upper window will be placed at the top (outer vertical edge).

title_bar outer_edge_vertical outer_edge_horizontal bottom

Same as above, but if a window doesn't have vertical outer edges (or two of them) it tries to find a horizontal outer edge first, before falling back to bottom.
E.g. one horizontal split and then split the right container three times vertically. The top right will have it's title bar on the top, the bottom right on the bottom and the window in between those two will have it's title bar at the right edge (outer horizontal).

ddevault commented 8 years ago

I don't understand what you're asking for.

johnp commented 8 years ago

Currently, setting border pixel <n> disables the title bar, while border normal <n> has the title bar at the top. title_bar bottom would instead place the title bar at the bottom. That's pretty much the main thing I'd be asking for. All the other options are I think less useful / bring only minor additional value, but would be nice to have.

ddevault commented 8 years ago

Interesting thought. May be worth looking into. Have you pitched this feature request to i3 as well?

johnp commented 8 years ago

No, I've just done a quick search and could only find this: https://www.reddit.com/r/i3wm/comments/463mtj/window_titlebars_on_bottom/ Should I place a feature request at the i3 github too?

ddevault commented 8 years ago

Wouldn't be a bad idea.

johnp commented 8 years ago

Opened i3/i3/issues/2441. The explanation of the dynamic placement option may be a bit better there.

alkino commented 8 years ago

This feature has been refused in i3.

ddevault commented 8 years ago

Link to i3 discussion?

jplatte commented 7 years ago

It's linked two comments above yours.

IzhakJakov commented 3 years ago

+1

emersion commented 3 years ago

Closing as per i3 decision.

IzhakJakov commented 3 years ago

:disappointed:

herkhinah commented 1 year ago

I still love the idea, even though it's reject by i3. In my setup (my focus is more on the top of the display because that way I can sit more ergonomically) I want the most important information at the top of my screen and the noise like system bar and window titles at the bottom.

0x42697262 commented 1 year ago

So, is there no way to set the titlebar sideways? Just like what i3 devs did, they ignored the request. Did sway make the same decision?