From 8481ec351bda767ded5453471313f35024da33f7 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 27 May 2018 17:51:26 +0200 Subject: [PATCH] do not take into account peripheral device batteries when computing battery charge, fixes #161 --- .tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index be82f1a..045cf0f 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -253,6 +253,8 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # ;; # *Linux*) # while IFS= read -r batpath; do +# grep -i -q device "$batpath/scope" 2> /dev/null && continue +# # if [ x"$discharging" != x"true" ]; then # discharging=$(grep -qi "discharging" "$batpath/status" && echo "true" || echo "false") # fi