You are not logged in.

#851 2012-10-15 17:34:03

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

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

kalle97 wrote:

Hi, is there any attachaside patch for 6.1? I only found one for 5.7 and 5.6( http://dwm.suckless.org/patches/attachaside )...

Where did you find dwm 6.1?
http://dl.suckless.org/dwm/
http://hg.suckless.org/dwm/

I think you meant 6.0.

Offline

#852 2012-10-15 18:26:58

x33a
Forum Moderator
Registered: 2009-08-15
Posts: 3,301
Website

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

@karol, maybe he's referring to the the hg tip.

Offline

#853 2012-10-15 18:53:06

kalle97
Member
Registered: 2012-07-18
Posts: 80

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

Haha, sorry I meant DWM 6.0! xD

Offline

#854 2012-10-15 23:05:22

JLloyd13
Member
From: halifax, nova scotia
Registered: 2012-06-24
Posts: 107

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

anyone here a have fibonacci layout patch that works with a fresh 6.0 install?

Offline

#855 2012-10-15 23:11:50

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,552
Website

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

Mine has dwindle removed, but you can diff it against the one on the dwm site to restore it...
https://pikacode.com/jasonwryan/dwm-pat … /fibonacci


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#856 2012-10-16 00:21:12

JLloyd13
Member
From: halifax, nova scotia
Registered: 2012-06-24
Posts: 107

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

thanks! spiral is the one I really wanted

Last edited by JLloyd13 (2012-10-16 00:25:33)

Offline

#857 2012-10-16 14:20:55

kalle97
Member
Registered: 2012-07-18
Posts: 80

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

Did someone find a "attachaside" patch for 6.0?

Offline

#858 2012-10-16 18:42:46

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

I want to play around with my bar a little. I would want to be able to set one piece of my statusbar (time) centered and have the rest allocate to the right of it. Also, I would like to decrease the spacing between the tag names.

In what function should I be looking to change those two things?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#859 2012-10-16 18:49:13

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

kalle97 wrote:

Did someone find a "attachaside" patch for 6.0?

Seen this? First result of a google search:

https://bitbucket.org/Lokaltog/dwm/src/ … at=default


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#860 2012-10-16 18:52:29

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

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

Unia wrote:

I want to play around with my bar a little. I would want to be able to set one piece of my statusbar (time) centered and have the rest allocate to the right of it. Also, I would like to decrease the spacing between the tag names.

In what function should I be looking to change those two things?

I'm not sure about the first, but spacing between the tag names can be easily changed in drawbar() function.

Offline

#861 2012-10-16 19:39:39

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

OK100 wrote:
Unia wrote:

I want to play around with my bar a little. I would want to be able to set one piece of my statusbar (time) centered and have the rest allocate to the right of it. Also, I would like to decrease the spacing between the tag names.

In what function should I be looking to change those two things?

I'm not sure about the first, but spacing between the tag names can be easily changed in drawbar() function.

Mind telling me where? I can't find it tongue


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#862 2012-10-16 19:41:14

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

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

Unia wrote:
OK100 wrote:
Unia wrote:

I want to play around with my bar a little. I would want to be able to set one piece of my statusbar (time) centered and have the rest allocate to the right of it. Also, I would like to decrease the spacing between the tag names.

In what function should I be looking to change those two things?

I'm not sure about the first, but spacing between the tag names can be easily changed in drawbar() function.

Mind telling me where? I can't find it tongue

	for(i = 0; i < LENGTH(tags); i++) {
		dc.w = TEXTW(tags[i].name);
		col = dc.colors[ (m->tagset[m->seltags] & 1 << i ? 1:(urg & 1 << i ? 2:0))];
		drawtext(tags[i].name, col, True);
		drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i, occ & 1 << i, col);
		dc.x += dc.w;
	}

Offline

#863 2012-10-16 19:49:13

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

Yea I was looking at that part. I guess it's in the first or the second line, or perhaps the very last before the curled bracket.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#864 2012-10-16 20:21:31

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

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

I'd suggest changing the last to

dc.x += dc.w + TAGSPACING;

Where TAGSPACING is either a defined constant in your config.h, or just replaced with the number of extra pixels you want between each tag.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#865 2012-10-16 20:32:47

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

Trilby wrote:

I'd suggest changing the last to

dc.x += dc.w + TAGSPACING;

Where TAGSPACING is either a defined constant in your config.h, or just replaced with the number of extra pixels you want between each tag.

So it was the last one tongue Thing is, I wan't to decrease the spacing, not increase. Can I set a negative value? Ima try!

EDIT: Working! Hm... now I'm gonna see if I can also add a separator between tag names...

Does anyone know how I can center a part of the statusbar?

Last edited by Unia (2012-10-16 20:36:57)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#866 2012-10-16 20:35:22

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

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

Ah, yes, I need to learn to read.  You can set negative values there.  Just note that (hopefully obviously) larger negative values could make some really ugly overlap.

Last edited by Trilby (2012-10-16 20:36:19)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#867 2012-10-16 20:37:28

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

Trilby wrote:

Ah, yes, I need to learn to read.

Don't worry man, I still admire you tongue

EDIT: Using Trilby's suggestion works, but the layout symbol gets moved too far to the left. How can I fix that? I'm currently trying to add a second (positive) spacing, but this doesn't seem to work. Also, anyone know how to center a part of the statusbar, and how to add separators between tag names?

Last edited by Unia (2012-10-16 21:13:02)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#868 2012-10-17 11:21:00

rix
Member
Registered: 2012-07-25
Posts: 221

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

And is there a way to have tags and layouts on the right and piped status on the left?
I've just found how to disable tags and layouts but it's not what I was looking for.

Thanks in advance.

Offline

#869 2012-10-17 13:40:16

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

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

Rix, I haven't seen any ready-made patches for this, but if your at all familiar with C coding, you'd just have to rearrange the parts of the drawbar function.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#870 2012-10-17 13:45:39

rix
Member
Registered: 2012-07-25
Posts: 221

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

I just know C base syntax and have already tried, but I've been succeed just in remove tags and layout from bar.
Any suggestion will be appreciate.

Last edited by rix (2012-10-17 13:48:38)

Offline

#871 2012-10-17 15:16:43

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

I played around more with the layout symbol, but I really can't get it to work. I bet it's supersimple... I tried adding a second spacing, SPACING2, but that doesn't move the actual symbol. It just shows a gap (with the size of SPACING2) before the title. Here's a scrot of the patch and the effect:

tZnd6dg


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#872 2012-10-17 15:18:28

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

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

Edit: nevermind, I misread (again).

You could just add spaces to the layout symbol strings in config.h

Last edited by Trilby (2012-10-17 15:19:29)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#873 2012-10-17 15:19:29

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

Trilby wrote:

You want to remove the layout symbol completely?  I haven't looked at the code in a while, but I did this once by just deleting a few lines from the drawbar function.  Alternately you could just set the symbols all to empty strings in config.h.

No, I want it to have the same spacing as the tag names. Right now it's almost touching the "work" tag name. Instead, I want to move it to the right a bit.

EDIT: How come you always read wrong first time? big_smile

I know I can do this, I was just curious as to how I could write this inside the code. It should be possible, right?

Last edited by Unia (2012-10-17 15:20:29)


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#874 2012-10-17 15:35:15

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

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

Unia wrote:

I played around more with the layout symbol, but I really can't get it to work. I bet it's supersimple... I tried adding a second spacing, SPACING2, but that doesn't move the actual symbol. It just shows a gap (with the size of SPACING2) before the title. Here's a scrot of the patch and the effect:

http://ompldr.org/tZnd6dg

Offtopic:
Nice colors by the way smile but consider switching to vim big_smile

Offline

#875 2012-10-17 15:37:37

Unia
Member
From: The Netherlands
Registered: 2010-03-30
Posts: 2,471
Website

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

OK100 wrote:
Unia wrote:

I played around more with the layout symbol, but I really can't get it to work. I bet it's supersimple... I tried adding a second spacing, SPACING2, but that doesn't move the actual symbol. It just shows a gap (with the size of SPACING2) before the title. Here's a scrot of the patch and the effect:

http://ompldr.org/tZnd6dg

Offtopic:
Nice colors by the way smile but consider switching to vim big_smile

I rarely program, so for my editing needs nano suffices big_smile I can share the colors, if you want?


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

Board footer

Powered by FluxBB