I am using Nerd Font Icons to display my workspace names in polybar.
The icons have a spacing on the left (see attached image) which I want to get rid of to center them in the middle.
Has someone an idea what the problem could be?
The config for the polybar workspace module:
font-0 = "UbuntuMono Nerd Font:size=11;2"
font-1 = "SauceCodePro Nerd Font:size=12;2"
[module/i3-workspaces]
type = internal/i3
format-font = 1
index-sort = true
strip-wsnumbers = true
label-focused = %name%
label-focused-padding = 1
The i3 workspace config (the symbold for ws 0-3 are the nerd font icons:
set $wsMusic "0:????"
set $wsComms "1:"
set $wsTerminal "2: "
set $wsWeb "3:????"
set $ws3 "4:3"
bindsym $mod+space workspace number $wsMusic
bindsym $mod+Tab workspace number $wsComms
bindsym $mod+1 workspace number $wsTerminal
bindsym $mod+2 workspace number $wsWeb
bindsym $mod+3 workspace number $ws3
The polybar module with the unwanted left spacing of the icons:
Thank you for your help!
I played around with the padding option in polybar but the spacing seems to be part of the icon itself. I also tried different nerd font types, maybe it has something to do with mono spaced fonts?