applied the shorter xprop command
a420ceab
1 file(s) · +1 −1
| 49 | 49 | }; |
|
| 50 | 50 | ||
| 51 | 51 | /* Query class:instance for regex matching info with following command: |
|
| 52 | - | * xprop | grep WM_CLASS | sed 's/"//g;s/,//g' | awk '{ printf("%s:%s", $4, $3) }' */ |
|
| 52 | + | * xprop | awk -F'"' '/^WM_CLASS/ { printf "%s:%s\n", $4, $2 }'*/ |
|
| 53 | 53 | #define RULES \ |
|
| 54 | 54 | static Rule rule[] = { \ |
|
| 55 | 55 | /* class:instance regex tags regex isfloat */ \ |