feat : Perfectly centered tags
sivaplaysmC opened this issue · comments
With current chadwm , what you get is ,
the glyphs are annoyingly off centered
@siduck i humbly request you to add this code yourself as i am not free enough to create a PR
for achieving this result , change line 1480 of dwm.c from
drw_text(drw, x, y, w, bh_n, lrpad / 2, tags[i], urg & 1 << i);
to
drw_text(drw, x + 3, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); // offset glyphs by 3 pixels
and line 1485 of the same file from
drw_rect(drw, x + ulinepad, bh_n - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0);
to
drw_rect(drw, x + ulinepad +3 , bh - ulinestroke - ulinevoffset, w - (ulinepad * 2), ulinestroke, 1, 0); // 3 pixel padding again
also replace line 65 in config.def.h
static char *tags[] = {" ", " ", " ", " ", " "};
// the tagline
hi @sivaplaysmC , clone latest commit and recompile. this can be more like a font issue,
iosevka nerd font mono gives centered icon unlike iosevka nerd font
my bad , i hadnt cloned the latest build ... i will try it ^_^
ig this is infact offset
ig this is infact offset
that screenshot is outdated
@siduck
ig this is infact offsetthat screenshot is outdated
nooo that is actuall the latest build
oops i forgot to commit! can you check the latest commit now @sivaplaysmC