users/polybar: cosmetic changes
add the better way to fix vertical alignment issue
This commit is contained in:
parent
9e4ed09149
commit
3a14bf229f
1 changed files with 8 additions and 6 deletions
|
@ -44,8 +44,10 @@ in
|
|||
settings =
|
||||
let
|
||||
padding = 1;
|
||||
|
||||
# See: https://github.com/polybar/polybar/issues/478
|
||||
fontVerticalOffset = "2";
|
||||
fontVerticalOffset = 2;
|
||||
mkFont = fontconfig: fontconfig + ";${toString fontVerticalOffset}";
|
||||
in
|
||||
{
|
||||
settings = {
|
||||
|
@ -54,11 +56,11 @@ in
|
|||
|
||||
"bar/main" = {
|
||||
monitor = "\${env:MONITOR:DisplayPort-1}";
|
||||
font = [
|
||||
"Fira Code:size=9:antialias=true;${fontVerticalOffset}"
|
||||
"Fira Code:bold:size=9:antialias=true;${fontVerticalOffset}"
|
||||
"FiraCode Nerd Font Mono:size=9:antialias=true;${fontVerticalOffset}"
|
||||
"FiraCode Nerd Font Mono:size=14:antialias=true;${fontVerticalOffset}"
|
||||
font = map mkFont [
|
||||
"Fira Code:size=9:antialias=true"
|
||||
"Fira Code:bold:size=9:antialias=true"
|
||||
"FiraCode Nerd Font Mono:size=9:antialias=true"
|
||||
"FiraCode Nerd Font Mono:size=14:antialias=true"
|
||||
];
|
||||
modules = {
|
||||
left = "xmonad";
|
||||
|
|
Loading…
Reference in a new issue