Re: [dwm] stacked cpt patch updated!

2007-11-25 Thread Nagy Mate
greetings,
 the patch works even better than before, i even like the cpt
functionality now :)
 1.  Your example configuration of '{ MODKEY|ShiftMask, XK_q,
 clientspertag,  0 },' conflicts with the default binding for quit.
 i might be doing something wrong, but i never once used the quit
binding (since it doesn't kill the script i use to feed my status line).
I use a small shell script to restart dwm (killing both dwm and the
script); and i kill the x server to quit.

- Mate



Re: [dwm] stacked cpt patch updated!

2007-11-25 Thread pancake
 Thanks for the updated cpt patch; I only had to change the default CPTH
 value.

I have updated the patch with a new function that allows to modify the Cpth
value on the fly:

{ MODKEY,   XK_n,   setcpth,  +32 }, \
{ MODKEY|ShiftMask, XK_n,   setcpth,  -32 }, \


 
 There are a few things that could be made clearer / changed.
 
 1.  Your example configuration of '{ MODKEY|ShiftMask, XK_q,
 clientspertag,  0 },' conflicts with the default binding for quit.

You're right, I remove the mod+shift+q key of my config.h coz i never use this
functionality. I prefer to kill the X or just type 'pkill dwm'. btw i'll
change it for another value.
 
 2.  I understand that, for me to successfully use nmaster.c, I must
 include it before Layout layouts[], as stated in your documentation.
 However, what was not made apparent was that #RESIZEHINTS must be
 specified before you include nmaster.c.  Therefore, I recommend you
 change the following: 
 You should modify your config.h to include nmaster.c from it after
 setting the NMASTER, NCOLS and NROWS macro defintions.
 
 to this (or something similar): 
 
 You should modify your config.h to include nmaster.c AFTER setting
 the NMASTER, NCOLS, NROWS, BORDERPX, and RESIZEHINTS macro definitions.

changed!
 
 This would make it a lot easier to compile dwm without trial and error,
 especially for a person like me who is not very familiar with C.

ok :) done

 Apart from that, thanks for the patch: it works well.

WHen using setcpth you can see that it's still buggy. but almost ok :)

ill fix these minor issues soon :) 

 Sincerely,
 
 Antony Jepson.
 
  --pancake



Re: [dwm] stacked cpt patch updated!

2007-11-25 Thread pancake
I have updated the patch again fixing the 1 pixel gap and the height calculation
of slave area clients. Now it looks pretty perfect. The setcpth function has 
been
set cleaner by limitting the maximum and minimum sizes for the bottom stack 
area.

I have also updated the documentation with some ascii stuff:

 http://news.nopcode.org/nmaster-4.7.c

TITLE
-
 descrp:  ntile/tilecols layouts with clientspertag for dwm-4.7
 author:  pancake youterm.com
 update:  2007-11-26


CONFIGURATION
-
 You should modify your config.h to include nmaster.c AFTER setting
 the NMASTER, NCOLS, NROWS, BORDERPX, and RESIZEHINTS macro definitions
 and BEFORE the layouts definition.

 A sample configuration with ntile will be:

   #define NMASTER 1
   #define NCOLS 1
   #define NROWS 1
   #define CPTH 32
   #include nmaster-4.7.c
   
   Layout layouts[] = {
{ -|= , ntile },
// ...
   };

   // keys
{ MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
{ MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \
{ MODKEY , XK_q , clientspertag ,^1 } , \
{ MODKEY , XK_w , clientspertag , 2 } , \
{ MODKEY , XK_e , clientspertag , 3 } , \
{ MODKEY   , XK_n , setcpth , +32 } , \
{ MODKEY|ShiftMask , XK_n , setcpth , -32 } , \


 clientspertag:

  both of them features the new cpt patch (clients per tag) which enables
  to define the maximum number of clients you want to focus, the rest are
  stacked at the bottom of the screen. This area has CPTH height and this
  value can be changed on the fly using the setcpth function.

  +--++
  |  ||   Valid values are:
  |  ||-1  -  show all clients
  |  || 0  -  show all clients in the bottom stack area
  +---+--^+---+0  -  show N clients
  +---+---+---+

#define CPTH 32   // num of pixels of the height of the stacked cpt area
 
{ MODKEY , XK_q , clientspertag ,^1 } , \
{ MODKEY , XK_w , clientspertag , 2 } , \
{ MODKEY , XK_e , clientspertag , 3 } , \
{ MODKEY , XK_r , clientspertag , 4 } , \
{ MODKEY , XK_t , clientspertag , 5 } , \
 
{ MODKEY   , XK_n , setcpth , +32 } , \
{ MODKEY|ShiftMask , XK_n , setcpth , -32 } , \

 This source adds two new layouts:

 ntile:

  +-+--+ 
  |_|--| 
  | |--| 
  +-+--+

#define NMASTER 1

{ -|=, ntile } , \

{ MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
{ MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \


 tilecols:

  +--+--+--+ 
  |__|  |__| 
  |  |  |  | 
  +--+--+--+ 

#define NCOLS 2
#define NROWS 1

{ E|], tilecols } , \

{ MODKEY|ShiftMask , XK_j , setnrows , +1 } , \
{ MODKEY|ShiftMask , XK_k , setnrows , -1 } , \
{ MODKEY|ShiftMask , XK_h , setncols , +1 } , \
{ MODKEY|ShiftMask , XK_l , setncols , -1 } , \

  --pancake



Re: [dwm] stacked cpt patch updated!

2007-11-25 Thread Antony Jepson
pancake,

The new stacking patch seems to display my stacked terminals
erroneously.  Take a look at the screenshots, specifically at the bottom
of the screen.  Dotfiles you may be interested in are located here:
http://www.suckless.org/hg.rc/dextra/file/bfcca61b8fea/antony/

http://omploader.org/vN2Jv/1.png
http://omploader.org/vN2Jv/2.png

I can't really describe it beyond showing you. 

Sincerely,

Antony Jepson.

On Nov 26 01:36, pancake wrote:
 I have updated the patch again fixing the 1 pixel gap and the height 
 calculation
 of slave area clients. Now it looks pretty perfect. The setcpth function has 
 been
 set cleaner by limitting the maximum and minimum sizes for the bottom stack 
 area.
 
 I have also updated the documentation with some ascii stuff:
 
  http://news.nopcode.org/nmaster-4.7.c
 
 TITLE
 -
  descrp:  ntile/tilecols layouts with clientspertag for dwm-4.7
  author:  pancake youterm.com
  update:  2007-11-26
 
 
 CONFIGURATION
 -
  You should modify your config.h to include nmaster.c AFTER setting
  the NMASTER, NCOLS, NROWS, BORDERPX, and RESIZEHINTS macro definitions
  and BEFORE the layouts definition.
 
  A sample configuration with ntile will be:
 
#define NMASTER 1
#define NCOLS 1
#define NROWS 1
#define CPTH 32
#include nmaster-4.7.c

Layout layouts[] = {
 { -|= , ntile },
 // ...
};
 
// keys
 { MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
 { MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \
 { MODKEY , XK_q , clientspertag ,^1 } , \
 { MODKEY , XK_w , clientspertag , 2 } , \
 { MODKEY , XK_e , clientspertag , 3 } , \
 { MODKEY   , XK_n , setcpth , +32 } , \
 { MODKEY|ShiftMask , XK_n , setcpth , -32 } , \
 
 
  clientspertag:
 
   both of them features the new cpt patch (clients per tag) which enables
   to define the maximum number of clients you want to focus, the rest are
   stacked at the bottom of the screen. This area has CPTH height and this
   value can be changed on the fly using the setcpth function.
 
   +--++
   |  ||   Valid values are:
   |  ||-1  -  show all clients
   |  || 0  -  show all clients in the bottom stack area
   +---+--^+---+0  -  show N clients
   +---+---+---+
 
 #define CPTH 32   // num of pixels of the height of the stacked cpt area
  
 { MODKEY , XK_q , clientspertag ,^1 } , \
 { MODKEY , XK_w , clientspertag , 2 } , \
 { MODKEY , XK_e , clientspertag , 3 } , \
 { MODKEY , XK_r , clientspertag , 4 } , \
 { MODKEY , XK_t , clientspertag , 5 } , \
  
 { MODKEY   , XK_n , setcpth , +32 } , \
 { MODKEY|ShiftMask , XK_n , setcpth , -32 } , \
 
  This source adds two new layouts:
 
  ntile:
 
   +-+--+ 
   |_|--| 
   | |--| 
   +-+--+
 
 #define NMASTER 1
 
 { -|=, ntile } , \
 
 { MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
 { MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \
 
 
  tilecols:
 
   +--+--+--+ 
   |__|  |__| 
   |  |  |  | 
   +--+--+--+ 
 
 #define NCOLS 2
 #define NROWS 1
 
 { E|], tilecols } , \
 
 { MODKEY|ShiftMask , XK_j , setnrows , +1 } , \
 { MODKEY|ShiftMask , XK_k , setnrows , -1 } , \
 { MODKEY|ShiftMask , XK_h , setncols , +1 } , \
 { MODKEY|ShiftMask , XK_l , setncols , -1 } , \
 
   --pancake


pgp4vDTCDZkG0.pgp
Description: PGP signature


Re: [dwm] stacked cpt patch updated!

2007-11-25 Thread Antony Jepson
pancake,

Yes, I am using the latest version.  dwm.o is not present in the build
dir before I compile dwm.

I'm not sure what is causing the problem.

Sincerely,

Antony Jepson.

On Nov 26 03:36, pancake wrote:
 Did you downloaded the latest version?
 
  http://news.nopcode.org/nmaster-4.7.c
 
 remember to remove dwm.o before typing 'make'.
 
 --pancake
 
 On Sun, 25 Nov 2007 21:14:40 -0500
 Antony Jepson [EMAIL PROTECTED] wrote:
 
  pancake,
  
  The new stacking patch seems to display my stacked terminals
  erroneously.  Take a look at the screenshots, specifically at the bottom
  of the screen.  Dotfiles you may be interested in are located here:
  http://www.suckless.org/hg.rc/dextra/file/bfcca61b8fea/antony/
  
  http://omploader.org/vN2Jv/1.png
  http://omploader.org/vN2Jv/2.png
  
  I can't really describe it beyond showing you. 
  
  Sincerely,
  
  Antony Jepson.
  
  On Nov 26 01:36, pancake wrote:
   I have updated the patch again fixing the 1 pixel gap and the height 
   calculation
   of slave area clients. Now it looks pretty perfect. The setcpth function 
   has been
   set cleaner by limitting the maximum and minimum sizes for the bottom 
   stack area.
   
   I have also updated the documentation with some ascii stuff:
   
http://news.nopcode.org/nmaster-4.7.c
   
   TITLE
   -
descrp:  ntile/tilecols layouts with clientspertag for dwm-4.7
author:  pancake youterm.com
update:  2007-11-26
   
   
   CONFIGURATION
   -
You should modify your config.h to include nmaster.c AFTER setting
the NMASTER, NCOLS, NROWS, BORDERPX, and RESIZEHINTS macro definitions
and BEFORE the layouts definition.
   
A sample configuration with ntile will be:
   
  #define NMASTER 1
  #define NCOLS 1
  #define NROWS 1
  #define CPTH 32
  #include nmaster-4.7.c
  
  Layout layouts[] = {
   { -|= , ntile },
   // ...
  };
   
  // keys
   { MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
   { MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \
   { MODKEY , XK_q , clientspertag ,^1 } , \
   { MODKEY , XK_w , clientspertag , 2 } , \
   { MODKEY , XK_e , clientspertag , 3 } , \
   { MODKEY   , XK_n , setcpth , +32 } , \
   { MODKEY|ShiftMask , XK_n , setcpth , -32 } , \
   
   
clientspertag:
   
 both of them features the new cpt patch (clients per tag) which enables
 to define the maximum number of clients you want to focus, the rest are
 stacked at the bottom of the screen. This area has CPTH height and this
 value can be changed on the fly using the setcpth function.
   
 +--++
 |  ||   Valid values are:
 |  ||-1  -  show all clients
 |  || 0  -  show all clients in the bottom stack area
 +---+--^+---+0  -  show N clients
 +---+---+---+
   
   #define CPTH 32   // num of pixels of the height of the stacked cpt 
   area

   { MODKEY , XK_q , clientspertag ,^1 } , \
   { MODKEY , XK_w , clientspertag , 2 } , \
   { MODKEY , XK_e , clientspertag , 3 } , \
   { MODKEY , XK_r , clientspertag , 4 } , \
   { MODKEY , XK_t , clientspertag , 5 } , \

   { MODKEY   , XK_n , setcpth , +32 } , \
   { MODKEY|ShiftMask , XK_n , setcpth , -32 } , \
   
This source adds two new layouts:
   
ntile:
   
 +-+--+ 
 |_|--| 
 | |--| 
 +-+--+
   
   #define NMASTER 1
   
   { -|=, ntile } , \
   
   { MODKEY|ShiftMask , XK_j, setnmaster , +1 } , \
   { MODKEY|ShiftMask , XK_k, setnmaster , -1 } , \
   
   
tilecols:
   
 +--+--+--+ 
 |__|  |__| 
 |  |  |  | 
 +--+--+--+ 
   
   #define NCOLS 2
   #define NROWS 1
   
   { E|], tilecols } , \
   
   { MODKEY|ShiftMask , XK_j , setnrows , +1 } , \
   { MODKEY|ShiftMask , XK_k , setnrows , -1 } , \
   { MODKEY|ShiftMask , XK_h , setncols , +1 } , \
   { MODKEY|ShiftMask , XK_l , setncols , -1 } , \
   
 --pancake
  
 
 
   --pancake


pgpAiK1cOwSBl.pgp
Description: PGP signature


[dwm] stacked cpt patch updated!

2007-11-24 Thread pancake
Now the cpt patch of nmaster-4.7.c support stacking, i think this is
better way to handle this. let me know what do you think :)

  http://news.nopcode.org/nmaster-4.7.c

  http://news.nopcode.org/nmaster.gif

  --pancake



Re: [dwm] stacked cpt patch updated!

2007-11-24 Thread pancake
bugs fixed, only needs code cleanup ;)

have fun trying it, and let me know what do you think about this feature.

On Sat, 24 Nov 2007 22:16:04 +0100
pancake [EMAIL PROTECTED] wrote:

 NOTE that it's full of bugs i have to go now, but i'll fix it asap ;)
 
 On Sat, 24 Nov 2007 21:56:54 +0100
 pancake [EMAIL PROTECTED] wrote:
 
  Now the cpt patch of nmaster-4.7.c support stacking, i think this is
  better way to handle this. let me know what do you think :)
  
http://news.nopcode.org/nmaster-4.7.c
  
http://news.nopcode.org/nmaster.gif
  
--pancake
  
 
 
   --pancake
 


  --pancake