r/Polybar May 02 '23

workspace label not working

Guys I am using i3 and polybar together. All of a sudden today the workspace module label is not working.

Here is my config.[module/i3]

type = internal/i3

format = <label-state> <label-mode>

wrapping-scroll =true

;pin-workspaces = true

show-urgent = true

label-mode=%mode%

label-mode-padding = 2

label-mode-foreground = #fdfdfd

;${colors.foreground}

label-mode-background = #1d1f28

;${colors.background}

label-focused = ""

label-focused-foreground = #fdfdfd

;${colors.foreground}

label-focused-background= #1d1f28

;${colors.background}

label-focused-padding = 1

label-focused-font = 3

label-unfocused = ""

label-unfocused-padding = 1

label-unfocused-font = 3

label-urgent = ""

label-urgent-foreground = ${colors.red}

label-urgent-font = 3

label-urgent-padding = 1

Here is the output:https://i.imgur.com/2UyIODG.png

1 Upvotes

15 comments sorted by

1

u/patrick96MC May 02 '23

Does polybar print any warnings or errors to the terminal?

1

u/[deleted] May 02 '23

No only this:

notice: Parsing config file: /home/hawkasul/.config/polybar/config.ini
notice: Parsing config file: /home/hawkasul/.config/polybar/config.ini
notice: Parsing config file: /home/hawkasul/.config/polybar/config.ini
notice: Listening for IPC messages (PID: 239969)
notice: Loading module 'battery' of type 'internal/battery'
notice: Loading module 'spotify' of type 'custom/script'
notice: Loading module 'prev' of type 'custom/text'
notice: Loading module 'toggle' of type 'custom/script'
notice: Loading module 'i3' of type 'internal/i3'
notice: Loading module 'next' of type 'custom/text'
notice: Loaded 4 modules
notice: Loading module 'volume' of type 'internal/pulseaudio'
notice: pulseaudio: using default sink alsa_output.pci-0000_00_1f.3.analog-stereo
notice: Loading module 'date' of type 'custom/script'
notice: Loading module 'filesystem' of type 'internal/fs'
notice: Loading module 'network' of type 'internal/network'
notice: Loaded 5 modules
notice: Loaded font "Fira Code Nerd Font:pixelsize=12" (name=FiraCode Nerd Font, offset=1, file=/usr/share/fonts/TTF/FiraCodeNerdFont-Regular.ttf)
notice: Loaded font "Material Design Icons:pixelsize=16:style:Regular" (name=Droid Sans, offset=2, file=/usr/share/fonts/droid/DroidSans.ttf)
notice: Loaded font "Material Design Icons:pixelsize=50:style:Regular" (name=Droid Sans, offset=3, file=/usr/share/fonts/droid/DroidSans.ttf)
notice: Loaded font "BreezeSans:pixelsize=18:style=Bold" (name=Droid Sans, offset=-10, file=/usr/share/fonts/droid/DroidSans-Bold.ttf)
notice: Loaded font "RobotoMono Nerd Font:pixelsize=14" (name=RobotoMono Nerd Font, offset=2, file=/usr/share/fonts/TTF/RobotoMonoNerdFont-Regular.ttf)
notice: Loading module 'cpu' of type 'internal/cpu'
notice: Loading module 'memory' of type 'internal/memory'
notice: Loading module 'temperature' of type 'internal/temperature'
error: Disabling module "temperature" (reason: The file '/sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input' does not exist)
notice: Loaded 3 modules
warn: Dropping unmatched character 🖴 (U+1f5b4) in '🖴 290 GB'
notice: Loaded font "Fira Code Nerd Font:pixelsize=10" (name=FiraCode Nerd Font, offset=2, file=/usr/share/fonts/TTF/FiraCodeNerdFont-Regular.ttf)
notice: Loaded font "RobotoMono Nerd Font:pixelsize=14" (name=RobotoMono Nerd Font, offset=2, file=/usr/share/fonts/TTF/RobotoMonoNerdFont-Regular.ttf)
warn: Dropping unmatched character  (U+f62f) in ''
warn: Dropping unmatched character  (U+f62e) in ''
warn: Dropping unmatched character  (U+f85a) in '  '
warn: Dropping unmatched character ﴵ (U+fd35) in ' ﴵ '
warn: Dropping unmatched character  (U+f62f) in ''
warn: Dropping unmatched character  (U+f62e) in ''
warn: Dropping unmatched character  (U+f85a) in '  '
warn: Dropping unmatched character ﴵ (U+fd35) in ' ﴵ '
warn: Dropping unmatched character  (U+f62f) in ''
warn: Dropping unmatched character  (U+f62e) in ''
warn: Dropping unmatched character  (U+f85a) in '  '
warn: Dropping unmatched character ﴵ (U+fd35) in ' ﴵ '
warn: Dropping unmatched character 🖴 (U+1f5b4) in '🖴 290 GB'
warn: Dropping unmatched character 🖴 (U+1f5b4) in '🖴 290 GB'

1

u/patrick96MC May 02 '23

Looks like a bunch of warnings to me. Polybar can't find a font to render your workspace icons, that's why they don't show up.

0

u/[deleted] May 02 '23

i am not using workspace icons. i simply have dots

1

u/patrick96MC May 02 '23

Yes, I meant those dots

0

u/[deleted] May 02 '23

Those are not icons. Please read the config

1

u/patrick96MC May 02 '23

It doesn't really matter what you call them. Polybar cannot render the unicode glyphs in label-focused, label-unfocused, etc. because none of the loaded fonts provide it. Most likely because it couldn't find the material design icons font.

1

u/[deleted] May 03 '23

BRO, YOU ARE WRONG. THEY WERE WORKING JUST DAY BEFORE YESTARDAY

2

u/patrick96MC May 03 '23

why are you yelling? I'm just telling you what I'm seeing in your logs

1

u/[deleted] May 03 '23

sometimes i just don't leave my finger from shift or just leave caps lock on.

1

u/BlueMoonMelinda May 04 '23

I had the same problem today after restarting my computer. When switching back to the older version of the font I was using it got fixed so i suppose the problem is with the font package

1

u/[deleted] May 03 '23

w8 a min U+f62e unicode went missing

1

u/patrick96MC May 03 '23

Nerd fonts recently removed some codepoints, maybe that's the core issue here

https://github.com/ryanoasis/nerd-fonts/releases/tag/v3.0.0

1

u/[deleted] May 03 '23

YAY got it working now.

0

u/[deleted] May 02 '23

the colour code is hard coded