From c3ddbdadadf34c6aa44670d4ee46fb2f5a0fbad3 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 22 Aug 2024 18:42:26 -0700 Subject: dwm hotkey use -u for tsp mpvy so tsp can show url, so here maybe not assign clipboard to url at first --- sh/mpvy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/mpvy b/sh/mpvy index 12792d0..61d9b41 100755 --- a/sh/mpvy +++ b/sh/mpvy @@ -9,7 +9,7 @@ cookie= download_dir= fps=30 height=$SCR_HEIGHT -url="$(xsel -ob)" +url= cookie_ytdl= cookie_mpv= @@ -28,6 +28,9 @@ while getopts Aabcd:f:h:su: opt; do \?) exit 1;; esac done + +[ "$url" ] || url="$(xsel -ob)" + if [ -z "$format" ]; then # xyzstudio GPU #vformat="[height<=?$height][fps<=?$fps][vcodec!^=?vp9][vcodec!^=?av01]" -- cgit v1.2.3-70-g09d2