电池更新为真实配置
parent
509d84cdc0
commit
182132dda7
|
@ -1,42 +1,78 @@
|
||||||
;[module/battery]
|
|
||||||
;type = internal/battery
|
|
||||||
;
|
|
||||||
;full-at = 99
|
|
||||||
;
|
|
||||||
;battery = intel-rapl
|
|
||||||
;adapter = intel-rapl
|
|
||||||
;
|
|
||||||
;format-charging = <animation-charging> <label-charging>
|
|
||||||
;format-charging-prefix = " "
|
|
||||||
;format-charging-prefix-font = 3
|
|
||||||
;format-charging-prefix-foreground = ${color.red}
|
|
||||||
;format-charging-background = ${color.altbackground}
|
|
||||||
;
|
|
||||||
;
|
|
||||||
;label-charging = %percentage%%
|
|
||||||
;label-discharging = %percentage%%
|
|
||||||
;
|
|
||||||
;
|
|
||||||
;format-full = <label-full>
|
|
||||||
;format-full-prefix = " "
|
|
||||||
;format-full-prefix-font = 3
|
|
||||||
;format-full-prefix-foreground = ${color.red}
|
|
||||||
;format-full-background = ${color.altbackground}
|
|
||||||
;
|
|
||||||
;label-full = %percentage%%
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = custom/text
|
type = internal/battery
|
||||||
|
;
|
||||||
|
full-at = 99
|
||||||
|
|
||||||
format = %{T5} 99% %{T-}
|
; 电池和适配器, 正常不需要填写, 不正常时(自行查看`/sys/class/power_supply/`下的名字)
|
||||||
format-foreground = ${color.accent}
|
;battery = BAT0
|
||||||
format-background = ${color.altbackground2}
|
;adapter = ADP1
|
||||||
format-margin = 1
|
;
|
||||||
|
|
||||||
|
; -----------------------------------------------------------------------------
|
||||||
|
; 充电中
|
||||||
|
; -----------------------------------------------------------------------------
|
||||||
|
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}
|
||||||
|
|
||||||
format-prefix = ""
|
|
||||||
format-prefix-foreground = ${color.green}
|
|
||||||
format-prefix-background = ${color.altbackground}
|
|
||||||
format-prefix-padding = 1
|
|
||||||
format-prefix-font = 3
|
|
||||||
|
|
Loading…
Reference in New Issue