about summary refs log tree commit diff
path: root/dotfiles/scripts/videos
blob: f7a7a41ce845f4c88452cb10dc89933dc49b84bf (plain) (blame)
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