aboutsummaryrefslogtreecommitdiff
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
parentRefine completions with builtin compspecs (diff)
downloaddotfiles-c7accbc5b52ced536e1956b111b1b9014db3f76c.tar.gz
dotfiles-c7accbc5b52ced536e1956b111b1b9014db3f76c.zip
I have a *nix laptop now, so need to watch battery
-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
+}