Add Polybar battery indicator and brightness ramp

This commit is contained in:
Marty Oehme 2019-12-20 13:01:50 +01:00
parent abde786e38
commit 6440179749

View file

@ -56,8 +56,8 @@ padding-right = 0
module-margin-left = 2 module-margin-left = 2
modules-left = workspaces modules-left = workspaces
modules-center = mprisdisplay modules-center = mprisdisplay date
modules-right = networkspeed archupdates cpu temp date backlight volume modules-right = networkspeed archupdates cpu temp backlight volume battery
; do not use offsets for the bar, would only work with override-redirect ; do not use offsets for the bar, would only work with override-redirect
; and will mess up tray https://github.com/polybar/polybar/issues/1355 ; and will mess up tray https://github.com/polybar/polybar/issues/1355
tray-position = right tray-position = right
@ -207,7 +207,7 @@ time = %H:%M
; the module will toggle between formats ; the module will toggle between formats
date-alt = %A, %d %B %Y date-alt = %A, %d %B %Y
time-alt = %H:%M time-alt = %H:%M
label = %date% %{T2}%{T-}%time% label = %date% %{T2} %{T-}%time%
[module/archupdates] [module/archupdates]
type = custom/script type = custom/script
@ -251,6 +251,24 @@ ramp-volume-3 = 墳
[module/backlight] [module/backlight]
type = internal/xbacklight type = internal/xbacklight
format = <label> format = <ramp><label>
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-3 = 
ramp-4 = 
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
label-charging =  %percentage%%
label-discharging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
format-charging = <label-charging>
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 
; vim:ft=dosini ; vim:ft=dosini