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

@ -9,7 +9,7 @@ i3bar - xcb-based status- and workspace-bar
== SYNOPSIS
*i3bar* *-b* 'bar_id' [*-s* 'sock_path'] [*-t*] [*-h*] [*-v*] [*-V*]
*i3bar* [*-b* 'bar_id'] [*-s* 'sock_path'] [*-t*] [*-h*] [*-v*] [*-V*]
== WARNING
@ -25,7 +25,8 @@ You have been warned!
Overwrites the path to the i3 IPC socket.
*-b, --bar_id* 'bar_id'::
Specifies the bar ID for which to get the configuration from i3.
Specifies the bar ID for which to get the configuration from i3. By default,
i3bar will use the first bar block as configured in i3.
*-t, --transparency*::
Enable transparency (RGBA colors)