bar: allow user to specify _which_ monitor to place the bar on

If not specified, the primary monitor will be used.
This commit is contained in:
Daniel Eklöf 2019-01-20 22:05:12 +01:00
parent ef04097bef
commit f26892d938
5 changed files with 35 additions and 5 deletions

1
bar.h
View file

@ -17,6 +17,7 @@ struct bar {
enum bar_location { BAR_TOP, BAR_BOTTOM };
struct bar_config {
const char *monitor;
enum bar_location location;
int height;
int left_spacing, right_spacing;