changed the enviroment variable from BUTTON to BLOCK_BUTTON to make the script i use in i3 work

jasper/latest
Jasper Levin Spahl 4 years ago
parent 27de5f3c17
commit 78912a350b
Signed by: jasper
GPG Key ID: 91991C9808A18BB0

@ -70,10 +70,10 @@ void getcmd(const Block *block, char *output)
FILE *cmdf; FILE *cmdf;
if (*button) if (*button)
{ {
setenv("button", button, 1); setenv("BLOCK_BUTTON", button, 1);
cmdf = popen(cmd, "r"); cmdf = popen(cmd, "r");
*button = '\0'; *button = '\0';
unsetenv("BUTTON"); unsetenv("BLOCK_BUTTON");
} }
else else
{ {

Loading…
Cancel
Save