changed the enviroment variable from BUTTON to BLOCK_BUTTON to make the script i use in i3 work
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user