Revert "bar"

This reverts commit 4f3b43e216d804e4d233729c5d800195096a3363.
This commit is contained in:
Sakooooo 2023-09-11 17:09:12 +04:00
parent a919ad89c8
commit c371b0e9ea
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -16,13 +16,12 @@ cpu() {
} }
battery() { battery() {
get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)" get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
get_status="$(cat /sys/class/power_supply/BAT*/status)" get_status="$(cat /sys/class/power_supply/BAT1/status)"
case "$get_status" in case "$get_status" in
Charging) printf "^c$blue^ 󰂄 $get_capacity" ;; Charging) printf "^c$blue^ 󰂄 $get_capacity" ;;
Discharging) if (( $get_capacity <= 20)); then Discharging) if (( $get_capacity <= 20)); then
printf "^c$white^ ^b$lightred^ 󰂃" printf "^c$lightred^ 󰂃 $get_capacity"
printf "^c$white^ ^b$black^ $get_capacity"
else else
printf "^c$white^ ^b$blue 󰁹" printf "^c$white^ ^b$blue 󰁹"
printf "^c$white^ ^b$black^ $get_capacity" printf "^c$white^ ^b$black^ $get_capacity"