[X] I believe this issue is a problem with polybar itself and not a misconfiguration on my part
[X] I have searched for other open and closed issues that may have already reported this problem
[X] I have checked the known issues page for this problem.
[X] I have followed the debugging guide to narrow down the problem to a minimal config.
Steps to reproduce
I'm running polybar on Arch Linux with i3 and picom. Recently I've tried to redesign my config by making the bar transparent with the modules basically floating, but I've run into an issue with the xworkspaces module.
The label-occupied label doesn't have a background parameter, and instead it uses the background of the bar it was placed on. This creates a problem where if I want to have a transparent background, an occupied workspace will also have a transparent background, which I don't want.
This issue is partially solved by using format-background, but it results in this happening:
The occupied workspaces on the left have a normal background, but the ones on the right don't.
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 665)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|error: tray: Failed to put tray above 0x0e00002 in the stack (XCB_MATCH (8))
polybar|warn: Systray selection already managed (window=0x100000d)
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: pulseaudio: using default sink auto_null
polybar|notice: pulseaudio: using default sink auto_null
polybar|notice: pulseaudio: using default sink auto_null
polybar|notice: pulseaudio: using default sink auto_null
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 20541)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|error: tray: Failed to put tray above 0x2400002 in the stack (XCB_MATCH (8))
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 20628)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 20883)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 20992)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|error: tray: Failed to put tray above 0x2a00002 in the stack (XCB_MATCH (8))
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 21090)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|error: tray: Failed to put tray above 0x2200002 in the stack (XCB_MATCH (8))
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 21176)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|error: tray: Failed to put tray above 0x2200002 in the stack (XCB_MATCH (8))
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|error: Uncaught exception, shutting down: Undefined bar: top. Available bars: workspaces
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|error: Uncaught exception, shutting down: Undefined bar: top. Available bars: workspaces
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|error: Uncaught exception, shutting down: Undefined bar: top. Available bars: workspaces
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|error: Uncaught exception, shutting down: Undefined bar: top. Available bars: workspaces
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 24006)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
polybar|notice: Received signal(15): Terminated
polybar|notice: Termination signal received, shutting down...
polybar|notice: Parsing config file: /home/nuk/.config/polybar/config.ini
polybar|notice: Listening for IPC messages (PID: 24561)
polybar|notice: Loading module 'xworkspaces' of type 'internal/xworkspaces'
polybar|error: Invalid value for "module/xworkspaces.label-urgent-background", using default value (reason: The reference ${colors.alert} does not exist (no fallback set))
polybar|notice: Loading module 'date' of type 'internal/date'
polybar|notice: Loading module 'dummy' of type 'custom/text'
polybar|notice: Loading module 'xkeyboard' of type 'internal/xkeyboard'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'pulseaudio' of type 'internal/pulseaudio'
polybar|notice: pulseaudio: using default sink alsa_output.pci-0000_07_00.6.analog-stereo
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'memory' of type 'internal/memory'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'cpu' of type 'internal/cpu'
polybar|notice: Loading module 'rounded-prefix' of type 'custom/text'
polybar|notice: Loading module 'temp' of type 'custom/script'
polybar|notice: Loaded 12 modules
polybar|notice: Loaded font "jetbrainsmono nerd font" (name=JetBrainsMono Nerd Font, offset=2, file=/home/nuk/.local/share/fonts/JetBrains Mono Nerd Font Complete Bold.ttf)
polybar|notice: Loaded font "powerline extra symbols:size=21" (name=Powerline Extra Symbols, offset=4, file=/home/nuk/.local/share/fonts/PowerlineExtraSymbols.otf)
polybar|notice: Loaded font "noto sans cjk jp" (name=Noto Sans CJK JP, offset=2, file=/usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc)
Expected behavior
Background of all occupied workspaces are the same color
Checklist
Steps to reproduce
I'm running polybar on Arch Linux with i3 and picom. Recently I've tried to redesign my config by making the bar transparent with the modules basically floating, but I've run into an issue with the xworkspaces module.
The
label-occupied
label doesn't have a background parameter, and instead it uses the background of the bar it was placed on. This creates a problem where if I want to have a transparent background, an occupied workspace will also have a transparent background, which I don't want.This issue is partially solved by using
format-background
, but it results in this happening:The occupied workspaces on the left have a normal background, but the ones on the right don't.
Minimal config
Polybar log
Expected behavior
Background of all occupied workspaces are the same color
Actual behavior
Only the ones on the left are the same color
Window Manager and Version
i3-wm 4.22-3
Linux Distribution
Arch Linux with latest updates
Polybar version
Additional Context / Screenshots
No response