scripts: add meme download script

This commit is contained in:
Leonardo Eugênio 2023-02-07 13:39:04 -03:00
parent e64d87ae1c
commit 670ae65181
3 changed files with 19 additions and 0 deletions

17
scripts/down_meme Executable file
View file

@ -0,0 +1,17 @@
#!/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"