mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2025-07-28 05:03:13 +02:00
swapped out spotify for tidal.
PS: this uses the private "tidal-hifi" electron app that I am developing and should be released soon.
This commit is contained in:
14
i3/scripts/blocks/tidal.sh
Normal file
14
i3/scripts/blocks/tidal.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
Reference in New Issue
Block a user