diff --git a/config.def.h b/config.def.h index 838cd7a..d797fbf 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,7 @@ static int showbar = 1; /* 0 means no bar */ static int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "monospace:size=10" }; +static const int user_bh = 30; /* 0 means that dam will calculate barheight, >= 1 means dwl will use user_bh as the bar height. */ static uint32_t colors[][3] = { /* fg bg */ [SchemeNorm] = { 0xbbbbbbff, 0x222222ff }, diff --git a/dam.c b/dam.c index 08c7911..42456ff 100644 --- a/dam.c +++ b/dam.c @@ -207,7 +207,7 @@ bar_load_fonts(Bar *bar) die("failed to load fonts"); bar->lrpad = bar->drw->font->height; - bar->height = bar->drw->font->height + 2; + bar->height = user_bh ? user_bh : bar->drw->font->height + 2; if (bar->layer_surface) { zwlr_layer_surface_v1_set_size(bar->layer_surface, 0, bar->height / bar->scale); zwlr_layer_surface_v1_set_exclusive_zone(bar->layer_surface, bar->height / bar->scale);