JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied the shorter xprop command
authorAnselm R.Garbe <arg@10ksloc.org>
Thu, 17 Aug 2006 07:44:17 +0000 (09:44 +0200)
committerAnselm R.Garbe <arg@10ksloc.org>
Thu, 17 Aug 2006 07:44:17 +0000 (09:44 +0200)
config.default.h

index 7e9b7ef..387b24f 100644 (file)
@@ -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 */ \