Re: [dwm] bitarray and void *arg (was: using bitaray for tags (PATCH))

2008-05-22 Thread Anselm R. Garbe
Applied. Thanks a lot! --Anselm On Wed, May 21, 2008 at 07:43:29PM +0200, Enno Gottox Boland wrote: There was a mistake in config.def.h. Here's the fixed on. 2008/5/21, Enno Gottox Boland [EMAIL PROTECTED]: Hi! I added the void *arg feature to dwm and diffed it together with the

Re: [dwm] bitarray and void *arg (was: using bitaray for tags (PATCH))

2008-05-22 Thread yy
2008/5/22, Anselm R. Garbe [EMAIL PROTECTED]: Applied. Thanks a lot! void -toggletag(const char *arg) { - unsigned int i, j; +toggletag(void *arg) { + int i, m = *(int *)arg; + for(i = 0; i sizeof(int) * 8; i++) + fputc(m 1 i ? '1' : '0', stdout); +

[dwm] tags definition

2008-05-22 Thread yy
I was too tired of defining 4 different keys for each tag inside config.h, so I created a TAGKEYS macro. I vote for its inclusion in main dwm. I was thinking about having the (uint[]){ 1 Tag} inside the macro, or even (uint[]){ 1 (Key - 1)} , but since it is in config.h all that is up to you and

Re: [dwm] way towards 5.0

2008-05-22 Thread Jan Christoph Ebersbach
On Mon 19-05-2008 20:34 +0200, Anselm R. Garbe wrote: Maybe I will include something like this in the future. Out of curiosity, which keybindings are you using to achieve keyboard-driven movements and resizals, since Mod1-{h,j,k,l} are taken already. Good question. For a long time I remapped

Re: [dwm] way towards 5.0

2008-05-22 Thread Antoni Grzymala
Anselm R. Garbe dixit (2008-05-17, 16:05): - removed reapply() [...] Let me know how welcome do you feel about those changes. Bug reports are also welcome. I'm not sure removing reapply() and forcing people to restart dwm is a neat idea for those using logon managers. Quitting dwm ends my

Re: [dwm] way towards 5.0

2008-05-22 Thread Jan Christoph Ebersbach
On Mon 19-05-2008 18:30 +0200, Rockwolf wrote: I too think the floating layout is necessary. But if you don't like it, you can always turn it of in the config. I really like this config.h stuff, you can throw out anything you don't like ^^ and only if no-one likes it, it might be worth

Re: [dwm] way towards 5.0

2008-05-22 Thread Rockwolf
I understand what you mean. And I didn't know you could tile by default with that rule. But that's pretty radical ^^ On Thu, 22 May 2008, Jan Christoph Ebersbach wrote: No doubt about the usefulness of the floating layout. I was just criticising the few functionality for floating windows

Re: [dwm] way towards 5.0

2008-05-22 Thread Johannes Hofmann
On Thu, May 22, 2008 at 08:17:47PM +0200, Antoni Grzymala wrote: Anselm R. Garbe dixit (2008-05-17, 16:05): - removed reapply() [...] Let me know how welcome do you feel about those changes. Bug reports are also welcome. I'm not sure removing reapply() and forcing people to

Re: [dwm] way towards 5.0

2008-05-22 Thread Szabolcs Nagy
On 5/22/08, Johannes Hofmann [EMAIL PROTECTED] wrote: while true do echo temp $((`sysctl -n hw.acpi.thermal.tz0.temperature`/10-273))°C batt `sysctl -n hw.acpi.battery.life`% sleep 1 done | while true; do dwm done this way the information in the statusbar is

Re: [dwm] way towards 5.0

2008-05-22 Thread Szabolcs Nagy
On 5/22/08, Szabolcs Nagy [EMAIL PROTECTED] wrote: this way the information in the statusbar is outdated (by 1 second) ah sorry this is bullshit never mind

Re: [dwm] using bitaray for tags (PATCH)

2008-05-22 Thread Szabolcs Nagy
On 5/22/08, David Tweed [EMAIL PROTECTED] wrote: #define TAGMASK ((int)((1LL LENGTH(tags) + 1) - 1)) Incidentally, I think in the alphabet soup misdesign of C numeric constants, I suspect the code probably wants 1ULL and given long long is 64-bits and int is 32-bit on most 64-bit

Re: [dwm] using bitaray for tags (PATCH)

2008-05-22 Thread David Tweed
On Thu, May 22, 2008 at 9:37 PM, Szabolcs Nagy [EMAIL PROTECTED] wrote: On 5/22/08, David Tweed [EMAIL PROTECTED] wrote: ..but (if eg int is 32 bit and we have 32 tags then) 132 is 0, and -1 is all ones in binary (guaranteed by the c standard) Ah, my mistake. I've spent too long writing 64-bit

Re: [dwm] way towards 5.0

2008-05-22 Thread Madhu
* [EMAIL PROTECTED] Wrote on Thu, 22 May 2008 20:17:47 +0200: | - removed reapply() | I'm not sure removing reapply() and forcing people to restart dwm is a | neat idea for those using logon managers. Quitting dwm ends my Xsession, | kills the X clients and takes me back to xdm. | | Perhaps I'm