howm
Forum rules
Post your scrot in the appropriate section. If the section does not exist yet - open a new thread ;)
Post your scrot in the appropriate section. If the section does not exist yet - open a new thread ;)
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
- franksinistra
- Ivana Fukalot
- Posts: 1093
- Joined: Mon Jan 27, 2014 2:03 am
- Location: 印尼国
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
Awesome. :)franksinistra wrote:convinced.
I'll try it once more
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?
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
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. :)
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
Just messed with some dzen colours and unicode icons to represent layouts. I think they may be a little small though...
- Subsentient
- Window Manager
- Posts: 56
- Joined: Fri Jun 13, 2014 4:25 am
- Location: (void*)0
- Contact:
Re: howm
Now this seems rather nice actually. I might find a use for this the next time I build a 100MB Xorg/busybox distro.
Bathing in peanut butter is good for the soul. Not the chunky kind though, the chunks get stuck in your crack.
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
Thanks Subsentient, I am working on getting some more code done whilst I am on holiday, hopefully some more bug fixes soon. :-)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.
- Subsentient
- Window Manager
- Posts: 56
- Joined: Fri Jun 13, 2014 4:25 am
- Location: (void*)0
- Contact:
Re: howm
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.
Bathing in peanut butter is good for the soul. Not the chunky kind though, the chunks get stuck in your crack.
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
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. :-(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.
- Subsentient
- Window Manager
- Posts: 56
- Joined: Fri Jun 13, 2014 4:25 am
- Location: (void*)0
- Contact:
Re: howm
@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.
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.
Bathing in peanut butter is good for the soul. Not the chunky kind though, the chunks get stuck in your crack.
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
Thanks Subsentient. :-)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.
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?
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
I have just made a gif showing off cut and paste.
I really need to get around to updating my colours...
I really need to get around to updating my colours...
- harveyhunt
- Haxxor
- Posts: 125
- Joined: Mon Jul 07, 2014 3:06 am
- Contact:
Re: howm
I finally got some free time to mess with some new colours - they are about as festive as I get. ;-)