nixos-config/scripts/down_meme
Leonardo Eugênio 13797298c2 fixes
2023-04-10 12:45:37 -03:00

18 lines
262 B
Bash
Executable file

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