2023-02-07 13:39:04 -03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
|
|
|
|
cd "$DIR"
|
|
|
|
|
|
|
|
yt-dlp --merge-output-format mp4 "$(wl-paste)"
|
|
|
|
|
2023-04-10 12:45:37 -03:00
|
|
|
FILENAME="$(ls | head -n1)"
|
2023-02-07 13:39:04 -03:00
|
|
|
|
2023-04-17 15:26:41 -03:00
|
|
|
mkdir -p "$HOME/Downloads/Memes"
|
|
|
|
|
2023-10-06 23:07:15 -03:00
|
|
|
cp "$FILENAME" "$HOME/Downloads/Memes/$FILENAME"
|
2023-02-07 13:39:04 -03:00
|
|
|
|
|
|
|
wl-copy-file "$HOME/Downloads/Memes/$FILENAME"
|
|
|
|
|
|
|
|
notify-send "Meme downloaded" "$FILENAME"
|
|
|
|
|
|
|
|
rm -rf "$DIR"
|