18 lines
251 B
Plaintext
18 lines
251 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
DIR=$(mktemp -d)
|
||
|
|
||
|
cd "$DIR"
|
||
|
|
||
|
yt-dlp --merge-output-format mp4 "$(wl-paste)"
|
||
|
|
||
|
FILENAME="$(ls)"
|
||
|
|
||
|
cp * "$HOME/Downloads/Memes/$FILENAME"
|
||
|
|
||
|
wl-copy-file "$HOME/Downloads/Memes/$FILENAME"
|
||
|
|
||
|
notify-send "Meme downloaded" "$FILENAME"
|
||
|
|
||
|
rm -rf "$DIR"
|