Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- kitty @ set-window-title RadioTerm
- while true; do
- RADIO_SELECTION=$(fzf --color=16,fg:242,hl:65,fg+:15,bg+:234,hl+:108 \
- --color=info:108,prompt:109,spinner:108,pointer:168,marker:168 \
- --layout=reverse --multi --nth="..-1" --with-nth="1..-2" \
- < ~/.config/radio/radiolist )
- RADIO_STREAM=$(awk -F"│ *" '{gsub(" *", ""); print $NF}' <<< "$RADIO_SELECTION")
- RADIO_NAME=$( awk -F" │" '{ print $1 }' <<< "$RADIO_SELECTION")
- echo
- echo
- echo -e "\e[38;05;214m"
- echo -e "━━━━━━━━━━┫ $RADIO_NAME ┣━━━━━━━━━━"
- echo -e "\e[38;05;8m"
- mpv --no-video --no-resume-playback "$RADIO_STREAM"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement