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

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

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.

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

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

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.

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

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

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:

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

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?

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

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:

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: