Skip to content

Commit

Permalink
restart bar status command on config reload (#2668)
Browse files Browse the repository at this point in the history
Closes #2651
  • Loading branch information
jolange authored and stapelberg committed Feb 5, 2017
1 parent fa488d7 commit 98f202d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions i3bar/src/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ void got_bar_config_update(char *event) {
init_xcb_late(config.fontname);
init_colors(&(config.colors));

/* restart status command process */
kill_child();
start_child(config.command);
FREE(config.command);

draw_bars(false);
}

Expand Down

0 comments on commit 98f202d

Please sign in to comment.