sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 22016e1e437cdfb390cdf3e5c91aa12d4129d3aa
parent 9f5b044db8717adf87c194f50f190fff38185050
Author: Raphaƫl Proust <raphlalou@gmail.com>
Date:   Tue, 31 Jul 2012 09:14:25 +0200

Updating dwm examples with monitor entry in rules
Diffstat:
Mdwm.suckless.org/customisation/customfuncs.md | 14+++++++-------
Mdwm.suckless.org/customisation/noapps.md | 10+++++-----
Mdwm.suckless.org/customisation/rules.md | 6+++---
3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/dwm.suckless.org/customisation/customfuncs.md b/dwm.suckless.org/customisation/customfuncs.md @@ -30,13 +30,13 @@ This example is for people who prefer to control dwm with the mouse (for dwm 5.1 const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "w" }; static Rule rules[] = { - /* class instance title tags mask isfloating */ - { "acme", NULL, NULL, 1 << 2, False }, - { "Acroread", NULL, NULL, 0, True }, - { "Gimp", NULL, NULL, 0, True }, - { "GQview", NULL, NULL, 0, True }, - { "MPlayer", NULL, NULL, 0, True }, - { "Navigator", NULL, NULL, 1 << 5, False }, + /* class instance title tags mask isfloating monitor */ + { "acme", NULL, NULL, 1 << 2, False, -1 }, + { "Acroread", NULL, NULL, 0, True, -1 }, + { "Gimp", NULL, NULL, 0, True, -1 }, + { "GQview", NULL, NULL, 0, True, -1 }, + { "MPlayer", NULL, NULL, 0, True, -1 }, + { "Navigator", NULL, NULL, 1 << 5, False, -1 }, }; /* layout(s) */ diff --git a/dwm.suckless.org/customisation/noapps.md b/dwm.suckless.org/customisation/noapps.md @@ -9,9 +9,9 @@ If, like me, you don't want any application to be treated in a special way, you The original code describes what each value represents within the Rule structure. static Rule rules[] = { - /* class instance title tags mask isfloating */ - { "Gimp", NULL, NULL, 0, True }, - { "Firefox", NULL, NULL, 1 << 8, True }, + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, True, -1 }, + { "Firefox", NULL, NULL, 1 << 8, True, -1 }, }; For instance, Gimp and Firefox will be labeled as floating windows, even if the layout selected is Monocle or Tiled. @@ -20,8 +20,8 @@ In particular, the tag mask will attach Firefox to tag '9'. If we don't want any window class to be treated in a special way, we need to initialize rules with at least one element: static Rule rules[] = { - /* class instance title tags mask isfloating */ - { NULL, NULL, NULL, 0, False }, + /* class instance title tags mask isfloating monitor */ + { NULL, NULL, NULL, 0, False, -1 }, }; The code in dwm.c will check that the `class` element is not NULL before any matching is done. diff --git a/dwm.suckless.org/customisation/rules.md b/dwm.suckless.org/customisation/rules.md @@ -14,9 +14,9 @@ means the currently viewed tags, and the default mode is tiled so isfloating is Example from the default config: static Rule rules[] = { - /* class instance title tags mask isfloating */ - { "Gimp", NULL, NULL, 0, True }, - { "Firefox", NULL, NULL, 1 << 8, True }, + /* class instance title tags mask isfloating monitor */ + { "Gimp", NULL, NULL, 0, True, -1 }, + { "Firefox", NULL, NULL, 1 << 8, True, -1 }, }; These rules make every Gimp and Firefox window floating and makes Firefox