diff options
| author | Kian Kasad <kdkasad@gmail.com> | 2020-05-09 16:32:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-09 19:32:56 -0400 |
| commit | 6577acae890e18dc99244599fc85fa31053e400e (patch) | |
| tree | bf4a2bcb499931889809c6cb9bca95aa9689b866 /.local/bin/statusbar/music | |
| parent | 2b6b3822e32b11f3f6bf65cd64d4801bdacb0173 (diff) | |
| download | eibhear-6577acae890e18dc99244599fc85fa31053e400e.tar.gz eibhear-6577acae890e18dc99244599fc85fa31053e400e.tar.zst eibhear-6577acae890e18dc99244599fc85fa31053e400e.zip | |
replace `tr '\n' 'CHAR'` with `paste -sd 'CHAR'` (#625)
Diffstat (limited to '.local/bin/statusbar/music')
| -rwxr-xr-x | .local/bin/statusbar/music | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music index 6d22467..8c60919 100755 --- a/.local/bin/statusbar/music +++ b/.local/bin/statusbar/music @@ -1,6 +1,6 @@ #!/bin/sh -filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | tr '\n' ' ' | sed 's/ $//' ;} +filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ';} case $BLOCK_BUTTON in 1) mpc status | filter ; setsid "$TERMINAL" -e ncmpcpp & ;; # right click, pause/unpause |
