Advertisement
Guest User

Untitled

a guest
Sep 18th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.78 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. kitty @ set-window-title RadioTerm
  4.  
  5. while true; do
  6.   RADIO_SELECTION=$(fzf --color=16,fg:242,hl:65,fg+:15,bg+:234,hl+:108                  \
  7.                         --color=info:108,prompt:109,spinner:108,pointer:168,marker:168  \
  8.                         --layout=reverse --multi --nth="..-1" --with-nth="1..-2"        \
  9.                         < ~/.config/radio/radiolist )
  10.   RADIO_STREAM=$(awk -F"│ *" '{gsub(" *", ""); print $NF}'  <<< "$RADIO_SELECTION")
  11.   RADIO_NAME=$(  awk -F" │"  '{                print $1 }'  <<< "$RADIO_SELECTION")
  12.  
  13.   echo
  14.   echo
  15.   echo -e "\e[38;05;214m"
  16.   echo -e "━━━━━━━━━━┫ $RADIO_NAME ┣━━━━━━━━━━"
  17.   echo -e "\e[38;05;8m"
  18.  
  19.   mpv --no-video  --no-resume-playback  "$RADIO_STREAM"
  20.  
  21.   done
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement