You are not logged in.
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
@karol, maybe he's referring to the the hg tip.
Offline
Haha, sorry I meant DWM 6.0! xD
Offline
anyone here a have fibonacci layout patch that works with a fresh 6.0 install?
Offline
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
Offline
thanks! spiral is the one I really wanted
Last edited by JLloyd13 (2012-10-16 00:25:33)
Offline
Did someone find a "attachaside" patch for 6.0?
Offline
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
Did someone find a "attachaside" patch for 6.0?
Seen this? First result of a google search:
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
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
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
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
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
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
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
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.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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 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
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)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ah, yes, I need to learn to read.
Don't worry man, I still admire you
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
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
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.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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
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:
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
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)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
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?
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
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:
Offtopic:
Nice colors by the way but consider switching to vim
Offline
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:
Offtopic:
Nice colors by the way but consider switching to vim
I rarely program, so for my editing needs nano suffices 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