X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.default.h;h=c0102b074519b5b2bed7e50514b3a69aae9f2da6;hb=a5379e901c909407f991302499c9d7522cb6d00d;hp=453da71d548677f018b0fae6a25ec45519db55f7;hpb=39ffc18635686b1a65cd80d19828c4fe2aed982f;p=dwm.git diff --git a/config.default.h b/config.default.h index 453da71..c0102b0 100644 --- a/config.default.h +++ b/config.default.h @@ -47,11 +47,11 @@ static Key key[] = { \ { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ }; -/* Query class:instance for regex matching info with following command: - * xprop | awk -F'"' '/^WM_CLASS/ { printf "%s:%s\n", $4, $2 }'*/ +/* Query class:instance:title for regex matching info with following command: + * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/{ printf("%s\n",$2) }' */ #define RULES \ static Rule rule[] = { \ - /* class:instance regex tags regex isfloat */ \ + /* class:instance:title regex tags regex isfloat */ \ { "Firefox.*", "2", False }, \ { "Gimp.*", NULL, True}, \ };