diff options
Diffstat (limited to 'scripts/mpd-zscroll')
-rwxr-xr-x | scripts/mpd-zscroll | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/mpd-zscroll b/scripts/mpd-zscroll index eba586b..59ec3b9 100755 --- a/scripts/mpd-zscroll +++ b/scripts/mpd-zscroll @@ -1,5 +1,10 @@ #!/bin/sh -zscroll -l 17 --before-text "♪ " --delay 0.3 \ - --update-check true "mpc current" & +if [ ! -z "$@" ]; then + mpc -f "%title%" current +else + zscroll -l 14 --before-text " " --delay 0.2 \ + --update-check true "$0 current" -p " " & +fi + wait |