You are not logged in.
Firstly, forgive me, I'm not very good at C.
I'm looking through the dwm source code for wherever the default tag is set.
Basically I'd like to set all new windows that don't have a rule to open on a certain tag, rather than the current one.
Any ideas?
Thanks in advance.
Offline
In the manage() and applyrules() functions in dwm.c, modify the lines that set c->tags. Try it for yourself.
Edit: Probably just edit the last line of applyrules().
Last edited by lolilolicon (2011-09-08 16:40:23)
This silver ladybug at line 28...
Offline
Oooo. Thank you.
For anyone digging up this post in the future, the solution is as follows (as of DWM 5.9):
Replace the line
c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags];
with
c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : TAGMASK_DEFAULT;
then define TAGMASK_DEFAULT in config.h.
Thanks, lolilolicon.
Offline