View Single Post
Old 01-09-2018, 07:54 AM   #44
Antinoos
Groupie
Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!Antinoos rocks like Gibraltar!
 
Antinoos's Avatar
 
Posts: 168
Karma: 100329
Join Date: Apr 2017
Location: Leipzig/Germany
Device: PW3, KT3 (fw 5.8.11 with jb)
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:
Attached Files
File Type: zip KUAL_showtime_12a.zip (3.6 KB, 260 views)

Last edited by Antinoos; 01-16-2018 at 07:39 AM. Reason: added archive attachment
Antinoos is offline   Reply With Quote