From 188b93668c449866e02d0982a85ddf49a213a0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 16 Dec 2022 20:26:48 +0100 Subject: [PATCH] i3status-rust: Add mute/unmute on click --- i3/i3status-rust/config.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i3/i3status-rust/config.toml b/i3/i3status-rust/config.toml index 6429caa..563e95e 100644 --- a/i3/i3status-rust/config.toml +++ b/i3/i3status-rust/config.toml @@ -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 | }"