Last active
May 28, 2024 14:22
-
-
Save portobanco51/40238751286f8420bd993f9c3911c3f5 to your computer and use it in GitHub Desktop.
Play
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
theme: | |
active: Gray | |
banner: LightGreen | |
error_border: Red | |
error_text: LightRed | |
hint: LightGreen | |
inactive: Gray | |
playbar_background: Black | |
playbar_progress: "29, 185, 84" | |
playbar_progress_text: "255, 255, 255" | |
selected: "29, 185, 84" | |
text: "255, 255, 255" | |
keybindings: | |
increase_volume: "=" | |
behavior: | |
seek_milliseconds: 5000 | |
volume_increment: 5 | |
tick_rate_milliseconds: 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# COLORS | |
GRAY="$(tput setaf 0; tput bold)" | |
GREEN="$(tput setaf 2; tput bold)" | |
YELLOW="$(tput setaf 3; tput bold)" | |
WHITE="$(tput setaf 7; tput bold)" | |
ULINE="$(tput smul)" | |
EOS="$(tput sgr0)" | |
USER="404notFound!" | |
GREET=" Welcome to Spotify," | |
DIV="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" | |
SONG="${@}" | |
if [ -z "$1" ] | |
then | |
spt playback --device "MARCELOPC" -t | |
clear | |
echo -e "\n$GREEN$DIV$EOS\n" | |
echo -e "$YELLOW Accessing Spotify Infranet...$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 1 | |
echo -e "$YELLOW Loading Schemes...$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 2 | |
echo -e "$YELLOW$GREET$EOS $GREEN$ULINE$USER$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 2.5 | |
spt | |
clear | |
exit 0 | |
else | |
spt play --device "MARCELOPC" --track --name "$SONG" | |
clear | |
echo -e "\n$GREEN$DIV$EOS\n" | |
echo -e "$YELLOW Accessing Spotify Infranet...$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 1 | |
echo -e "$YELLOW Loading Schemes...$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 2 | |
echo -e "$YELLOW$GREET$EOS $GREEN$ULINE$USER$EOS\n" | |
echo -e "$GREEN$DIV$EOS\n" | |
sleep 2.5 | |
clear | |
spt | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment