i3bar: properly restart status command after config change

This commit is contained in:
Orestis Floros
2021-01-12 08:41:19 +01:00
parent 0370c5e297
commit 6e0b29a65b
5 changed files with 24 additions and 5 deletions

View File

@ -42,6 +42,12 @@ typedef struct {
bool click_events_init;
} i3bar_child;
/*
* Remove all blocks from the given statusline.
* If free_resources is set, the fields of each status block will be free'd.
*/
void clear_statusline(struct statusline_head *head, bool free_resources);
/*
* Start a child process with the specified command and reroute stdin.
* We actually start a $SHELL to execute the command so we don't have to care