X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.default.h;h=387b24fa491dbe4e2d23891eeb91a6d97839608f;hb=a420ceab50b896a6b6edc81c2a42c4ddc75b867e;hp=527941c22c7ea8224781145c3863feb1808567f7;hpb=56130c36894edd0c730e5c8ee0ac07cad524d176;p=dwm.git diff --git a/config.default.h b/config.default.h index 527941c..387b24f 100644 --- a/config.default.h +++ b/config.default.h @@ -49,7 +49,7 @@ static Key key[] = { \ }; /* 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) }' */ + * xprop | awk -F'"' '/^WM_CLASS/ { printf "%s:%s\n", $4, $2 }'*/ #define RULES \ static Rule rule[] = { \ /* class:instance regex tags regex isfloat */ \