summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorgrmat <grmat@users.noreply.github.com>2019-11-16 16:26:26 +0100
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2019-11-16 16:26:26 +0100
commitabfe05c8bd54cf25e3d705e4899e9e9c8a8ea9a7 (patch)
treeb87782eb302184d2c9bbe1d8e91577ea0a89bffd /man
parentbadef18c2238ede87773398f2f945f3492b6f4c5 (diff)
Introduce format_percentage for battery (#371)
Allow custom output, backwards-compatible to integer_battery_capacity
Diffstat (limited to 'man')
-rw-r--r--man/i3status.man8
1 files changed, 6 insertions, 2 deletions
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+