wm-logs/home/config/polybar/modules/bettery.ini

79 lines
2.3 KiB
INI

[module/battery]
type = internal/battery
;
full-at = 99
; 电池和适配器, 正常不需要填写, 不正常时(自行查看`/sys/class/power_supply/`下的名字)
;battery = BAT0
;adapter = ADP1
;
; -----------------------------------------------------------------------------
; 充电中
; -----------------------------------------------------------------------------
format-charging = <animation-charging><label-charging>
format-charging-margin = 1
; 充电状态的电池图标和配色
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-padding = 2
animation-charging-foreground = ${color.green}
animation-charging-background = ${color.altbackground}
label-charging = %percentage%%
label-charging-padding = 1
label-charging-font = 5
label-charging-foreground = ${color.accent}
label-charging-background = ${color.altbackground2}
; -----------------------------------------------------------------------------
; 未充电
; -----------------------------------------------------------------------------
format-discharging = <ramp-capacity><label-discharging>
format-discharging-margin = 1
; 未充电状态的电池图标和配色
ramp-capacity-0 =
ramp-capacity-0-foreground = ${color.red}
ramp-capacity-1 =
ramp-capacity-1-foreground = ${color.yellow}
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-4-foreground = ${color.green}
ramp-capacity-padding = 2
ramp-capacity-foreground = ${color.blue}
ramp-capacity-background = ${color.altbackground}
label-discharging = %percentage%%
label-discharging-padding = 1
label-discharging-font = 5
label-discharging-foreground = ${color.accent}
label-discharging-background = ${color.altbackground2}
; -----------------------------------------------------------------------------
; 满电
; -----------------------------------------------------------------------------
format-full = <label-full>
format-full-margin = 1
format-full-prefix = ""
format-full-prefix-padding = 1
format-full-prefix-font = 3
format-full-prefix-foreground = ${color.green}
format-full-prefix-background = ${color.altbackground}
label-full = %percentage%%
label-full-padding = 1
label-full-font = 5
label-full-foreground = ${color.accent}
label-full-background = ${color.altbackground2}
~~i3历险记~~, i3从入门到放弃, 转战bspwm
Shell 100%