fixed buggy battery detection logic, likely fixes #233
This commit is contained in:
parent
9fbde7b9b1
commit
e631331281
1 changed files with 2 additions and 1 deletions
|
@ -237,6 +237,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# }
|
# }
|
||||||
#
|
#
|
||||||
# _battery() {
|
# _battery() {
|
||||||
|
# count=0
|
||||||
# charge=0
|
# charge=0
|
||||||
# uname_s=$(uname -s)
|
# uname_s=$(uname -s)
|
||||||
# case "$uname_s" in
|
# case "$uname_s" in
|
||||||
|
@ -301,7 +302,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
||||||
# done
|
# done
|
||||||
# ;;
|
# ;;
|
||||||
# esac
|
# esac
|
||||||
# charge=$(awk -v charge="$charge" -v count="$count" 'BEGIN { print charge / count }')
|
# [ "$count" -ne 0 ] && charge=$(awk -v charge="$charge" -v count="$count" 'BEGIN { print charge / count }')
|
||||||
# if [ "$charge" -eq 0 ]; then
|
# if [ "$charge" -eq 0 ]; then
|
||||||
# tmux set -ug '@battery_status' \;\
|
# tmux set -ug '@battery_status' \;\
|
||||||
# set -ug '@battery_bar' \;\
|
# set -ug '@battery_bar' \;\
|
||||||
|
|
Loading…
Reference in a new issue