Re: [dwm] unsigned int or size_t

2008-07-30 Thread Szabolcs Nagy
On 7/31/08, Filippo Erik Negroni <[EMAIL PROTECTED]> wrote: > Hi All, > > I noticed the code in dwm uses unsigned int for positive counters of > memory arrays instead of size_t. > Is there a particular reason you don't use size_t in order to convey > that you are using that quantity as a counter of

Re: [dwm] save cpu cycles - bar status and wrapper scripts

2008-07-30 Thread Alex Matviychuk
Works like a champ! Here is my script setup (please let me know if I can improve anything): .xinitrc: -- ... rmdir /tmp/dwm-bar-script-lock dwm-statusbar & dwm-launch dwm-statusbar: -- #!/bin/bash #Incrementing numbers are just for testing. LOCK=/tmp/dwm-bar-script-l

Re: [dwm] DockBox - A Tiling Window Manager for Windows

2008-07-30 Thread hiro
Thanks, that's interesting.

[dwm] unsigned int or size_t

2008-07-30 Thread Filippo Erik Negroni
Hi All, I noticed the code in dwm uses unsigned int for positive counters of memory arrays instead of size_t. Is there a particular reason you don't use size_t in order to convey that you are using that quantity as a counter of memory space? -- Cheers, Filippo

Re: [dwm] DWMII layout with a "more better" integration

2008-07-30 Thread Donald Chai
@pancake : > I dont see any point for having a function called > "dwmiinoinfiniteloop" Well this function is necessary, I didn't know how to call it, though its name is relevant... If you don't like its name feel free to change it but I won't. The important thing is that it does its job. I

[dwm] DWMII layout with a "more better" integration

2008-07-30 Thread QUINTIN Guillaume
Hi all and pancake ! This is the dwmii.c file containing the dwmii layout with the instructions to make it work ! @pancake : > I dont see any point for having a function called > "dwmiinoinfiniteloop" Well this function is necessary, I didn't know how to call it, though its name is relevan

Re: [dwm] save cpu cycles - bar status and wrapper scripts

2008-07-30 Thread Szabolcs Nagy
On 7/30/08, Kurt H Maier <[EMAIL PROTECTED]> wrote: > static const char *barcmd[] = { "/path/to/script > /path/to/pipe", NULL }; SHCMD("/path/to/script > /path/to/pipe") macro should be used there (so the '>' is interpreted by the shell)

Re: [dwm] save cpu cycles - bar status and wrapper scripts

2008-07-30 Thread Kurt H Maier
Maybe you could not run the script in the loop, and instead trigger it when you activate the bar. Something like this: static const char *barcmd[] = { "/path/to/script > /path/to/pipe", NULL }; ... static Key keys[] = { { MODKEY, XK_b, spawn, {.v = barcmd

Re: [dwm] save cpu cycles - bar status and wrapper scripts

2008-07-30 Thread Alex Matviychuk
Thanks for the suggestion. I tried it out by wrapping the FD readin block with if(showbar) and it suppressed the output of the while loop to the dwm bar. However, to test it out I put an incrementing value in the while block of my dwm wrapper script and when I re-enable the bar, the value seems to

Re: [dwm] DWMII layout for DWM 5.1, a better integration !!!

2008-07-30 Thread pancake
On Wed, 2008-07-30 at 13:14 +0200, QUINTIN Guillaume wrote: > Hi all, > > This is the DWMII layout for DWM 5.1. It is a layout in the dwm way this > time ! The only modification is within the Client struct and holds in 11 > chars : "int dwmii;\n". This modification prevents from having a more >

Re: [dwm] DWMII layout for DWM 5.1, a better integration !!!

2008-07-30 Thread Szabolcs Nagy
On 7/30/08, QUINTIN Guillaume <[EMAIL PROTECTED]> wrote: > The only modification is within the Client struct and holds in 11 > chars : "int dwmii;\n". This modification prevents from having a more yes the dwm config.h api is that powerful :) i'd put all the layout code in a separate file though,

[dwm] DWMII layout for DWM 5.1, a better integration !!!

2008-07-30 Thread QUINTIN Guillaume
Hi all, This is the DWMII layout for DWM 5.1. It is a layout in the dwm way this time ! The only modification is within the Client struct and holds in 11 chars : "int dwmii;\n". This modification prevents from having a more complex algorithm and more lines of code. The last release of my layou

Re: [dwm] dwm-5.1 / dmenu-3.8 / sic-1.0 / slock-0.9 / sselp-0.2

2008-07-30 Thread Anselm R Garbe
2008/7/30 Alex Matviychuk <[EMAIL PROTECTED]>: >> There were also some minor changes to config.h, please use diff(1) >> when upgrading your 5.0.1 config.h in order to prevent bugs. > > How do I map togglemax? Is it still around? Indirectly, Mod1-m and then Mod1-space Note, I decided to handle til