diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music index 6bd44e5..faba0c3 100755 --- a/.local/bin/statusbar/music +++ b/.local/bin/statusbar/music @@ -2,7 +2,7 @@ filter() { mpc | sed "/^volume:/d;s/\\&/&/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ';} -pidof -x mpdup >/dev/null 2>&1 || mpdup & +pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 & case $BLOCK_BUTTON in 1) mpc status | filter ; setsid -f "$TERMINAL" -e ncmpcpp ;; # right click, pause/unpause