Skip to content

Commit 3f8655f

Browse files
committed
feat: spotify_player checker
1 parent 07d6d71 commit 3f8655f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/spr.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ main() {
9191
BACK_BUTTON=$(get_tmux_option "@dracula-spr-remote-back" "R")
9292
NEXT_BUTTON=$(get_tmux_option "@dracula-spr-remote-next" "N")
9393

94+
if ! command -v spotify_player &> /dev/null
95+
then
96+
exit 1
97+
fi
98+
9499
# Remote Access
95100
if [[ "$REMOTE_ACCESS" == true ]]; then
96101
remoteControl "$PLAY_PAUSE_BUTTON" "$BACK_BUTTON" "$NEXT_BUTTON"

0 commit comments

Comments
 (0)