;──────────────────────────────────────────────────────────────────────────────;
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;
;░Battery░Module░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;
;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░;
;──────────────────────────────────────────────────────────────────────────────;
[module/battery]
type = internal/battery

; $ ls -1 /sys/class/power_supply/
battery = {{ battery_device }}
adapter = ACAD

poll-interval = 2
time-format = %H:%M

full-at = 99
;----------------------------------------------------------------------- Full--;
; Available tags:
;   <label-full> (default)
;   <bar-capacity>
;   <ramp-capacity>
;format-full = <ramp-capacity> <label-full>

; Available tokens:
;   %percentage% (default)
; This is a CLICK hack, since internal modules do not support click-left or click-right
; See https://github.com/polybar/polybar/issues/273#issuecomment-389150884
; See https://github.com/polybar/polybar/issues/1524
;label-full = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
label-full = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
label-full-foreground = ${color.green}
label-full-padding-left = 0
label-full-padding-right = 1
label-full-font = 3


;--------------------------------------------------------------------Charging--;
; Available tags:
;   <label-charging> (default)
;   <bar-capacity>
;   <ramp-capacity>
;   <animation-charging>
format-charging = <animation-charging> <label-charging>
;format-charging = <ramp-capacity> <label-charging>

; Available tokens:
;   %percentage% (default)
;   %time%
;   %consumption% (shows current charge rate in watts)
;label-charging = %percentage%%
label-charging = "%{A1:{{ apps.powermanagersettings }}:}%percentage%%%{A}"
label-charging-font = 4
label-charging-padding-left = 0
label-charging-padding-right = 1
;label-charging-padding = 1


; If using format-charing = <animation-charging>
animation-charging-0 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-0-foreground = ${color.red}

animation-charging-1 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-1-foreground = ${color.deep-orange}

animation-charging-2 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-2-foreground = ${color.orange}

animation-charging-3 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-3-foreground = ${color.amber}

animation-charging-4 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-4-foreground = ${color.yellow}

animation-charging-5 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-5-foreground = ${color.lime}

animation-charging-6 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-6-foreground = ${color.light-green}

animation-charging-7 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-7-foreground = ${color.green}

animation-charging-8 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
animation-charging-8-foreground = ${color.green}

animation-charging-font = 3
animation-charging-framerate = 750
animation-charging-padding-right = 0


;-----------------------------------------------------------------Discharging--;
; Available tags:
;   <label-discharging> (default)
;   <bar-capacity>
;   <ramp-capacity>
;   <animation-discharging>
format-discharging = <ramp-capacity> <label-discharging>

; Available tokens:
;   %percentage% (default)
;   %time%
;   %consumption% (shows current discharge rate in watts)
;label-discharging = " %percentage%%"
label-discharging = "%{A1:{{ apps.powermanagersettings }}:}%percentage%%%{A}"
label-discharging-font = 4
label-discharging-padding-left = 0
label-discharging-padding-right = 1



;---------------------------------------------------------------Battery-Level--;
ramp-capacity-font = 4
ramp-capacity-padding = 0

; 0 - 10%
ramp-capacity-0 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-0-foreground = ${color.white}
ramp-capacity-0-background = ${color.pink}

; 11 - 20%
ramp-capacity-1 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-1-foreground = ${color.red}

;21 - 30%
ramp-capacity-2 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-2-foreground = ${color.deep-orange}

; 31 - 40%
ramp-capacity-3 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-3-foreground = ${color.orange}

; 41 - 50%
ramp-capacity-4 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-4-foreground = ${color.amber}

; 51 - 60%
ramp-capacity-5 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-5-foreground = ${color.yellow}

; 61 - 70%
ramp-capacity-6 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-6-foreground = ${color.lime}

; 71 - 80%
ramp-capacity-7 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-7-foreground = ${color.light-green}

; 81 - 90-
ramp-capacity-8 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-8-foreground = ${color.green}

; 91 - full
ramp-capacity-9 = "%{A1:{{ apps.powermanagersettings }}:}%{A}"
ramp-capacity-9-foreground = ${color.white}

