awesome/bin/scroll_spotify_status.sh

12 lines
352 B
Bash
Executable file

#!/bin/bash
# see man zscroll for documentation of the following parameters
zscroll -l 30 \
--delay 0.4 \
--match-command "`dirname $0`/get_spotify_status.sh --status" \
--match-text "Playing" "--scroll 1" \
--match-text "Paused" "--scroll 0" \
--update-check true "`dirname $0`/get_spotify_status.sh" &
wait