diff options
| author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-12-20 01:55:36 +0200 |
|---|---|---|
| committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2011-12-20 03:52:03 +0200 |
| commit | fda90fa08a9c54ba635c328458f0be413b643fc1 (patch) | |
| tree | f408382001f23127ab5498d94a8642ecbb12c4a1 /config.h | |
| parent | 74e1efac1105ca1be079cd7cbe56a1c2436f9ab2 (diff) | |
add SHCMD helper for easily spawning shell commands
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -48,6 +48,9 @@ static const AppRule rules[] = { \ { "MPlayer", 3, True }, }; +/* helper for spawning shell commands */ +#define SHCMD(cmd) {.com = (const char*[]){"/bin/bash", "-c", cmd, NULL}} + /** commands **/ static const char *termcmd[] = { "urxvt", NULL }; static const char *dmenucmd[] = { "dmn", NULL }; |
