~novakane/public-inbox

5 2

Support centred main stack with a maximum width

Details
Message ID
<NvN5z7Z--3-9@tutamail.com>
DKIM signature
pass
Download raw message
Hi Hugo,

Thanks very much for rivercarro. I happily use it on a daily basis.

I would like to suggest a `centred` (or `padded`) option which would be
particularly useful for wider screens.

This setting would take effect if only the main stack (containing a
single window or multiple vertically aligned windows) is visible
on the current tag. In this case the main stack would appear centred.

The width of the centred main stack would would correspond to
`main-ratio` and thus could be changed using `main-ratio [+-]N`.

```
double lines = screen

+=============================+
||       +-----------+       ||
||       |           |       ||
||       |           |       ||
||       |           |       ||
||       |     1     |       ||
||       |           |       ||
||       |           |       ||
||       |           |       ||
||       +-----------+       ||
+=============================+

+=============================+
||       +-----------+       ||
||       |           |       ||
||       |     1     |       ||
||       |           |       ||
||       +-----------+       ||
||       |           |       ||
||       |     2     |       ||
||       |           |       ||
||       +-----------+       ||
+=============================+
```

I hope you all like the idea. And I would like to help, but am totally
unfamiliar with zig.

Thanks for your work (I also use zelbar) and best wishes.
Details
Message ID
<14a0a3ac0b39c0dc78b6369321152b804884f57a@hmachet.com>
In-Reply-To
<NvN5z7Z--3-9@tutamail.com> (view parent)
DKIM signature
pass
Download raw message
Hi,

If I understood correctly you'd like something that limits the usable
width of the screen but centered and only for the main stack. And when
we go over the `main-count` number we would switch back to using the
full width of the screen? Is that right?

Making the current option `width-ratio` being centered would be easy to
add, but it would make all windows centered. To only center main ones,
it's a bit more complex and I need to test to see if I like the
implementation.
Details
Message ID
<Nvc3rSB--7-9@tutamail.com>
In-Reply-To
<14a0a3ac0b39c0dc78b6369321152b804884f57a@hmachet.com> (view parent)
DKIM signature
pass
Download raw message
Thank you for your feedback.

> […] you'd like something that limits the usable width of the screen
but centered and only for the main stack. 

Yes, that’s correct if I got river’s terminology right.

> And when we go over the `main-count` number we would switch back to
using the full width of the screen? Is that right?

Yes, correct!

> To only center main ones, it's a bit more complex and I need to test
to see if I like the implementation.

I’m not quite sure whether this is necessary if difficult to implement:
If at least two stacks are arrangenged next to each other, the max-width
maybe would not play a role anyway.

Thanks!



16. Apr. 2024, 09:44 von mail@hmachet.com:

> Hi,
>
> If I understood correctly you'd like something that limits the usable
> width of the screen but centered and only for the main stack. And when
> we go over the `main-count` number we would switch back to using the
> full width of the screen? Is that right?
>
> Making the current option `width-ratio` being centered would be easy to
> add, but it would make all windows centered. To only center main ones,
> it's a bit more complex and I need to test to see if I like the
> implementation.
>
Details
Message ID
<Nvfu0EI--3-9@tutamail.com>
In-Reply-To
<Nvc3rSB--7-9@tutamail.com> (view parent)
DKIM signature
pass
Download raw message
Ah, [filtile](https://github.com/pkulak/filtile) supports this.

It would be great to see this in rivercarro.

Thanks again.
Details
Message ID
<b099e3541491bbb23e5dde1e08792bc651256711@hmachet.com>
In-Reply-To
<Nvc3rSB--7-9@tutamail.com> (view parent)
DKIM signature
pass
Download raw message
So I decided to implement only the version that add a way to center the
usable area when `-width-ratio` id different from 1.0
It centers everything, main and secondary views.

Maybe it will changes in the future but for now I don't want to
implement something more complex as I consider rivercarro more or less
features complete and If I want some big changes it will wait when the
future river-window-management protocol will be here.
Details
Message ID
<NwmpNF1--3-9@tutamail.com>
In-Reply-To
<b099e3541491bbb23e5dde1e08792bc651256711@hmachet.com> (view parent)
DKIM signature
pass
Download raw message
Thanks a lot! This works perfectly.

>  [...] and If I want some big changes it will wait when the
> future river-window-management protocol will be here.
>
Yes, that makes sense.
Reply to thread Export thread (mbox)