753c07c665
There might be bugs
12 lines
292 B
Bash
12 lines
292 B
Bash
#!/usr/bin/env sh
|
|
|
|
xdotool key ctrl+l
|
|
xdotool key ctrl+c
|
|
# xdotool type yy
|
|
|
|
# link="$(xclip -o -selection clipboard | sed -E 's|([^&]*)(&)(.*)|\1|')"
|
|
link="$(xclip -o | sed -E 's|([^&]*)(&)(.*)|\1|')"
|
|
|
|
filename="$(dash $SCRIPTS/download-selected-video.sh "$link")"
|
|
|
|
printf "%b\n" "$filename"
|