Add Polybar battery indicator and brightness ramp
This commit is contained in:
parent
abde786e38
commit
6440179749
1 changed files with 22 additions and 4 deletions
|
@ -56,8 +56,8 @@ padding-right = 0
|
|||
module-margin-left = 2
|
||||
|
||||
modules-left = workspaces
|
||||
modules-center = mprisdisplay
|
||||
modules-right = networkspeed archupdates cpu temp date backlight volume
|
||||
modules-center = mprisdisplay date
|
||||
modules-right = networkspeed archupdates cpu temp backlight volume battery
|
||||
; 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
|
||||
tray-position = right
|
||||
|
@ -207,7 +207,7 @@ time = %H:%M
|
|||
; the module will toggle between formats
|
||||
date-alt = %A, %d %B %Y
|
||||
time-alt = %H:%M
|
||||
label = %date% %{T2}%{T-}%time%
|
||||
label = %date% %{T2} %{T-}%time%
|
||||
|
||||
[module/archupdates]
|
||||
type = custom/script
|
||||
|
@ -251,6 +251,24 @@ ramp-volume-3 = 墳
|
|||
|
||||
[module/backlight]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue