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

@ -18,7 +18,7 @@
* socket_path must be a valid path to the ipc_socket of i3
*
*/
int init_connection(const char *socket_path);
void init_connection(const char *socket_path);
/*
* Destroy the connection to i3.