aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/scripts/scroll_spotify_status.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/scripts/scroll_spotify_status.sh')
-rwxr-xr-x.config/polybar/scripts/scroll_spotify_status.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/polybar/scripts/scroll_spotify_status.sh b/.config/polybar/scripts/scroll_spotify_status.sh
new file mode 100755
index 0000000..74e0bfd
--- /dev/null
+++ b/.config/polybar/scripts/scroll_spotify_status.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# see man zscroll for documentation of the following parameters
+zscroll -l 20 \
+ --delay 0.1 \
+ --scroll-padding " " \
+ --match-command "$HOME/.config/polybar/scripts/get_spotify_status.sh --status" \
+ --match-text "Playing" "--scroll 1" \
+ --match-text "Paused" "--scroll 0" \
+ --update-check true "$HOME/.config/polybar/scripts/get_spotify_status.sh" &
+
+wait