Polybar: Few issues with finally getting Polybar setup: Battery and WM

Created on 14 Jul 2017  Â·  4Comments  Â·  Source: polybar/polybar

I've been trying to setup a pretty basic polybar for BSPWM, and I've ran into some errors with the battery and WM modules.

warn: No monitor specified, using "eDP1"
error: module/mpd: Connection refused
error: Disabling module "wm" (reason: Missing parameter "module/wm.type")
error: Disabling module "battery" (reason: No suitable way to get current charge state)
warn: Systray selection already managed (window=0x2200019)

The first warning is odd being that eDP1 is this only monitor available (I'm on a laptop), but no big deal.
I understand the error with module/mpd and I'll probably just replace it with a custom cmus module. The other two are what allude me. Here's what I have for global/wm and module/battery:

[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98

format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a

format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}

format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}

ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt}

animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750

[global/wm]
margin-top = 5
margin-bottom = 5
configuration question

Most helpful comment

For the wm error, we'll need to see your whole config, because global/wm is not a module and polybar complains about a module named wm.

The issue with the battery issue is probably that your battery and/or adapter have different names.
What's the content of the /sys/class/power_supply/ folder?

All 4 comments

Do you have an output at /sys/class/power_supply/BAT0/charge_now or something like that?

_Sent from my Nextbit Robin using FastHub_

For the wm error, we'll need to see your whole config, because global/wm is not a module and polybar complains about a module named wm.

The issue with the battery issue is probably that your battery and/or adapter have different names.
What's the content of the /sys/class/power_supply/ folder?

Closing due to inactivity

@patrick96 thank you so much.
By changing the battery & adapter name in polybar config file to reflect my own (in /sys/class/power_supply/) i be able to fix the isse.

Was this page helpful?
0 / 5 - 0 ratings