summaryrefslogtreecommitdiff
path: root/sh/mpvy
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-08-22 18:42:26 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-08-22 18:42:26 -0700
commitc3ddbdadadf34c6aa44670d4ee46fb2f5a0fbad3 (patch)
treed9cc4bd28f3173207ea76e165f95b1e28dd47da7 /sh/mpvy
parent6699787dfaf5d9c35f9f51d94255b9710032d687 (diff)
dwm hotkey use -u for tsp mpvy so tsp can show url, so here maybe not assign clipboard to url at first
Diffstat (limited to 'sh/mpvy')
-rwxr-xr-xsh/mpvy5
1 files changed, 4 insertions, 1 deletions
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]"