sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1654B)


      1 clients per tag
      2 ===============
      3 
      4 Description
      5 -----------
      6 This patch modifies the tile() layout to limit the maximum number of visible
      7 clients per tag. Out-of-limit windows are arranged behind the visible ones
      8 in the slave area.
      9 
     10 	+-----------------------+  +-----------------------+
     11 	| -1/3                  |  |  2/3                  |
     12 	+-----------+-----------+  +-----------+-----------+
     13 	|           |           |  |           |           |
     14 	|           |     2     |  |           |           |
     15 	|           |           |  |           |           |
     16 	|     1     +-----------+  |     1     |     2     |
     17 	|           |           |  |           |           |
     18 	|           |     3     |  |           |           |
     19 	|           |           |  |           |           |
     20 	+-----------+-----------+  +-----------+-----------+
     21 	          cpt=-1                     cpt=2
     22 
     23 Usage
     24 -----
     25 1. Download the patch and apply according to the [general instructions](.).
     26 2. The patch adds two new keybindings (META-q/a) which set cpt to ^2 and ^3:
     27 
     28 If the argument to 'clientspertag' starts with '^' pressing twice the key
     29 will result on swapping between the defined value and -1.
     30 
     31 * To show all windows put "-1" as argument value.
     32 * To only display floating windows put "0" as argument.
     33 * For a toggling pair put "^2".
     34 
     35 	static Key keys[] = {
     36 		/* modifier      key        function        argument */
     37 		...
     38 		{ MODKEY,        XK_q,      clientspertag,  {.v="^2"} },
     39 		{ MODKEY,        XK_a,      clientspertag,  {.v="^3"} },
     40 	};
     41 
     42 Download
     43 --------
     44 * [dwm-clientspertag-5.6.1.diff](dwm-clientspertag-5.6.1.diff)
     45 
     46 Maintainer
     47 ----------
     48 * pancake - <pancake@nopcode.org>