comparison config.default.h @ 304:06dfbb8d1886

added sample command to config.default.h to highlight how to query class:instance info with a one-liner of shell commands
author Anselm R.Garbe <arg@10ksloc.org>
date Wed, 16 Aug 2006 15:00:14 +0200
parents 093744cc5353
children f7978c6395f5
comparison
equal deleted inserted replaced
303:1120bd29a275 304:06dfbb8d1886
46 { MODKEY|ControlMask, XK_3, toggleview, { .i = 3 } }, \ 46 { MODKEY|ControlMask, XK_3, toggleview, { .i = 3 } }, \
47 { MODKEY|ControlMask, XK_4, toggleview, { .i = 4 } }, \ 47 { MODKEY|ControlMask, XK_4, toggleview, { .i = 4 } }, \
48 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ 48 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
49 }; 49 };
50 50
51 /* Query class:instance for regex matching info with following command:
52 * ; xprop | grep WM_CLASS | sed 's/"//g;s/,//g' | awk '{ printf("%s:%s", $4, $3) }' */
51 #define RULES \ 53 #define RULES \
52 static Rule rule[] = { \ 54 static Rule rule[] = { \
53 /* class:instance regex tags regex isfloat */ \ 55 /* class:instance regex tags regex isfloat */ \
54 { "Firefox.*", "2", False }, \ 56 { "Firefox.*", "2", False }, \
55 { "Gimp.*", NULL, True}, \ 57 { "Gimp.*", NULL, True}, \