dotfiles/i3/scripts/blocks/spotify.sh

14 lines
429 B
Bash
Raw Normal View History

2019-02-20 08:51:56 +01:00
#!/bin/bash
case $BLOCK_BUTTON in
1) ~/.config/i3/scripts/spotify-cli.sh play ;; # left click
4) ~/.config/i3/scripts/spotify-cli.sh next ;; # scroll up
5) ~/.config/i3/scripts/spotify-cli.sh prev ;; # scroll down
esac
if ~/.config/i3/scripts/spotify-cli.sh status | grep 'Paused' > /dev/null; then
printf ' ' # fa-pause
else
printf ' ' # fa-play
fi
~/.config/i3/scripts/spotify-cli.sh current-oneline