Add volume to i3 status bar
dblume

dblume commited on 2023-11-27 08:47:47
Showing 1 changed files, with 9 additions and 0 deletions.

... ...
@@ -13,6 +13,7 @@ general {
13 13
 
14 14
 #order += "ipv6"
15 15
 order += "wireless _first_"
16
+order += "volume master"
16 17
 #order += "ethernet _first_"
17 18
 order += "battery all"
18 19
 #order += "disk /"
... ...
@@ -31,6 +32,14 @@ ethernet _first_ {
31 32
         format_down = "E: down"
32 33
 }
33 34
 
35
+volume master {
36
+        format = "♪: %volume"
37
+        format_muted = "♪: muted (%volume)"
38
+        device = "default"
39
+        mixer = "Master"
40
+        mixer_idx = 0
41
+}
42
+
34 43
 battery all {
35 44
         format = " %status %percentage %remaining"
36 45
 }
37 46