diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-09-18 15:32:26 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-09-18 15:32:26 +0100 |
commit | 7aaf2f7ac6aed5d7f23dc3360c9763c66d201c85 (patch) | |
tree | e40fca07c3da265cff04a3970ce5bbcf16515ab4 /Scripts/.local | |
parent | 591a4b065ca185e38b689ca714ef5350ded894fe (diff) | |
parent | d26f484d466c2122b4fbc1a2aecfc9ce8e16ee11 (diff) | |
download | dotfiles-7aaf2f7ac6aed5d7f23dc3360c9763c66d201c85.tar.gz dotfiles-7aaf2f7ac6aed5d7f23dc3360c9763c66d201c85.tar.bz2 dotfiles-7aaf2f7ac6aed5d7f23dc3360c9763c66d201c85.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-x | Scripts/.local/scripts/status/battery | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Scripts/.local/scripts/status/battery b/Scripts/.local/scripts/status/battery index 2a17301..6cf5b52 100755 --- a/Scripts/.local/scripts/status/battery +++ b/Scripts/.local/scripts/status/battery @@ -1,11 +1,11 @@ #!/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 to empty" | sed 's/.*://' | xargs echo $1) +time_left=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "time" | sed 's/.*://' | xargs echo $1) if [[ $status == "Charging" ]] then - status="" + status="" else if [[ $capacity -ge 75 ]] then |