diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-09-23 17:11:40 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-09-23 17:11:40 +0100 |
commit | 9db6e01de6f756afb3d31b0d23fcce98a565e851 (patch) | |
tree | 890d28b7500afccd0c6aa6f9a0d6a802c32371c7 /Scripts | |
parent | d0583dc338b6380aa339cdd85223b224b8fef7c7 (diff) | |
download | dotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.tar.gz dotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.tar.bz2 dotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.zip |
(Scripts/battery)~Fix issue
Diffstat (limited to 'Scripts')
-rwxr-xr-x | Scripts/.local/scripts/status/battery | 2 |
1 files changed, 1 insertions, 1 deletions
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="" |