dotfiles/scripts/mpv-url.sh

5 lines
90 B
Bash
Executable file

#!/bin/bash
url=$(xclip -o -selection clipboard)
if [ -n "$url" ]; then
mpv "$url"
fi