Explorar o código

applied the shorter xprop command

Anselm R.Garbe %!s(int64=19) %!d(string=hai) anos
pai
achega
a420ceab50
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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:
- * 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 */ \