Page 1 of 2

howm

Posted: Sun Jul 13, 2014 3:29 am
by harveyhunt
I thought a nice little howm gallery would be a cool idea. Enjoy. :)

Re: howm

Posted: Sun Jul 13, 2014 3:37 am
by dkeg
that's nice mr hunt, I like it. Especially the gaps

Re: howm

Posted: Sun Jul 13, 2014 3:44 am
by Alad
Cool, moar GIFs! :D

Re: howm

Posted: Sun Jul 13, 2014 2:06 pm
by franksinistra
convinced.
I'll try it once more

Re: howm

Posted: Sun Jul 13, 2014 2:09 pm
by harveyhunt
franksinistra wrote:convinced.
I'll try it once more
Awesome. :)

I have just pushed some new changes that make scripting a bar slightly easier. I can post my dzen2 script as well if you would like?

Re: howm

Posted: Sun Jul 13, 2014 3:02 pm
by bones
Nice work, hh, this will make a nice spin.

Re: howm

Posted: Sun Jul 13, 2014 3:51 pm
by machinebacon
Precious! Can't wait to roast that up :)

Re: howm

Posted: Sun Jul 13, 2014 9:07 pm
by harveyhunt
pidsley wrote:Here's my version of a dzen howm bar. Sending the information to stdout and letting people do whatever they want with it is definitely the best idea, in my opinion, and parsing your new format is simple.

Image
Looks great, I have got a dzen bar running too (not as tidy as your script though). The fact that you need two instances of Dzen to have left aligned text and right aligned text is really annoying.

Just a little tip, you can have -y -20 as an argument to dzen to place the bar at the bottom- makes things a little more portable. :)

Re: howm

Posted: Sun Jul 13, 2014 9:18 pm
by pidsley
^ so rewrite it -- i told you it was a hack, proof-of-concept sort of thing; I'm sure you can do better. I'll pull it off my github now.

Re: howm

Posted: Sun Jul 13, 2014 9:33 pm
by harveyhunt
Just messed with some dzen colours and unicode icons to represent layouts. I think they may be a little small though...

Re: howm

Posted: Sun Jul 13, 2014 10:05 pm
by simgin
^ Looks good Harvey 8)

Re: howm

Posted: Sun Jul 13, 2014 10:44 pm
by dkeg
bar and conky both allow alignment

Re: howm

Posted: Mon Aug 04, 2014 3:46 am
by Subsentient
Now this seems rather nice actually. I might find a use for this the next time I build a 100MB Xorg/busybox distro.

Re: howm

Posted: Fri Aug 08, 2014 2:38 pm
by harveyhunt
Subsentient wrote:Now this seems rather nice actually. I might find a use for this the next time I build a 100MB Xorg/busybox distro.
Thanks Subsentient, I am working on getting some more code done whilst I am on holiday, hopefully some more bug fixes soon. :-)

Re: howm

Posted: Sat Aug 09, 2014 9:16 pm
by Subsentient
I might be helpful in sterilizing your code and making it standards-compliant. I'm a C language-lawyer. Let me know if this is something you want.

Re: howm

Posted: Tue Aug 12, 2014 1:06 pm
by harveyhunt
Subsentient wrote:I might be helpful in sterilizing your code and making it standards-compliant. I'm a C language-lawyer. Let me know if this is something you want.
That is definitely something that I would find helpful, this is my first bigger C project so I am not sure where to start with compliance. :-(

Re: howm

Posted: Wed Aug 13, 2014 8:39 pm
by Subsentient
@harveyhunt: link me your source.

EDIT: Found it.

Harvey, I read a good portion, and this code is really, really good. I'm serious. It's beautiful. Well thought out, well optimized, bit shift and AND combinations that make my eyes hurt, it's glorious. I do hate the indentation but that's because I love Allman style. It appears you are attempting to comply with C99. That's fine, but I bet with minimal work you could comply with C89. :^D

Is that something you'd like?

The only immediate possible standard violation is that I saw a union in there, and knowing how unions are usually used, I must ask. Are you using it to type-pun? If so, that's allowed by GCC, but not actually legal C. You can only read the member of a union you last wrote to, sayeth the standard.

Re: howm

Posted: Wed Aug 27, 2014 1:40 pm
by harveyhunt
Subsentient wrote:@harveyhunt: link me your source.

EDIT: Found it.

Harvey, I read a good portion, and this code is really, really good. I'm serious. It's beautiful. Well thought out, well optimized, bit shift and AND combinations that make my eyes hurt, it's glorious. I do hate the indentation but that's because I love Allman style. It appears you are attempting to comply with C99. That's fine, but I bet with minimal work you could comply with C89. :^D

Is that something you'd like?

The only immediate possible standard violation is that I saw a union in there, and knowing how unions are usually used, I must ask. Are you using it to type-pun? If so, that's allowed by GCC, but not actually legal C. You can only read the member of a union you last wrote to, sayeth the standard.
Thanks Subsentient. :-)

Making sure stuff adhere to C99 would be awesome- I mentioned to you on IRC that I require C99 for the variadic macros.

I want to optimise the code a little more, it is a little too slow sometimes. Can you recommend a profiler that you like?

Re: howm

Posted: Mon Sep 29, 2014 8:03 pm
by harveyhunt
I have just made a gif showing off cut and paste.

I really need to get around to updating my colours...

Re: howm

Posted: Thu Dec 18, 2014 3:45 am
by harveyhunt
I finally got some free time to mess with some new colours - they are about as festive as I get. ;-)