[rc/i3status] add pulseaudio volume and adjust battery low_threshold
authorAmin Bandali <amin@gnu.org>
Sat, 18 Aug 2018 19:49:05 +0000 (15:49 -0400)
committerAmin Bandali <amin@gnu.org>
Sat, 18 Aug 2018 19:49:05 +0000 (15:49 -0400)
rc.org

diff --git a/rc.org b/rc.org
index ce39dff..e9a7fd2 100644 (file)
--- a/rc.org
+++ b/rc.org
@@ -929,6 +929,7 @@ order += "disk /data"
 order += "wireless _first_"
 # order += "ethernet _first_"
 order += "battery 0"
+order += "volume master"
 order += "load"
 order += "tztime local"
 
@@ -946,9 +947,9 @@ wireless _first_ {
 battery 0 {
         format = "%status %percentage %remaining (%consumption)"
         path = "/sys/class/power_supply/BAT%d/uevent"
-        low_threshold = "30"
-        threshold_type = "time"
-        last_full_capacity = false
+        low_threshold = "10"
+        threshold_type = "percentage"
+        last_full_capacity = true
         integer_battery_capacity = true
         hide_seconds = true
 }
@@ -957,6 +958,12 @@ tztime local {
         format = "%-I:%M%P %a %b %d"
 }
 
+volume master {
+        format = "♪ %volume"
+        format_muted = "🔇 %volume"
+        device = "pulse"
+}
+
 load {
         format = "%1min"
 }