From ad6413365e085d76666f5f39dbdf319d9fb1da21 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 30 Apr 2015 12:15:08 +0200 Subject: [PATCH] fixed heat palette battery display when remaining percentage <= 5% --- .tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index b7eee22..7d8d39a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -395,7 +395,7 @@ run 'for name in $(printenv | grep -Eo ^tmux_conf_[^=]+); do tmux setenv -gu $na # printf "%0.s$battery_symbol_empty" $(seq 1 $empty) # else # [ $empty -gt 0 ] && \ -# printf "#[fg=colour%s]$battery_symbol_empty" $(echo $heat | cut -d' ' -f$full-$(expr $full + $empty)) +# printf "#[fg=colour%s]$battery_symbol_empty" $(echo $heat | cut -d' ' -f$((full+1))-$(($full + $empty))) # fi # fi # }