浏览代码

applied the shorter xprop command

Anselm R.Garbe 19 年之前
父节点
当前提交
a420ceab50
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      config.default.h

+ 1 - 1
config.default.h

@@ -49,7 +49,7 @@ static Key key[] = { \
 };
 };
 
 
 /* Query class:instance for regex matching info with following command:
 /* 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 \
 #define RULES \
 static Rule rule[] = { \
 static Rule rule[] = { \
 	/* class:instance regex		tags regex	isfloat */ \
 	/* class:instance regex		tags regex	isfloat */ \