View Single Post
Old 04-12-2020, 05:50 PM   #46
Marcosbong
Junior Member
Marcosbong began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2018
Device: KT & K5
Quote:
Originally Posted by Antinoos View Post
A while ago, I made the following minimal changes to the code of showtime.sh when displaying time & battery percentage (two occurrences - lines 301 and 318):
Code:
{system("eips ${POS} ${ROW} `date +%H:%M`_\[`gasgauge-info -s`\]")}
Line 285 should read:
Code:
export POS="$((${EIPS_MAXCHARS} - 13))"
This adds square brackets around the percent value, what looks much better:
- old: 13:55-99
- new: 13:55_[99]
Tested even with the special case "100% charge" which requires 11 chars for the whole string.

For your convenience, I've added the new version 1.2a as ZIP file:
Hello.
Tested on KT, right bracket's missing on both position options
Marcosbong is offline   Reply With Quote