Merge 26858d7b620b667ce1aa8dbc35f5d71f04ccdaba into 48dbe00bdb98a1ae6a0e60558ce14503616aa759

This commit is contained in:
Kana 2025-10-22 16:20:11 -03:00 committed by GitHub
commit d26d17a75d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@ static bool bottom = false;
static bool hide_vacant = false; static bool hide_vacant = false;
// vertical pixel padding above and below text // vertical pixel padding above and below text
static uint32_t vertical_padding = 1; static uint32_t vertical_padding = 1;
// horizontal pixel padding of the left and right of each character
static uint32_t horizontal_padding = 0;
// allow in-line color commands in status text // allow in-line color commands in status text
static bool status_commands = true; static bool status_commands = true;
// center title text // center title text

2
dwlb.c
View File

@ -1904,7 +1904,7 @@ main(int argc, char **argv)
snprintf(buf, sizeof buf, "dpi=%u", dpi); snprintf(buf, sizeof buf, "dpi=%u", dpi);
if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf))) if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf)))
DIE("Could not load font"); DIE("Could not load font");
textpadding = font->height / 2; textpadding = (font->height + horizontal_padding) / 2;
height = font->height / buffer_scale + vertical_padding * 2; height = font->height / buffer_scale + vertical_padding * 2;
/* Configure tag names */ /* Configure tag names */