diff options
| author | M. Yas. Davoodeh <30480116+Davoodeh@users.noreply.github.com> | 2021-05-27 16:36:56 +0430 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-27 08:06:56 -0400 |
| commit | 3d439e1c08ac6b7bc6bf87e7585019034e02aebe (patch) | |
| tree | 586af497315dfb9659a90cd2c653be03837591dc | |
| parent | 5e53f5f467829c742586d38eb17a1c3efd18f6bf (diff) | |
| download | eibhear-3d439e1c08ac6b7bc6bf87e7585019034e02aebe.tar.gz eibhear-3d439e1c08ac6b7bc6bf87e7585019034e02aebe.tar.zst eibhear-3d439e1c08ac6b7bc6bf87e7585019034e02aebe.zip | |
Suppress sb-music errors (#953)
| -rwxr-xr-x | .local/bin/statusbar/sb-music | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-music b/.local/bin/statusbar/sb-music index 7504313..7ea7032 100755 --- a/.local/bin/statusbar/sb-music +++ b/.local/bin/statusbar/sb-music @@ -1,6 +1,6 @@ #!/bin/sh -filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ' -;} +filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d;/^ERROR/Q" | paste -sd ' ' -;} pidof -x sb-mpdup >/dev/null 2>&1 || sb-mpdup >/dev/null 2>&1 & |
