diff options
Diffstat (limited to 'Scripts/.local/scripts/status/battery')
-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 6cf5b52..f89d123 100755 --- a/Scripts/.local/scripts/status/battery +++ b/Scripts/.local/scripts/status/battery @@ -1,7 +1,7 @@ #!/usr/bin/env bash capacity=$(cat /sys/class/power_supply/BAT0/capacity) || break status=$(cat /sys/class/power_supply/BAT0/status) -time_left=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "time" | sed 's/.*://' | xargs echo $1) +time_left=$($HOME/.local/scripts/status/battery_time_left); if [[ $status == "Charging" ]] then |