yt-viewer.sh 121 B

12345678910
  1. #!/bin/sh
  2. url=$(xclip -o)
  3. ch="$(printf "yes\nno" | dmenu -p "Play $url?")"
  4. if [ $ch = "yes" ];
  5. then
  6. mpv $url &
  7. fi