pipewire-controller: trim mute status

sh-initrd-on-root
Zynh Ludwig 2024-09-27 23:24:28 -07:00
parent 269bda650d
commit 4aa73643e7
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ let
.expect("Unable to get mute status from pamixer") .expect("Unable to get mute status from pamixer")
.stdout; .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" { if mute_status == "false" {
Command::new("${pamixer}") Command::new("${pamixer}")