9 lines
239 B
Bash
Executable file
9 lines
239 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
notify-send "Downloading $1"
|
|
title=$(yt-dlp --get-title $1)
|
|
ext=&(yt-dlp --get-ext $1)
|
|
filename=$title.$ext
|
|
alacritty -e yt-dlp -o '/home/chris/vids/%(title)s.%(ext)s' $1
|
|
mpv "/home/chris/vids/$filename" & disown
|