1 2 3 4 5 6 7 8 9
#!/bin/bash choice=$( (echo 1 | grep 0) | dmenu -p "Paste a link to a video:") if [[ $choice == '' ]]; then echo "No input." exit 1 else mpv $choice fi