i3status-rust: Add mute/unmute on click
This commit is contained in:
@@ -26,6 +26,11 @@ driver = "pulseaudio"
|
||||
max_vol = 100
|
||||
format = " $icon{ $volume.eng(2)|} "
|
||||
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "pactl set-sink-mute '@DEFAULT_SINK@' toggle"
|
||||
update = true
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
driver = "pulseaudio"
|
||||
@@ -33,6 +38,11 @@ device_kind = "source"
|
||||
format = " $icon "
|
||||
reverse_levels = true
|
||||
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "pactl set-source-mute '@DEFAULT_SOURCE@' toggle"
|
||||
update = true
|
||||
|
||||
[[block]]
|
||||
block = "net"
|
||||
format = " $icon{ $signal_strength|}{ $ssid | }"
|
||||
|
||||
Reference in New Issue
Block a user