about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-04-01T17·28+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-04-01T17·28+0100
commit698cff169a542840249880f2d851bded357d453f (patch)
treefd537a4c40241ce06402e878751c193d43d349fb
parent9ef4b5bb0a61e9cbc2b54e0b6d175c6864324cb4 (diff)
Augment i3statusbar
- support battery indicator
- format indentation
-rw-r--r--configs/shared/misc/.config/i3status/config36
1 files changed, 25 insertions, 11 deletions
diff --git a/configs/shared/misc/.config/i3status/config b/configs/shared/misc/.config/i3status/config
index 37f6678ce854..f6df49ef48d4 100644
--- a/configs/shared/misc/.config/i3status/config
+++ b/configs/shared/misc/.config/i3status/config
@@ -1,34 +1,48 @@
 general {
-        markup = "pango"
-        separator = " "
-        colors = true
+  markup = "pango"
+  separator = " "
+  colors = true
 }
 
+order += "battery 0"
+order += "tztime local"
 order += "tztime lon"
 order += "tztime est"
 order += "tztime pst"
 order += "disk /"
 
 disk "/" {
-     prefix_type = "decimal"
-     format = "%used/%total"
+  prefix_type = "decimal"
+  format = "%used/%total"
 }
 
 # Useful commands for dealing with timezones:
 # - cat /etc/timezone
 # - man date
 # - timedatectl
+tztime local {
+  format = "%d/%m/%Y"
+}
+
 tztime lon {
-     format = "LON %H:%M"
-     timezone = "Europe/London"
+  format = "LON %H:%M"
+  timezone = "Europe/London"
 }
 
 tztime est {
-     format = "NYC %H:%M"
-     timezone = "US/Eastern"
+  format = "NYC %H:%M"
+  timezone = "US/Eastern"
 }
 
 tztime pst {
-     format = "MTV %H:%M"
-     timezone = "US/Pacific"
+  format = "MTV %H:%M"
+  timezone = "US/Pacific"
+}
+
+battery 0 {
+  format = "Battery %percentage"
+  format_down = "" # This hides the battery when there isn't any (e.g. on a Desktop)
+  low_threshold = 30
+  threshold_type = time
+  integer_battery_capacity = true
 }
\ No newline at end of file