mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-23 07:14:30 +01:00
Mastermindzh
9714b2fa1d
PS: this uses the private "tidal-hifi" electron app that I am developing and should be released soon.
15 lines
401 B
Bash
15 lines
401 B
Bash
#!/bin/bash
|
|
|
|
case $BLOCK_BUTTON in
|
|
1) ~/.config/i3/scripts/tidal-cli.sh playpause ;; # left click
|
|
4) ~/.config/i3/scripts/tidal-cli.sh next ;; # scroll up
|
|
5) ~/.config/i3/scripts/tidal-cli.sh previous ;; # scroll down
|
|
esac
|
|
|
|
if ~/.config/i3/scripts/tidal-cli.sh status | grep 'paused' >/dev/null; then
|
|
printf ' ' # fa-pause
|
|
else
|
|
printf ' ' # fa-play
|
|
fi
|
|
~/.config/i3/scripts/tidal-cli.sh info
|