aboutsummaryrefslogtreecommitdiff
path: root/Scripts
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-09-23 17:11:40 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-09-23 17:11:40 +0100
commit9db6e01de6f756afb3d31b0d23fcce98a565e851 (patch)
tree890d28b7500afccd0c6aa6f9a0d6a802c32371c7 /Scripts
parentd0583dc338b6380aa339cdd85223b224b8fef7c7 (diff)
downloaddotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.tar.gz
dotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.tar.bz2
dotfiles-9db6e01de6f756afb3d31b0d23fcce98a565e851.zip
(Scripts/battery)~Fix issue
Diffstat (limited to 'Scripts')
-rwxr-xr-xScripts/.local/scripts/status/battery2
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=""