Extend for laptop usage

This commit is contained in:
2024-05-04 18:30:16 +07:00
parent a1089465e6
commit 1988cce97e
3 changed files with 66 additions and 2 deletions

View File

@ -51,7 +51,7 @@ module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = CaskaydiaCove Nerd Font Mono:pixelsize=14;3
font-0 = Hack Nerd Font:pixelsize=14;3
modules-left = xworkspaces xwindow
modules-right = polytiramisu memory cpu date
@ -116,6 +116,56 @@ date-alt = %Y-%m-%d %H:%M:%S
label = %date%
label-foreground = ${colors.altprime}
[module/battery]
type = internal/battery
full-at = 99
low-at = 5
; Use the following command to list batteries and adapters:
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC
time-format = %H:%M
label-charging = Charging %percentage%%
label-discharging = Discharging %percentage%%
format-charging = <animation-charging> <lavel-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-full = Fully charged
label-low = BATTERY LOW
; Only applies if <ramp-capacity> is used
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
; Only applies if <bar-capacity> is used
bar-capacity-width = 10
; Only applies if <animation-charging> is used
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; Framerate in milliseconds
animation-charging-framerate = 750
; Only applies if <animation-discharging> is used
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-3 =
animation-discharging-4 =
; Framerate in milliseconds
animation-discharging-framerate = 500
animation-low-0 = !
animation-low-1 =
animation-low-framerate = 200
poll-interval = 5
[module/polytiramisu]
type = custom/script