From abfe05c8bd54cf25e3d705e4899e9e9c8a8ea9a7 Mon Sep 17 00:00:00 2001 From: grmat Date: Sat, 16 Nov 2019 16:26:26 +0100 Subject: Introduce format_percentage for battery (#371) Allow custom output, backwards-compatible to integer_battery_capacity --- man/i3status.man | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'man/i3status.man') diff --git a/man/i3status.man b/man/i3status.man index 4cfa7d8..a36c853 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -345,8 +345,10 @@ see it this way, because it tells me how worn off my battery is.), just specify +last_full_capacity = true+. You can show seconds in the remaining time and empty time estimations by setting +hide_seconds = false+. -If you want the battery percentage to be shown without decimals, add -+integer_battery_capacity = true+. +If you want the battery percentage to be shown in another format, use ++format_percentage+. ++integer_battery_capacity = true+ is a legacy option for ++format_percentage = "%.00f%s"+ If your battery is represented in a non-standard path in /sys, be sure to modify the "path" property accordingly, i.e. pointing to the uevent file on @@ -377,6 +379,8 @@ FULL) is used. *Example format_down*: +No battery+ +*Example format_percentage*: +"%.02f%s"+ + *Example status_chr*: +⚡ CHR+ *Example status_bat*: +🔋 BAT+ -- cgit v1.2.3