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