[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.
Describe the bug
I am having an issue where out of nowhere polybar will go black and not show any text, until I move my cursor over it. I tried several different configurations, including the one that polybar comes with, and all of them have this issue.
Expected behavior:
I expect polybar to show the text provided to it.
Actual behavior:
It does not show the text provided to it.
Was it working before?
Did you also experience this bug in an earlier version of polybar (yes/no/don't know)? Don't know
If no, what was the last version where this worked correctly?
To Reproduce
[settings]
;; Reload upon receiving XCB_RANDR_SCREEN_CHANGE_NOTIFY events.
screenchange-reload = true
[global/wm]
;; Adjust the _NET_WM_STRUT_PARTIAL top value used for top aligned bars.
margin-top = 0
;; Adjust the _NET_WM_STRUT_PARTIAL bottom value used for bottom aligned bars.
margin-bottom = 0
[colors]
black = #000000
grey = #363433
neon_blue = #00BFFF
neon_pink = #FF0099
neon_red = #FF073A
neon_purple = #d400ff
neon_green = #39FF14
neon_yellow = #faed27
dark_blue = #3e92ad
dark_pink = #5e0b5a
[bar/main]
;; Set the current monitor to MONITOR.
monitor = ${env:MONITOR:}
;; Fallback to 'eDP1' for the monitor.
monitor-fallback = eDP1
;; Do not require the monitor to be in connected state.
monitor-strict = false
;; Use fuzzy matching for monitors (only ignores dashes -).
monitor-exact = true
;; Do not tell the window manager not to configure the window.
override-redirect = false
;; Put the bar at the top of the screen.
bottom = false
;; Prefer fixed center position for the 'modules-center' block.
fixed-center = true
;; Set the bar height.
height = 20
;; Set the bar width.
width = 100%
;; Set the bar y offset.
offset-y = 0%
;; Set the bar x offset.
offset-x = 0%
;; Do not draw rounded corners.
radius = 0.0
;; Set the foreground and background colors.
foreground = ${colors.neon_blue}
background = ${colors.black}
;; Under-/overline pixel size and argb color.
line-size = 0
line-color = ${colors.black}
;; Number of spaces to add at the beginning/end of the bar.
padding-right = 1
;; Number of spaces to add before/after each module.
module-margin = 1
;; Available fonts.
font-0 = monospace:size=10;2
font-1 = FiraCode Nerd Font Mono:size=10;2
;; Modules and their locations.
modules-left = dwm
;; The separator will be inserted between the output of each module.
separator = |
;; Opacity value between 0.0 and 1.0 used on fade in/out.
dim-value = 0.0
;; Position of the system tray window.
tray-position = right
;; If true, the bar will not shift its contents when the tray changes.
tray-detached = false
;; Tray icon max size.
tray-maxsize = 16
; Background color for the tray container.
tray-background = ${colors.black}
;; Tray offset defined as pixel value (e.g. 35) or percentage (e.g. 50%).
tray-offset-x = 0
tray-offset-y = 0
;; Pad the sides of each tray icon.
tray-padding = 0
;; Scale factor for tray clients.
tray-scale = 1.0
;; Enable support for inter-process messaging.
enable-ipc = true
;; Use pointer for click events.
cursor-click = pointer
;; Allow up and down arrows to be used for scrolling.
cursor-scroll = ns-resize
[module/dwm]
type = internal/dwm
;; Show the current tags and layout.
format = <label-tags> <label-layout> <label-floating>
;; Specify the dwm(1) sock to use.
socket-path = /tmp/dwm.sock
;; Enable switching tags by clicking on them.
enable-tags-click = true
;; Enable switching tags by scrolling through them.
enable-tags-scroll = true
;; Do not scroll to empty tags.
tags-scroll-empty = false
;; Enable scrolling through tags in reverse.
tags-scroll-reverse = true
;; Wrap around to the first tag when scrolling.
tags-scroll-wrap = true
;; Enable changing the layout by clicking on the indicator.
enable-layout-click = true
;; Enable switching layouts by clicking on the indicator.
enable-layout-scroll = true
;; Wrap around to the first layout when scrolling.
layout-scroll-wrap = true
;; Allow scrolling in reverse.
layout-scroll-reverse = true
;; Switch to monocle layout when clicking on the indicator.
secondary-layout-symbol = [M]
;; Set the layout label.
label-floating = F
;; Use the symbol dwm(1) gives for the layout.
label-layout = %symbol%
;; Do not pad the layout symbol.
label-layout-padding = 0
;; Set the foreground and background color of the layout.
label-layout-foreground = ${colors.neon_blue}
label-layout-background = ${colors.black}
;; Show the current focused tag name.
label-focused = %name%
;; Set the current focused tag foreground and background color.
label-focused-foreground = ${colors.neon_blue}
label-focused-background = ${colors.black}
;; Pad the focused tag name.
label-focused-padding = 1
;; Font to use for focused tag names.
label-focused-font = 1
;; Show the current unfocused tag name.
label-unfocused = %name%
;; Set the current unfocused tag foreground background color.
label-unfocused-foreground = ${colors.dark_blue}
label-unfocused-background = ${colors.black}
;; Pad the unfocused tag name.
label-unfocused-padding = 1
;; Font to use for unfocused tag names.
label-unfocused-font = 1
;; Show the current invisble focused tag name.
label-visible = %name%
;; Set the current invisble focused tag foreground and background color.
label-visible-foreground = ${colors.neon_pink}
label-visible-background = ${colors.black}
;; Pad the invisble focused tag name.
label-visible-padding = 1
;; Font to use for invisble tag names.
label-visible-font = 1
;; Show the current urgent tag name.
label-urgent = %name%
;; Set the current invisble focused tag foreground background color.
label-urgent-foreground = ${colors.neon_red}
label-urgent-background = ${colors.black}
;; Pad the urgent focused tag name.
label-urgent-padding = 1
;; Font to use for urgent tag names.
label-urgent-font = 1
;; Do not show empty tags.
label-empty =
;; Do not put a separator between tags.
label-separator =
Polybar Log
notice: Parsing config file: /home/user/.config/polybar/config
notice: pulseaudio: using default sink alsa_output.pci-0000_00_05.0.analog-stereo
notice: Loaded fot "monospace:size=10" (name=DejaVu Sans Mono, offset=2, file=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf)
notice: Loaded font "FiraCode Nerd Font Mono:size=10" (name=FiraCode Nerd Font Mono, offset=2, file=/usr/share/fonts/FiraCode-NerdFont/Fira Code Regular Nerd Font Complete Mono.otf)
Checklist
Describe the bug
I am having an issue where out of nowhere polybar will go black and not show any text, until I move my cursor over it. I tried several different configurations, including the one that polybar comes with, and all of them have this issue.
Expected behavior:
I expect polybar to show the text provided to it.
Actual behavior:
It does not show the text provided to it.
Was it working before?
To Reproduce
Polybar Log
Screenshots
Environment:
polybar -vvv
:Additional context