From dd4f2a94d8f16a2cb88f5e1cf93777a24fb93f09 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Tue, 4 Jan 2022 14:41:03 -0500 Subject: 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. --- dwmblocks.c | 3 +++ 1 file changed, 3 insertions(+) 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){ -- cgit v1.2.3