From c371b0e9eabb78b26363a375073ccca55abfc2df Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 11 Sep 2023 17:09:12 +0400 Subject: [PATCH] Revert "bar" This reverts commit 4f3b43e216d804e4d233729c5d800195096a3363. --- config/dwmbar/bar.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/dwmbar/bar.sh b/config/dwmbar/bar.sh index aa792ca0..2b261502 100755 --- a/config/dwmbar/bar.sh +++ b/config/dwmbar/bar.sh @@ -16,13 +16,12 @@ cpu() { } battery() { - get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)" - get_status="$(cat /sys/class/power_supply/BAT*/status)" + get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)" + get_status="$(cat /sys/class/power_supply/BAT1/status)" case "$get_status" in Charging) printf "^c$blue^ 󰂄 $get_capacity" ;; Discharging) if (( $get_capacity <= 20)); then - printf "^c$white^ ^b$lightred^ 󰂃" - printf "^c$white^ ^b$black^ $get_capacity" + printf "^c$lightred^ 󰂃 $get_capacity" else printf "^c$white^ ^b$blue 󰁹" printf "^c$white^ ^b$black^ $get_capacity"