mirror of
https://github.com/ION606/config-backup.git
synced 2026-05-14 22:16:58 +00:00
updated battery module
This commit is contained in:
+8
-110
@@ -228,121 +228,19 @@ format = <ramp>
|
|||||||
label = %percentage%%
|
label = %percentage%%
|
||||||
|
|
||||||
; Only applies if <ramp> is used
|
; Only applies if <ramp> is used
|
||||||
|
# 🌒 🌓 🌖 🌕 🌔 🌗 🌘
|
||||||
ramp-0 = 🌑
|
ramp-0 = 🌑
|
||||||
ramp-1 = 🌘
|
ramp-1 = 🌒
|
||||||
ramp-2 = 🌓
|
ramp-2 = 🌓
|
||||||
ramp-3 = 🌔
|
ramp-3 = 🌔
|
||||||
ramp-4 = 🌕
|
ramp-4 = 🌕
|
||||||
|
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = custom/script
|
||||||
|
exec = ~/.config/polybar/scripts/battery_status.sh
|
||||||
|
interval = 5
|
||||||
|
|
||||||
; This is useful in case the battery never reports 100% charge
|
; toggle the display mode (percentage vs time remaining) on left-click and refresh the module immediately
|
||||||
; Default: 100
|
click-left = ~/.config/polybar/scripts/toggle_battery_display.sh && polybar-msg hook battery_script 1
|
||||||
full-at = 98
|
hook-0 = ~/.config/polybar/scripts/battery_status.sh
|
||||||
|
|
||||||
; format-low once this charge percentage is reached
|
|
||||||
; Default: 10
|
|
||||||
; New in version 3.6.0
|
|
||||||
low-at = 20
|
|
||||||
|
|
||||||
; Use the following command to list batteries and adapters:
|
|
||||||
; $ ls -1 /sys/class/power_supply/
|
|
||||||
battery = BAT1
|
|
||||||
adapter = ADP1
|
|
||||||
|
|
||||||
; If an inotify event haven't been reported in this many
|
|
||||||
; seconds, manually poll for new values.
|
|
||||||
;
|
|
||||||
; Needed as a fallback for systems that don't report events
|
|
||||||
; on sysfs/procfs.
|
|
||||||
;
|
|
||||||
; Disable polling by setting the interval to 0.
|
|
||||||
;
|
|
||||||
; Default: 5
|
|
||||||
poll-interval = 5
|
|
||||||
|
|
||||||
; see "man date" for details on how to format the time string
|
|
||||||
; NOTE: if you want to use syntax tags here you need to use %%{...}
|
|
||||||
; Default: %H:%M:%S
|
|
||||||
time-format = %H:%M
|
|
||||||
|
|
||||||
; Available tags:
|
|
||||||
; <label-charging> (default)
|
|
||||||
; <bar-capacity>
|
|
||||||
; <ramp-capacity>
|
|
||||||
; <animation-charging>
|
|
||||||
format-charging = ⚡ <animation-charging> <label-charging>
|
|
||||||
|
|
||||||
; Available tags:
|
|
||||||
; <label-discharging> (default)
|
|
||||||
; <bar-capacity>
|
|
||||||
; <ramp-capacity>
|
|
||||||
; <animation-discharging>
|
|
||||||
; format-discharging = <ramp-capacity> <label-discharging>
|
|
||||||
|
|
||||||
; Available tags:
|
|
||||||
; <label-full> (default)
|
|
||||||
; <bar-capacity>
|
|
||||||
; <ramp-capacity>
|
|
||||||
format-full = <ramp-capacity> <label-full>
|
|
||||||
|
|
||||||
; Format used when battery level drops to low-at
|
|
||||||
; If not defined, format-discharging is used instead.
|
|
||||||
; Available tags:
|
|
||||||
; <label-low>
|
|
||||||
; <animation-low>
|
|
||||||
; <bar-capacity>
|
|
||||||
; <ramp-capacity>
|
|
||||||
; New in version 3.6.0
|
|
||||||
format-low = <label-low> <animation-low>
|
|
||||||
|
|
||||||
; Available tokens:
|
|
||||||
; %percentage% (default) - is set to 100 if full-at is reached
|
|
||||||
; %percentage_raw%
|
|
||||||
; %time%
|
|
||||||
; %consumption% (shows current charge rate in watts)
|
|
||||||
label-charging = %percentage%%
|
|
||||||
|
|
||||||
; Available tokens:
|
|
||||||
; %percentage% (default) - is set to 100 if full-at is reached
|
|
||||||
; %percentage_raw%
|
|
||||||
label-full = %percentage%% ^~^
|
|
||||||
|
|
||||||
; Available tokens:
|
|
||||||
; %percentage% (default) - is set to 100 if full-at is reached
|
|
||||||
; %percentage_raw%
|
|
||||||
; %time%
|
|
||||||
; %consumption% (shows current discharge rate in watts)
|
|
||||||
; New in version 3.6.0
|
|
||||||
label-low = BATTERY LOW AT %percentage%
|
|
||||||
|
|
||||||
; 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-low> is used
|
|
||||||
; New in version 3.6.0
|
|
||||||
animation-low-0 = ⚠️
|
|
||||||
animation-low-1 = ⚠️
|
|
||||||
animation-low-2 = ⚠️
|
|
||||||
animation-low-3 =
|
|
||||||
animation-low-4 =
|
|
||||||
animation-low-5 =
|
|
||||||
animation-low-framerate = 600
|
|
||||||
|
|||||||
Reference in New Issue
Block a user