(wrong string) ël Proust

From: <hg_AT_suckless.org>
Date: Tue, 31 Jul 2012 09:12:59 +0200 (CEST)

changeset: 966:285efe60354f
tag: tip
user: Raphaël Proust <raphlalou_AT_gmail.com>
date: Tue Jul 31 09:14:25 2012 +0200
files: dwm.suckless.org/customisation/customfuncs.md dwm.suckless.org/customisation/noapps.md dwm.suckless.org/customisation/rules.md
description:
Updating dwm examples with monitor entry in rules


diff -r ed691370862d -r 285efe60354f dwm.suckless.org/customisation/customfuncs.md
--- a/dwm.suckless.org/customisation/customfuncs.md Mon Jul 30 21:45:43 2012 +0200
+++ b/dwm.suckless.org/customisation/customfuncs.md Tue Jul 31 09:14:25 2012 +0200
_AT_@ -30,13 +30,13 @@
         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 -r ed691370862d -r 285efe60354f dwm.suckless.org/customisation/noapps.md
--- a/dwm.suckless.org/customisation/noapps.md Mon Jul 30 21:45:43 2012 +0200
+++ b/dwm.suckless.org/customisation/noapps.md Tue Jul 31 09:14:25 2012 +0200
_AT_@ -9,9 +9,9 @@
 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.
_AT_@ -20,8 +20,8 @@
 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 -r ed691370862d -r 285efe60354f dwm.suckless.org/customisation/rules.md
--- a/dwm.suckless.org/customisation/rules.md Mon Jul 30 21:45:43 2012 +0200
+++ b/dwm.suckless.org/customisation/rules.md Tue Jul 31 09:14:25 2012 +0200
_AT_@ -14,9 +14,9 @@
 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
Received on Tue Jul 31 2012 - 09:12:59 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:32:30 CEST