X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.default.h;h=387b24fa491dbe4e2d23891eeb91a6d97839608f;hb=8c1fffe1067b8c792ca9c018c29677a9708b1e41;hp=7e9b7ef1354aa9ed179c2710c295a96896fcb1c0;hpb=4cc0551948074c82c5b66231f407fd9c142b12cc;p=dwm.git diff --git a/config.default.h b/config.default.h index 7e9b7ef..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 */ \