From 8a2e1006b3b272126332aa064f3ad95387129544 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 13 Feb 2025 14:13:49 +0530 Subject: new dot files --- .local/bin/ytplay | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .local/bin/ytplay (limited to '.local/bin/ytplay') diff --git a/.local/bin/ytplay b/.local/bin/ytplay new file mode 100755 index 0000000..e505a3b --- /dev/null +++ b/.local/bin/ytplay @@ -0,0 +1,4 @@ +#!/bin/sh + +query=$(printf '%s' "$*" | tr ' ' '+' ) +mpv "https://youtube.com/$(curl -s "https://vid.puffyan.us/search?q=$query" | grep -Eo "watch\?v=.{11}" | head -n 1)" -- cgit v1.2.3-59-g8ed1b