aboutsummaryrefslogtreecommitdiff
path: root/i3
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-22 21:42:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-22 21:42:56 +1300
commitc7accbc5b52ced536e1956b111b1b9014db3f76c (patch)
tree4fb5248db372b182cc642fe13956076c938dd007 /i3
parent843943fbb7178e6d15230c1b6d867f26ab709d0c (diff)
downloaddotfiles-c7accbc5b52ced536e1956b111b1b9014db3f76c.tar.gz
I have a *nix laptop now, so need to watch battery
Diffstat (limited to 'i3')
-rw-r--r--i3/status6
1 files changed, 6 insertions, 0 deletions
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
+}