added SHCMD support for pipe-based commands due the new spawn() versio
e5a965a2
1 file(s) · +1 −0
| 51 | 51 | #define LENGTH(x) (sizeof x / sizeof x[0]) |
|
| 52 | 52 | #define MAXTAGLEN 16 |
|
| 53 | 53 | #define MOUSEMASK (BUTTONMASK|PointerMotionMask) |
|
| 54 | + | #define SHCMD(cmd) { .v = (char*[]){ "/bin/sh", "-c", cmd, NULL } } |
|
| 54 | 55 | #define TAGMASK ((int)((1LL << LENGTH(tags)) - 1)) |
|
| 55 | 56 | #define TEXTW(x) (textnw(x, strlen(x)) + dc.font.height) |
|
| 56 | 57 |