From: Anselm R.Garbe Date: Wed, 16 Aug 2006 13:00:14 +0000 (+0200) Subject: added sample command to config.default.h to highlight how to query class:instance... X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=56130c36894edd0c730e5c8ee0ac07cad524d176 added sample command to config.default.h to highlight how to query class:instance info with a one-liner of shell commands --- diff --git a/config.default.h b/config.default.h index 9d99794..527941c 100644 --- a/config.default.h +++ b/config.default.h @@ -48,6 +48,8 @@ static Key key[] = { \ { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ }; +/* Query class:instance for regex matching info with following command: + * ; xprop | grep WM_CLASS | sed 's/"//g;s/,//g' | awk '{ printf("%s:%s", $4, $3) }' */ #define RULES \ static Rule rule[] = { \ /* class:instance regex tags regex isfloat */ \