mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
swaybar: allow null status_command
Sway sets a default status_command which runs date every second. This patch removes this behaviour so the user can have a NULL status bar if desired. I had to swap swaybar's event_loop_poll and wl_display_flush so that it would map the initial surface.
This commit is contained in:
parent
b3b17280de
commit
41bfd8c790
3 changed files with 3 additions and 7 deletions
|
|
@ -514,8 +514,8 @@ json_object *ipc_json_describe_bar_config(struct bar_config *bar) {
|
|||
json_object_new_string(bar->hidden_state));
|
||||
json_object_object_add(json, "position",
|
||||
json_object_new_string(bar->position));
|
||||
json_object_object_add(json, "status_command",
|
||||
json_object_new_string(bar->status_command));
|
||||
json_object_object_add(json, "status_command", bar->status_command ?
|
||||
json_object_new_string(bar->status_command) : NULL);
|
||||
json_object_object_add(json, "font",
|
||||
json_object_new_string((bar->font) ? bar->font : config->font));
|
||||
if (bar->separator_symbol) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue