diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2022-01-04 14:41:03 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2022-01-04 14:41:03 -0500 |
| commit | dd4f2a94d8f16a2cb88f5e1cf93777a24fb93f09 (patch) | |
| tree | 3a824e8b66d5e6e6286bd93aab6336aa84c7269b /dwmblocks.c | |
| parent | 66f31c307adbdcc2505239260ecda24a49eea7af (diff) | |
| download | dwmblocks-dd4f2a94d8f16a2cb88f5e1cf93777a24fb93f09.tar.gz | |
dwmblocks: removed signal embedding
The signal number was embedded at the start of the string, resulting in
unprintable characters in my configuration. It seems to work perfectly
well without this, so I've removed it.
Diffstat (limited to 'dwmblocks.c')
| -rw-r--r-- | dwmblocks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dwmblocks.c b/dwmblocks.c index 0969ed7..709ce87 100644 --- a/dwmblocks.c +++ b/dwmblocks.c @@ -78,11 +78,14 @@ int gcd(int a, int b) //opens process *cmd and stores output in *output void getcmd(const Block *block, char *output) { + /* if (block->signal) { output[0] = block->signal; output++; } + */ + char *cmd = block->command; FILE *cmdf = popen(cmd,"r"); if (!cmdf){ |