mirror of
https://github.com/kolunmi/dwlb.git
synced 2025-10-26 17:54:31 +00:00
Add the option to set horizontal padding
This commit is contained in:
parent
48dbe00bdb
commit
26858d7b62
@ -14,6 +14,8 @@ static bool bottom = false;
|
||||
static bool hide_vacant = false;
|
||||
// vertical pixel padding above and below text
|
||||
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
|
||||
static bool status_commands = true;
|
||||
// center title text
|
||||
|
||||
2
dwlb.c
2
dwlb.c
@ -1904,7 +1904,7 @@ main(int argc, char **argv)
|
||||
snprintf(buf, sizeof buf, "dpi=%u", dpi);
|
||||
if (!(font = fcft_from_name(1, (const char *[]) {fontstr}, buf)))
|
||||
DIE("Could not load font");
|
||||
textpadding = font->height / 2;
|
||||
textpadding = (font->height + horizontal_padding) / 2;
|
||||
height = font->height / buffer_scale + vertical_padding * 2;
|
||||
|
||||
/* Configure tag names */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user