mirror of
https://github.com/tmux-plugins/tmux-battery.git
synced 2026-09-10 07:26:19 -04:00
Modified not to print under the decimal points. (#83)
This commit is contained in:
parent
8f1626fe95
commit
0272f2fc94
|
|
@ -18,7 +18,7 @@ print_battery_percentage() {
|
|||
fi
|
||||
local percentage=$(upower -i $battery | awk '/percentage:/ {print $2}')
|
||||
if [ "$percentage" ]; then
|
||||
echo $percentage
|
||||
echo ${percentage%.*%}
|
||||
return
|
||||
fi
|
||||
local energy
|
||||
|
|
|
|||
Loading…
Reference in a new issue