You are not logged in.

#1 2013-12-24 03:39:03

tomgg
Member
Registered: 2013-05-01
Posts: 40

[solved*] dwm layouts.

Does a patch exist that implements the following layout:

0. There are no windows open.
1. The first window opened fills the master area as if a slave were also present; i.e, gives me an 80 character terminal instead of a 160 character terminal.

To replicate this behaviour I usually open two terminals while tiled; switch to floating; then send an EOF to the one I don't need. I'd also like to know if a solution exists for awesome.

Last edited by tomgg (2013-12-28 06:18:24)

Offline

#2 2013-12-24 03:44:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [solved*] dwm layouts.

I don't know if there is a patch, but you can do it with a rule. Just open a named terminal with floating set to true and specify the geometry of the term. This isn't as flexible as what you are looking for, obviously...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-01-11 03:47:24

tomgg
Member
Registered: 2013-05-01
Posts: 40

Re: [solved*] dwm layouts.

On the slim chance that this annoys someone else, here is a so-called patch:

diff --git a/dwm.c b/dwm.c
@@ -1611,7 +1616,7 @@ tile(Monitor *m) {
    if(n > m->nmaster)
        mw = m->nmaster ? m->ww * m->mfact : 0;
    else
-       mw = m->ww;
+       mw = m->ww * m->mfact;
    for(i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
        if(i < m->nmaster) {
            h = (m->wh - my) / (MIN(n, m->nmaster) - i); 

Last edited by tomgg (2014-01-11 12:56:29)

Offline

Board footer

Powered by FluxBB