mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-25 00:03:06 +01:00
14 lines
429 B
Bash
Executable File
14 lines
429 B
Bash
Executable File
#!/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 |