added barheight setting
This commit is contained in:
parent
ed8e349067
commit
3a7252c781
2 changed files with 2 additions and 1 deletions
|
@ -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 },
|
||||
|
|
2
dam.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue