You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/bin/poly_spotify

19 lines
479 B
Bash

#!/usr/bin/env bash
if [ "$1" == '--toggle' ]; then
playerctl --player=spotify play-pause
fi
if [[ "$1" == "--scroll" ]] ; then
zscroll -l $2 \
-p " 󰎈 " \
--delay 0.5 \
--update-check true \
--match-command "playerctl --player=spotify status" \
--match-text "Playing" "--scroll 1" \
--match-text "Paused" "--scroll 0" \
"playerctl --player=spotify metadata -s --format '{{artist}} - {{title}}'" &
wait
fi