KevinTsui1234 / tint2

Automatically exported from code.google.com/p/tint2
GNU General Public License v2.0
1 stars 0 forks source link

Second line of battery cannot be disabled #372

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I think it should be possible to disable the second line (est. duration) of the 
battery. I tried setting the font-size to 0, which works in so far that the 
second line is no longer rendered, but the upper line is still aligned as if 
there was a second line below it.

Original issue reported on code.google.com by cedric.s...@gmail.com on 6 Nov 2011 at 9:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've written a patch against the current SVN version which adds a format string 
for the battery similar to the clock.

Add something like:
    bat1_format = %p - %t
to your tint2rc to hide the second line. To get the default, something akin to 
    bat1_format = %p
    bat2_format = %t
will be roughly the same.

Valid % characters are %p for percentage, %t for time/"(plugged in)", %h, %m 
for hours/minutes, and %s for status (Charging, Full, Discharging). By default, 
bat2_format == "" means the second line is hidden, and the first one takes up 
the proper amount of space.

Original comment by ryan.gra...@gmail.com on 23 Mar 2014 at 9:15

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by mrovi9...@gmail.com on 1 Feb 2015 at 5:46