Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polybar battery module not working #18

Open
mendokusai-931 opened this issue Jun 9, 2023 · 0 comments
Open

Polybar battery module not working #18

mendokusai-931 opened this issue Jun 9, 2023 · 0 comments
Assignees
Labels
Bug Something isn't working or unusable

Comments

@mendokusai-931
Copy link

Your polybar battery module:

[module/battery]

; Settings.
inherit=module-base
type=internal/battery
full-at=100
battery=${system.battery}
adapter=${system.adapter}
poll-interval=30
time-format=%H:%M

; Charging.
format-charging=<animation-charging><bar-capacity>
label-charging-background=${colors.background}
label-charging-foreground=${colors.foreground}
; Charging animation!
animation-charging-0="  "
animation-charging-1="  "
animation-charging-2="  "
animation-charging-3="  "
animation-charging-4="  "
animation-charging-foreground=${colors.yellow}
animation-charging-background=${colors.background}
animation-charging-framerate=750

; Full.
label-full="  "
format-full=<label-full><bar-capacity>
label-full-background=${colors.background}
label-full-foreground=${colors.green}

; Discharging.
label-discharging="  "
format-discharging=<ramp-capacity><bar-capacity>
label-discharging-background=${colors.background}
label-discharging-foreground=${colors.yellow}

; Bar.
bar-capacity-format = %fill%%empty%
bar-capacity-width = 10
bar-capacity-gradient = true
bar-capacity-indicator = "—"
bar-capacity-fill = "━"
bar-capacity-empty = "━"
bar-capacity-empty-background= ${colors.background}
bar-capacity-indicator-background= ${colors.background}
bar-capacity-fill-background= ${colors.background}
bar-capacity-empty-foreground = ${colors.gray2}
bar-capacity-fill-foreground = ${colors.green}
format-bar-capacity-background = ${colors.background}
; Must use the non antialiased font here.
bar-capacity-fill-font = 3
bar-capacity-empty-font = 3

;            
; Have these here so that the bottom 40% can have changed colors.
ramp-capacity-0 = "  "
ramp-capacity-1 = "  "
ramp-capacity-2 = "  "
ramp-capacity-3 = "  "
ramp-capacity-4 = "  "
ramp-capacity-5 = "  "
ramp-capacity-6 = "  "
ramp-capacity-7 = "  "
ramp-capacity-8 = "  "
ramp-capacity-9 = "  "
ramp-capacity-foreground=${colors.yellow}
ramp-capacity-background=${colors.background}
ramp-capacity-0-foreground = ${colors.red}
ramp-capacity-1-foreground = ${colors.red}
ramp-capacity-2-foreground = ${colors.orange}
ramp-capacity-3-foreground = ${colors.orange}

Gives this error:
error: Disabling module "battery" (reason: Missing parameter "module/battery.ramp-capacity-0")

I think you might have meant <label-discharging> instead of <ramp-capacity> there.

PS: couldnt make a pull request so I made an issue instead

@AlexvZyl AlexvZyl self-assigned this Jun 9, 2023
@AlexvZyl AlexvZyl added the Bug Something isn't working or unusable label Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working or unusable
Projects
None yet
Development

No branches or pull requests

2 participants