i3bar: Add default bar_id

Instead of erroring, request the list of bar configs from i3 and use the
first one.
This commit is contained in:
Orestis Floros
2020-10-27 22:01:36 +01:00
parent fb5d2a05c2
commit c1ec2ad19b
7 changed files with 57 additions and 22 deletions

View File

@ -74,6 +74,13 @@ extern config_t config;
*/
void parse_config_json(char *json);
/**
* Start parsing the received bar configuration list. The only usecase right
* now is to automatically get the first bar id.
*
*/
void parse_get_first_i3bar_config(char *json);
/**
* free()s the color strings as soon as they are not needed anymore.
*