You are not logged in.

#301 2011-09-17 12:11:02

Thuban
Member
Registered: 2011-09-17
Posts: 1

Re: DWM Hackers Unite! Share (or request) dwm patches.

Guys, you really should consider to add your patches here:
http://dwm.suckless.org/patches/
and talking about them on the list :
dev@suckless.org

Because here, reading 12 pages is so confusing, and it's a pity regarding the great work there is!

Offline

#302 2011-09-17 13:11:09

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: DWM Hackers Unite! Share (or request) dwm patches.

http://ompldr.org/vYWUzbQ/pertag2-nbstack.diff pertag2 with simon's version of nbstack.

also, the patch that I use is just simon's pertag2 version with a segfault fix on "reload" and which adds a new layout ntile without removing the tile layout.

Last edited by JokerBoy (2011-09-18 17:01:36)

Offline

#303 2011-09-18 15:34:36

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: DWM Hackers Unite! Share (or request) dwm patches.

JokerBoy wrote:
beepressure wrote:

Is it because im trying to patch it on 5.9.2? Totally clean, no patches. In fact I copied the stuff from abs all over so it was fresh.

pertag2 for dwm-5.9.

What 5.9.2 are you using, the latest version in hg repo is 5.9.1. Maybe you are trying to say arch package 5.9-2, but then it should work fine.

Yeah youre right. It's 5.9-2

Offline

#304 2011-09-18 15:58:17

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

@JokerBoy

Thanks alot, mate! It's very much appreciated!

@beepresure

I was using just the newest tarbal from suckless.org i.e. 5.9... I prefer to not install it, but just configure/compile it under ~/.builds, and copy the binary to ~/.bin and run it from there in .xinitrc...

Last edited by mhertz (2011-09-18 16:02:43)

Offline

#305 2011-09-18 17:01:12

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

And what about a pertag2 version with gaplessgrid, please Jokerboy?

Last edited by Ypnose (2011-09-18 20:48:40)


Github -- My terminal font Envypn

Offline

#306 2011-09-18 20:19:20

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

I myself got errors during the building of dwm with the gapplessgrid.c file from suckless.org on a prepatched pertag source, so I just handpatched it into dwm.c instead.

You can then diff it to a vanilla dwm, and you've got the combined patch for latter usage...

Just add the function to dwm.c and declare it under '/* function declarations */' i.e.

static void gaplessgrid(Monitor *m);

Btw, totally off-topic, but many ppl dosen't seem to know that you can just use standard color name strings in config.h instead of the color codes i.e. blue, white black etc, and the same with fonts, where you can use e.g. 7x14, instead of the longer variants...

..I'm playing with dwm currently, and I fully understand why so many of you fellow archers favor this wm... smile

Last edited by mhertz (2011-09-18 20:32:35)

Offline

#307 2011-09-18 20:58:27

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: DWM Hackers Unite! Share (or request) dwm patches.

Ypnose wrote:

And what about a pertag2 version with gaplessgrid, please Jokerboy?

you can use: http://hg.punctweb.ro/dwm/src/a3465e7ad … sgrid.diff
and don't forget to add "{ "[G]",      True,      gaplessgrid }," to your config.h

and sorry, ATM I'm using windows in order to flash my blackberry.

Last edited by JokerBoy (2011-09-20 07:24:04)

Offline

#308 2011-09-19 09:44:31

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

Yes, I saw your personal patch ( gaplessgrid.diff ) but it needs cycle.diff and for me this patch isn't necessary.

That's why I asked it but dude, take your time.


Github -- My terminal font Envypn

Offline

#309 2011-09-19 17:47:04

iEugene
Member
From: London, UK
Registered: 2011-05-21
Posts: 4

Re: DWM Hackers Unite! Share (or request) dwm patches.

Ypnose wrote:

Yes, I saw your personal patch ( gaplessgrid.diff ) but it needs cycle.diff and for me this patch isn't necessary.

That's why I asked it but dude, take your time.

Try this: http://ompldr.org/vYWY5YQ/05-gaplessgrid.diff.

Offline

#310 2011-09-19 18:08:56

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: DWM Hackers Unite! Share (or request) dwm patches.

mhertz wrote:

@beepresure

I was using just the newest tarbal from suckless.org i.e. 5.9... I prefer to not install it, but just configure/compile it under ~/.builds, and copy the binary to ~/.bin and run it from there in .xinitrc...

edit: disregard first part


I will try this

Last edited by beepressure (2011-09-19 18:11:30)

Offline

#311 2011-09-19 18:12:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: DWM Hackers Unite! Share (or request) dwm patches.

beepressure wrote:
mhertz wrote:

@beepresure

I was using just the newest tarbal from suckless.org i.e. 5.9... I prefer to not install it, but just configure/compile it under ~/.builds, and copy the binary to ~/.bin and run it from there in .xinitrc...

I dont quite follow all the way. Doesnt compiling it=installing?

Not exactly: 'make' = compiling, 'make install' = installing. You have to run 'make' but you can copy (or even symlink) stuff by hand.

Offline

#312 2011-09-19 18:27:45

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: DWM Hackers Unite! Share (or request) dwm patches.

karol wrote:
beepressure wrote:
mhertz wrote:

@beepresure

I was using just the newest tarbal from suckless.org i.e. 5.9... I prefer to not install it, but just configure/compile it under ~/.builds, and copy the binary to ~/.bin and run it from there in .xinitrc...

I dont quite follow all the way. Doesnt compiling it=installing?

Not exactly: 'make' = compiling, 'make install' = installing. You have to run 'make' but you can copy (or even symlink) stuff by hand.

Yeah I realized that as soon as i posted the reply, hah. Well I got the vanilla tarball from suckless, compiled, patched, and edited config.h by adding "static const int nmaster      = 1;     /* clients in the master area */" Did, another make and got these errors.

[al@boddicker dwm-5.9]$ make
dwm build options:
CFLAGS   = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/include/X11/ -DVERSION="5.9" -DXINERAMA
LDFLAGS  = -s -L/usr/lib -lc -L/usr/lib/X11 -lX11 -L/usr/lib/X11 -lXinerama
CC       = cc
CC dwm.c
dwm.c: In function ‘buttonpress’:
dwm.c:450:9: error: request for member ‘name’ in something not a structure or union
dwm.c:450:9: error: request for member ‘name’ in something not a structure or union
dwm.c: In function ‘createmon’:
dwm.c:688:29: error: request for member ‘mfact’ in something not a structure or union
dwm.c:688:61: error: request for member ‘mfact’ in something not a structure or union
dwm.c:689:31: error: request for member ‘nmaster’ in something not a structure or union
dwm.c:689:67: error: request for member ‘nmaster’ in something not a structure or union
dwm.c:690:26: error: request for member ‘layout’ in something not a structure or union
dwm.c: In function ‘drawbar’:
dwm.c:769:10: error: request for member ‘name’ in something not a structure or union
dwm.c:769:10: error: request for member ‘name’ in something not a structure or union
dwm.c:771:19: error: request for member ‘name’ in something not a structure or union
dwm.c: At top level:
dwm.c:2111:1: warning: ‘incnmaster’ defined but not used [-Wunused-function]
dwm.c:2119:1: warning: ‘ntile’ defined but not used [-Wunused-function]
make: *** [dwm.o] Error 1
[al@boddicker dwm-5.9]$ 

basically same errors as when i was using the ABS build

Offline

#313 2011-09-19 22:33:08

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

The pertag2 patch needs specific additional definitions to be manually added into config.h, of where you've entered one of them, but there needs more, which you can see from e.g. jokerboy's config.h.

I don't use pertag2, as I don't really need the extra things added on-top of original pertag from suckless.org, and hence, I cannot show you mine examples, but e.g. in jokerboy's config.h, he has this:

/* tagging */
static const Tag tags[] = {
        /* name       layout           mfact    nmaster */
        { "main",     &layouts[4],     -1,      -1 },
        { "term",     &layouts[4],     -1,      -1 },
        { "web",      &layouts[2],     -1,      -1 },
        { "im",       &layouts[6],     0.17,    -1 },
        { "misc",     &layouts[4],     -1,      -1 },
};

Which you of-course needs to adapt to yours, and you also need to add ntile layout, and incrmaster shortcuts etc. Again, check out jokerboy's config.h for those...

Last edited by mhertz (2011-09-19 22:39:57)

Offline

#314 2011-09-20 01:04:37

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: DWM Hackers Unite! Share (or request) dwm patches.

Ok, so you CAN use the pertag 5.8.2 for dwm 5.9? I was under the impression that pertag2 was made for 5.9. I too, dont wanna use the extras so I guess i'll just try to one from suckless

Offline

#315 2011-09-20 07:29:20

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: DWM Hackers Unite! Share (or request) dwm patches.

Ypnose wrote:

And what about a pertag2 version with gaplessgrid, please Jokerboy?

http://ompldr.org/vYWZtNg/02-dwm-5.9-gaplessgrid.diff

also, you should start learning how to apply a patch by hand. tongue is quite easy.

Offline

#316 2011-09-20 09:36:20

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

JokerBoy wrote:

http://ompldr.org/vYWZtNg/02-dwm-5.9-gaplessgrid.diff

also, you should start learning how to apply a patch by hand. tongue is quite easy.

Yeah. You're right. I'll do that next time.
Anyway thank you.

iEugene: You were pretty fast. Thanks a lot, man.


Github -- My terminal font Envypn

Offline

#317 2011-09-20 22:46:11

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

beepressure wrote:

Ok, so you CAN use the pertag 5.8.2 for dwm 5.9? I was under the impression that pertag2 was made for 5.9. I too, dont wanna use the extras so I guess i'll just try to one from suckless

Yes, pertag patch from suckless.org works fine on dwm 5.9. The version number of the patches is just used as a reference from which it will 100% work, and then for latter versions you just need to test for yourself if it still works!

Pertag2 was made to expand functionality by including e.g. nbalanced and such, but not for compatibility reasons.

I used to use alot of patches, but as I thought about it, then I actually didn't need all those extra additions anyway, so now I just use 3 patches; pertag, bstack and gaplessgrid, from suckless.org, and of those only gaplessgrid was problematic, so I handpatched it into dwm.c and made a patch of it for latter usage.

Last edited by mhertz (2011-09-21 18:16:51)

Offline

#318 2011-09-22 04:53:26

beepressure
Member
Registered: 2009-10-29
Posts: 80

Re: DWM Hackers Unite! Share (or request) dwm patches.

I have 5.9 with pertag and bstack working.

Offline

#319 2011-09-23 14:50:45

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

JokerBoy wrote:

[,,,]

also, the patch that I use is just simon's pertag2 version with a segfault fix on "reload" and which adds a new layout ntile without removing the tile layout.

Hi JokerBoy.

Could you please ellaborate upon what that "reload" segfault means? I mean in what circumstances could it appear to segfault?

I have come to really like the pertag2 with nbstack.c from simon, but as it is somewhat old, and especially because of youre remark above, then I was woried about if it in some case is unstable i.e. the segfault you describe, allthough I haven't encountered anything weird in the last day or so where i've been using it.

Btw, the reason that I don't just use your version, is that I preffer to have the nmaster functionality non-greedy like simon's pertag2(as it includes nbalanced), but it seems you've changed that to a greedy ntile... Also, I don't use both tile/ntile, but just the ntile(and nbstack), which when non-greedy and set to 2 masters works pretty nice imho...

Note, this isn't a "please make me a patch" kinda post, but just a theoretical question about what the "reload" segfault means? If it's something that could possibly affect me, then I can just diff your version to simons and hopefully be able to find the fix you've made...

Thanks in advance.

Last edited by mhertz (2011-09-23 14:54:50)

Offline

#320 2011-09-23 15:02:12

JokerBoy
Member
From: România
Registered: 2009-09-24
Posts: 641

Re: DWM Hackers Unite! Share (or request) dwm patches.

Hi,

If you start dwm by using this, when you "reload" a segfault will appear in your dmesg but that's 'cause m->mfacts[0], m->nmasters[0] and m->lts[0] aren't set to defaults in createmon(). I reported this behaviour but it seems  that nobody cares any more. I have been using this patch for months now and it's very stable, at least for me.

Offline

#321 2011-09-23 15:07:11

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

Ahh, of course! Obviously that's what the "reload" means! Sorry for being dence!

Thanks alot for your reply and help on your pertag2 segfault fix! Much appreciated!

CU, Martin.

Offline

#322 2011-09-23 16:51:09

inch
Member
Registered: 2010-12-21
Posts: 49

Re: DWM Hackers Unite! Share (or request) dwm patches.

Hello, I'm in deep need of a grid mode patch for 5.9, is there something yet?

Offline

#323 2011-09-23 17:13:50

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: DWM Hackers Unite! Share (or request) dwm patches.

Don't know if it's the right place but what about dwm and dual-screens? Someone have feedback about it?


Github -- My terminal font Envypn

Offline

#324 2011-09-23 17:20:38

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: DWM Hackers Unite! Share (or request) dwm patches.

dwm supports multiple screens.  As for feedback I suggest you just try it.  dwm is very subjective.

Offline

#325 2011-09-24 00:23:21

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 681

Re: DWM Hackers Unite! Share (or request) dwm patches.

inch wrote:

Hello, I'm in deep need of a grid mode patch for 5.9, is there something yet?

Even though it dosen't say for dwm-5.9, then check anyway as it still might work, and if it dosen't, then try to handpatch it, as it's maybe a pertag interference issue like with gaplessgrid(never had the need for using "gapped" grid myself, so dunno).

For gaplessgrid, then JokerBoy has a patch for v5.9, but it depends on some other patch(es) to be present to work, I believe it's cycle if I remember right, but again, it's just a function and a function declaration to be added to dwm.c.

Offline

Board footer

Powered by FluxBB