pipewire-controller: trim mute status
This commit is contained in:
parent
269bda650d
commit
4aa73643e7
1 changed files with 1 additions and 1 deletions
|
@ -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}")
|
||||||
|
|
Loading…
Reference in a new issue