From 98f202dd1b2782d11a713513f5dcca2f52daab73 Mon Sep 17 00:00:00 2001 From: Johannes Lange Date: Sun, 5 Feb 2017 10:04:35 +0100 Subject: [PATCH] restart bar status command on config reload (#2668) Closes #2651 --- i3bar/src/ipc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/i3bar/src/ipc.c b/i3bar/src/ipc.c index 4a090ad7..cc5074e5 100644 --- a/i3bar/src/ipc.c +++ b/i3bar/src/ipc.c @@ -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); } -- 2.39.5