waybar/scripts/scroll-mpd.sh

11 lines
287 B
Bash
Executable File

#!/bin/bash
zscroll -p ' | ' --delay 0.2 --before-text " x" \
--length 30 \
--match-command "mpc status" \
--match-text "playing" "--before-text ' '" \
--match-text "paused" "--before-text ' ' --scroll 0" \
--update-interval 1 \
--update-check true "mpc current" &
wait