From 9db6e01de6f756afb3d31b0d23fcce98a565e851 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 23 Sep 2024 17:11:40 +0100 Subject: (Scripts/battery)~Fix issue --- Scripts/.local/scripts/status/battery | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Scripts') diff --git a/Scripts/.local/scripts/status/battery b/Scripts/.local/scripts/status/battery index f2b887e..ccbec38 100755 --- a/Scripts/.local/scripts/status/battery +++ b/Scripts/.local/scripts/status/battery @@ -1,8 +1,8 @@ #!/usr/bin/env bash capacity=$(cat /sys/class/power_supply/BAT0/capacity) || break time_left=$($HOME/.local/scripts/status/battery_time_left); +status=$(cat /sys/class/power_supply/BAT0/status) -status="" if [[ $status == "Charging" ]] then status="" -- cgit v1.2.3-13-gbd6f