From c7accbc5b52ced536e1956b111b1b9014db3f76c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 22 Oct 2013 21:42:56 +1300 Subject: I have a *nix laptop now, so need to watch battery --- i3/status | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'i3') diff --git a/i3/status b/i3/status index f9ea2982..6e45cffe 100644 --- a/i3/status +++ b/i3/status @@ -2,6 +2,7 @@ order += "load" order += "tztime local" +order += "battery 0" load { format = "%1min/%5min/%15min" @@ -9,4 +10,9 @@ load { tztime local { format = "%Y-%m-%d %H:%M:%S" } +battery 0 { + format = "%status %percentage %remaining %emptytime" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 15 +} -- cgit v1.2.3