first collection of useful scripts

This commit is contained in:
shockrahwow
2019-05-15 01:51:58 -07:00
commit 57dfb50219
13 changed files with 51 additions and 0 deletions

8
ytdl Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
dir=$(find ~/Music/ -maxdepth 1 -type d | dmenu -i -p "Pick a directory")
url="$(echo '' | dmenu -p 'Enter a url')"
[ -z "$url" ] && exit 0
youtube-dl --extract-audio \
--audio-format mp3 \
-o "$dir/%(title)s.%(ext)s" \
$url