mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-23 10:18:34 +02:00
polybar: animate low battery warning
This commit is contained in:
parent
65caa00117
commit
c906475ecf
1 changed files with 13 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
background = #c0000000
|
||||
foreground = #eaeaea
|
||||
highlight = #4c7899
|
||||
warning = #ff3121
|
||||
|
||||
[settings]
|
||||
screenchange-reload = false
|
||||
|
@ -78,7 +79,7 @@ interval = 30
|
|||
format-unmounted =
|
||||
format-mounted =
|
||||
format-warn = <label-warn>
|
||||
format-warn-foreground = #ff0000
|
||||
format-warn-foreground = ${colors.warning}
|
||||
label-warn = %mountpoint%: %percentage_used%%
|
||||
|
||||
[module/brightness]
|
||||
|
@ -120,17 +121,19 @@ label = %date% %time%
|
|||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
interval = 5
|
||||
poll-interval = 30
|
||||
format-charging = <label-charging>
|
||||
label-charging = %percentage: 2%%
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
label-discharging = %percentage: 2%%%{F-}
|
||||
label-discharging = %percentage: 2%%
|
||||
format-full = <label-full>
|
||||
label-full =
|
||||
full-at = 98
|
||||
ramp-capacity-0 = %{F#ff0000}
|
||||
format-low = <animation-low> <label-low>
|
||||
format-low-foreground = ${colors.warning}
|
||||
label-low = %percentage: 2%%
|
||||
full-at = 99
|
||||
low-at = 5
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
|
@ -138,6 +141,9 @@ ramp-capacity-4 =
|
|||
ramp-capacity-5 =
|
||||
ramp-capacity-6 =
|
||||
ramp-capacity-7 =
|
||||
animation-low-0 =
|
||||
animation-low-1 = %{T2}%{T-}
|
||||
animation-low-framerate = 1000
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue