pipewire-controller: trim mute status

This commit is contained in:
Zynh Ludwig 2024-09-27 23:24:28 -07:00
parent 269bda650d
commit 4aa73643e7

View file

@ -21,7 +21,7 @@ let
.expect("Unable to get mute status from pamixer")
.stdout;
let mute_status = str::from_utf8(&mute_status[..]).expect("pamixer output wasn't a string");
let mute_status = str::from_utf8(&mute_status[..]).expect("pamixer output wasn't a string").trim();
if mute_status == "false" {
Command::new("${pamixer}")