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

RE: 10 or more colors.

I use 11 colors and ignore number 10, as so far I don't know how to put color 10 in my status bar. The character \x0A is a line feed and breaks the string. I suspect something similar might happen with \x0D. Does this happen to others, or is there a better work around than adding an 11th color and ignoring number 10?

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

I had already posted about this in another thread but as it mainly concerns dwm afiak, so I'll post it here too. I made a new font that just contains "icons". It uses the Unicode Private Use area (U+E000 - U+F8FF). It's called stlarch_font and it's in the AUR as well. It's 8x13 and the glyphs are mostly around 8x8 size, so it should go well with many fonts. It should basically work like xbm icons. The way this is done is by defining two fonts in config.h, like this:

for example and copy the output into a script. It appears as a box in urxvt to me, but go ahead and copy it and it should work and display the correct glyph. This example will display a clock glyph. Here's a screenshot showing all the glyphs so far. I will probably add more soon.This is a better solution than using a font with icons drawn in, as it wont conflict this way if that has been a problem for you. BTW, if anyone knows how to make this work in snapwm (or elsewhere), please let me know. Cheers

edit: Much thanks to sunaku for figuring all of this out. Thanks dude!

Thanks! The diff didn't quite work for me, but that was probably because of a different patch I applied. I did it manually, works fine.

I also use a systray patch, and it seems the tray still follows focus, while the status stays put. I might try to make a patch that incorporates this one and the systray, so they both stay put. I'll post it here if I get it to work.

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

Hey all,

A while ago I have requested to adjust the chat-layout patch for when I have multiple clients running (emesene and Skype). The layout works as follows: place the buddy list on the right of the screen and divide the remaining space over the chat clients in a grid layout. However, I make use of both emesene and Skype and when Skype is running, I would like a similar placement for the Skype buddy list: I wanted to divide the right space of the emesene buddy list in two and place both emesene's and Skype's lists there. Since no-one replied I guess it's not possible (or too much work) so I have been using the patch as is and close either one of the buddy lists. I do want to fix this and because there are no more issues to resolve (yay!:P) I'm focusing on this one now.

Please note that if you hadn't seen my previous request, I prefer layout 1 over layout 2. Also, if no second messenger is running, I would like to have layout 0. Here's my current chat-layout patch: http://pastebin.com/qcLi3bX3

EDIT: I will try to have a go at this myself, but chances are small (probably <1% ) so if any of you feel like coding something, please help me out EDIT2: If you don't have the time to have a go at this (which I perfectly understand! It's a mere request after all) could you at least give me some pointers as to what I have to do? I have just started learning C so I can read the basic syntax and come up with something, but taking this up from scratch is a too big step for me.

Last edited by Unia (2012-05-06 18:46:43)

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.

Oke scratch that last request, it's become my personal computing goal for summer

I have another question though: is there a patch that sets monocle layout automatically when there is only one client running, and then switches to the defined layout from pertag2 when there's more than one?

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:

Oke scratch that last request, it's become my personal computing goal for summer

I have another question though: is there a patch that sets monocle layout automatically when there is only one client running, and then switches to the defined layout from pertag2 when there's more than one?

Why do you want this? I there's only one client, t doesn't matter what layout is set.

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

OK100 wrote:

Unia wrote:

Oke scratch that last request, it's become my personal computing goal for summer

I have another question though: is there a patch that sets monocle layout automatically when there is only one client running, and then switches to the defined layout from pertag2 when there's more than one?

Why do you want this? I there's only one client, t doesn't matter what layout is set.

Ehhhh....... you're right. I meant to hide gaps when there's only one client

*I should not post this stuff when I'm at the same time studying*

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:

Oke scratch that last request, it's become my personal computing goal for summer

I have another question though: is there a patch that sets monocle layout automatically when there is only one client running, and then switches to the defined layout from pertag2 when there's more than one?

Why do you want this? I there's only one client, t doesn't matter what layout is set.

Ehhhh....... you're right. I meant to hide gaps when there's only one client

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

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

Is there anyway we could get a sticky or maybe someone to edit the first post with a list of the working patches available? It seems like theres alot in this thread that are great but its a bit of a pain to search through.

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

prohna wrote:

Is there anyway we could get a sticky or maybe someone to edit the first post with a list of the working patches available? It seems like theres alot in this thread that are great but its a bit of a pain to search through.

You could always start one right here.

A more logical place to keep an up-to-date list of working patches would be the wiki...

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

jasonwryan wrote:

prohna wrote:

Is there anyway we could get a sticky or maybe someone to edit the first post with a list of the working patches available? It seems like theres alot in this thread that are great but its a bit of a pain to search through.

You could always start one right here.

A more logical place to keep an up-to-date list of working patches would be the wiki...

I would if i had a justifiable amount of knowledge. I feel all id be doing is listing patches i have less than a working understanding of. If just a list was enough tho i think i could handle that.

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

I've got a question / request...

Has anyone made an occupied color for work space tags like WMFS has? I know it wouldn't be hard to add but thought it would be neat to be able to differentiate between selected/occupied/normal a bit better than just a box.

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

Crunch, I'm not familiar with one, but that would be very easy. Just add a conditional to the for loop around line 740 in dwm.c in drawbar() function. I say "about" because I believe I have made some changes to the file already that may have moved this a bit.

I'd just take the conditions from the call to drawsquare() and put them in a conditional that sets the col variable to something else. I suspect it would be a single line patch.