diff options
-rw-r--r-- | sway/config/bar.c | 4 | ||||
-rw-r--r-- | sway/ipc-json.c | 4 | ||||
-rw-r--r-- | swaybar/bar.c | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/sway/config/bar.c b/sway/config/bar.c index 48a632fb..b8695798 100644 --- a/sway/config/bar.c +++ b/sway/config/bar.c | |||
@@ -99,10 +99,6 @@ struct bar_config *default_bar_config(void) { | |||
99 | if (!(bar->bindings = create_list())) { | 99 | if (!(bar->bindings = create_list())) { |
100 | goto cleanup; | 100 | goto cleanup; |
101 | } | 101 | } |
102 | if (!(bar->status_command = | ||
103 | strdup("while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done"))) { | ||
104 | goto cleanup; | ||
105 | } | ||
106 | // set default colors | 102 | // set default colors |
107 | if (!(bar->colors.background = strndup("#000000ff", 9))) { | 103 | if (!(bar->colors.background = strndup("#000000ff", 9))) { |
108 | goto cleanup; | 104 | goto cleanup; |
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 7c5a0a5d..f02f370b 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -514,8 +514,8 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) { | |||
514 | json_object_new_string(bar->hidden_state)); | 514 | json_object_new_string(bar->hidden_state)); |
515 | json_object_object_add(json, "position", | 515 | json_object_object_add(json, "position", |
516 | json_object_new_string(bar->position)); | 516 | json_object_new_string(bar->position)); |
517 | json_object_object_add(json, "status_command", | 517 | json_object_object_add(json, "status_command", bar->status_command ? |
518 | json_object_new_string(bar->status_command)); | 518 | json_object_new_string(bar->status_command) : NULL); |
519 | json_object_object_add(json, "font", | 519 | json_object_object_add(json, "font", |
520 | json_object_new_string((bar->font) ? bar->font : config->font)); | 520 | json_object_new_string((bar->font) ? bar->font : config->font)); |
521 | if (bar->separator_symbol) { | 521 | if (bar->separator_symbol) { |
diff --git a/swaybar/bar.c b/swaybar/bar.c index c86e71b8..3990f1ca 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c | |||
@@ -572,8 +572,8 @@ void bar_run(struct swaybar *bar) { | |||
572 | add_event(bar->status->read_fd, POLLIN, status_in, bar); | 572 | add_event(bar->status->read_fd, POLLIN, status_in, bar); |
573 | } | 573 | } |
574 | while (1) { | 574 | while (1) { |
575 | event_loop_poll(); | ||
576 | wl_display_flush(bar->display); | 575 | wl_display_flush(bar->display); |
576 | event_loop_poll(); | ||
577 | } | 577 | } |
578 | } | 578 | } |
579 | 579 | ||