You are not logged in.

#526 2012-01-10 01:36:45

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

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

I have no idea: I've never used it. Last version of the patch is against 5.7.2 so it is either incredibly stable, or your computer will burst into flames as soon as you apply it...

Please post photos if it is the latter smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#527 2012-01-10 01:52:46

kuraku
Member
Registered: 2012-01-03
Posts: 202

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

jasonwryan wrote:

I have no idea: I've never used it. Last version of the patch is against 5.7.2 so it is either incredibly stable, or your computer will burst into flames as soon as you apply it...

Please post photos if it is the latter smile

1. It is working but only for master;
2. If you create new client window while you see all tags at once, it will create new windows using master from tag 1 as master for all tags (please consider that i'm not so good at English).

Since people say that 1 pic is worth 1000 words, i will use one pic to describe my isse (connected to statement #1):
nOlz7s.png

edit:
Just checked and it is creating new clients under master only when master is focused.

Last edited by kuraku (2012-01-10 02:00:34)

Offline

#528 2012-01-10 02:08:48

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

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

2. As far as I can tell, that is the expected behaviour - see the link to the post above about how tags ≠ workspaces...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#529 2012-01-10 02:12:09

kuraku
Member
Registered: 2012-01-03
Posts: 202

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

jasonwryan wrote:

2. As far as I can tell, that is the expected behaviour - see the link to the post above about how tags ≠ workspaces...

I read that article before.
As for patch: that is not what i want so maybe i will revert back to default dwm behaviour for now. Maybe there will be a better patch in future wink

Offline

#530 2012-01-13 04:59:38

Relkein
Member
Registered: 2011-08-23
Posts: 1

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

I have updated the systray patch created by kcirick for version 6.0. It is found here

Offline

#531 2012-01-13 22:48:21

ivoarch
Member
Registered: 2011-03-31
Posts: 436

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

Relkein wrote:

I have updated the systray patch created by kcirick for version 6.0. It is found here

Thanks Works!


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#532 2012-01-16 05:14:26

Beastie
Member
Registered: 2012-01-14
Posts: 39

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

i can get cloudef's right menu click  to work on dwm-6 anyone else had problems ?

Offline

#533 2012-01-16 09:47:09

kaptenen
Member
Registered: 2009-12-06
Posts: 287
Website

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

Beastie wrote:

i can get cloudef's right menu click  to work on dwm-6 anyone else had problems ?

No problem at all, Whats the error? Are you using other patches? Is everything ok in config.h?

Offline

#534 2012-01-17 12:29:06

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

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

kaptenen wrote:

The patch was working just fine, I did find something similar before but that one didn´t work, maybe I was just tired.

Now I'm using also a dual-monitor setup and I'm seeing the "missing" border on the second monitor too, so I'm using that old version of this patch who seems to work as indent.

Offline

#535 2012-01-17 12:49:28

ivoarch
Member
Registered: 2011-03-31
Posts: 436

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

Has anyone tried this patch http://lists.suckless.org/dev/1201/10651.html 
Works well ! 


@Beastie 
I use the patch with other patches and it works!!

Someone used uselessgap in dwm-6.0
I have problems with gaps in tile mode and bstack?
In grid mode and fibonacii works correct.


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#536 2012-01-17 15:24:42

Beastie
Member
Registered: 2012-01-14
Posts: 39

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

@ivoarch, i tried but i get lots of errors. i'll try again and show the errors.

and btw for uselessgaps i had the same problem, so i use pidgin and grid with nmaster=2 instead

Offline

#537 2012-01-17 15:52:36

Army
Member
Registered: 2007-12-07
Posts: 1,784

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

Does one of you guys know a patch which makes tags show up in the bar dynamically? I mean, so it only shows those tags, which have at least one application assigned to. That would be great, because most of the time this is just a waste of space in the bar.

Thanks!

Offline

#538 2012-01-17 16:07:02

Cloudef
Member
Registered: 2010-10-12
Posts: 636

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

@Army
https://github.com/Cloudef/dwm-fork/blob/master/dwm.c
Search for text 'autohide' dunno, if there is similar patch for this. It's not that hard to manually merge though.
I haven't used this feature for long time personally though, so I'm not sure if I have accidentally broke it smile

(it's the same code as the dwm-plus posted below, my stuff is based on it)

@Beastie
Does that mean it works? Or you have problems with the menu patch?

Last edited by Cloudef (2012-01-17 16:12:26)

Offline

#539 2012-01-17 16:09:36

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

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

This dwm branch has it.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#540 2012-01-17 19:28:23

Army
Member
Registered: 2007-12-07
Posts: 1,784

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

Thanks guys! But seems like this is too compliated for me, especially because those branches are based on older dwm versions. But I'll try, hope I succeed.

Offline

#541 2012-01-17 19:41:00

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

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

Offline

#542 2012-01-17 20:10:17

LordLandon
Member
Registered: 2009-05-27
Posts: 2

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

I've fixed the problem with useless gap - here is my patch. This is my first time in the dwm code, but the problem was tile() recalculating the height of a window after resizing it, and thus placing the next one right bellow.

I'm not sure if this breaks something else, but if it does, it might be better to alter the HEIGHT macro itself.

Offline

#543 2012-01-17 21:00:39

ivoarch
Member
Registered: 2011-03-31
Posts: 436

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

@ LordLandon
Thanks for the new update works for "Tile"   
for those who use bstack, need to add the same

void
bstack(Monitor *m) { 
resize(c, m->wx + mx, m->wy, w - (2*c->bw), mh - (2*c->bw), False); 
        - mx += WIDTH(c); 
       + mx += WIDTH(c) + 2 * globalborder;  
 
w = (m->ww - tx) / (n - i);
                       resize(c, m->wx + tx, m->wy + mh, w - (2*c->bw), m->wh - mh - (2*c->bw), False); 
       - tx += WIDTH(c); 
       + tx += WIDTH(c) + 2 * globalborder; 

Last edited by ivoarch (2012-01-17 21:07:04)


I love GnuEmacs, GnuScreen, ratpoison, and conkeror.
Github )||( Weblog

Offline

#544 2012-01-17 23:01:09

Beastie
Member
Registered: 2012-01-14
Posts: 39

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

@Beastie
Does that mean it works? Or you have problems with the menu patch?

No i couldnt make it work hmm

Offline

#545 2012-01-18 00:37:37

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

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

hey all,

i'm working on a patch to show my root window title on all monitors. does this already exist and i've missed it?

anyways, what i have so far cuts the text (adds the ...) on my larger monitor when the smaller monitor is active.  i'm having some trouble locating the source of this.  can anyone give me any help? 

this is my patch so far:

diff --git a/dwm.c b/dwm.c
index 803cd10..701d3d5 100644
--- a/dwm.c
+++ b/dwm.c
@@ -774,17 +774,13 @@ drawbar(Monitor *m) {
        drawtext(m->ltsymbol, dc.colors[0], True);
        dc.x += dc.w;
        x = dc.x;
-       if(m == selmon) { /* status is only drawn on selected monitor */
-               dc.w = TEXTW(stext);
-               dc.x = m->ww - dc.w;
-               if(dc.x < x) {
-                       dc.x = x;
-                       dc.w = m->ww - x;
-               }
-               drawcoloredtext(stext);
-       }
-       else
-               dc.x = m->ww;
+        dc.w = TEXTW(stext);
+        dc.x = m->ww - dc.w;
+        if(dc.x < x) {
+                dc.x = x;
+                dc.w = m->ww - x;
+        }
+        drawcoloredtext(stext);
        if((dc.w = dc.x - x) > bh) {
                dc.x = x;
                if(m->sel) {
@@ -2119,7 +2119,7 @@ void
 updatestatus(void) {
        if(!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
                strcpy(stext, "dwm-"VERSION);
-       drawbar(selmon);
+       drawbars();
 }
 
 void

thanks in advance for any help/advice!

Last edited by mjheagle8 (2012-01-18 00:38:02)


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#546 2012-01-18 10:22:02

Army
Member
Registered: 2007-12-07
Posts: 1,784

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

JokerBoy wrote:

Seems to work, thanks a lot!!! Some minor changes were needed, since I use other patches, but I could apply it anyway, so that should be possible for everyone wink

GREAT!!

Last edited by Army (2012-01-18 10:47:42)

Offline

#547 2012-01-20 13:10:00

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

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

I pushed a bugfix for centred-floating, please test and provide feedback those who use a multi-monitor setup.

http://hg.punctweb.ro/dwm/src/2f834b797 … ating.diff

Offline

#548 2012-01-20 16:27:00

kaptenen
Member
Registered: 2009-12-06
Posts: 287
Website

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

JokerBoy wrote:

I pushed a bugfix for centred-floating, please test and provide feedback those who use a multi-monitor setup.

http://hg.punctweb.ro/dwm/src/2f834b797 … ating.diff

Hi, this patch is working good, thanks!

Offline

#549 2012-01-20 17:46:25

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

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

mjheagle8 wrote:

hey all,

i'm working on a patch to show my root window title on all monitors. does this already exist and i've missed it?

anyways, what i have so far cuts the text (adds the ...) on my larger monitor when the smaller monitor is active.  i'm having some trouble locating the source of this.  can anyone give me any help? 

thanks in advance for any help/advice!

Here's my solution for your problem (apply patch by hand):

 static Monitor *dirtomon(int dir);
 static void drawbar(Monitor *m);
 static void drawbars(void);
-static void drawcoloredtext(char *text);
+static void drawcoloredtext(Monitor *m, char *text);
 static void drawsquare(Bool filled, Bool empty, unsigned long col[ColLast]);
 static void drawtext(const char *text, unsigned long col[ColLast], Bool pad);
 static void enternotify(XEvent *e);
...
 			dc.x = x;
 			dc.w = m->ww - x;
 		}
-		drawcoloredtext(stext);
+		drawcoloredtext(m, stext);
 	}
 	else
 		dc.x = m->ww;
...
}
 
 void
-drawcoloredtext(char *text) {
+drawcoloredtext(Monitor *m, char *text) {
 	char *buf = text, *ptr = buf, c = 1;
 	unsigned long *col = dc.colors[0];
 	int i, ox = dc.x;
...
 		c=*ptr;
 		*ptr=0;
 		if(i) {
-			dc.w = selmon->ww - dc.x;
+			dc.w = m->ww - dc.x;
 			drawtext(buf, col, False);
 			dc.x += textnw(buf, i);

kaptenen - Thanks for the feedback. smile

Offline

#550 2012-01-20 18:56:01

OK100
Member
From: [U==]
Registered: 2010-04-26
Posts: 455

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

JokerBoy wrote:

I pushed a bugfix for centred-floating, please test and provide feedback those who use a multi-monitor setup.

http://hg.punctweb.ro/dwm/src/2f834b797 … ating.diff

I like this patch, but it puts windows that requests specific position on screen (e.g, gsimplecal) to center too.

Offline

Board footer

Powered by FluxBB