aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-06-03 14:55:54 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2019-06-03 14:55:54 +0200
commite11092024e46aec2059a0aacb7b853a0bfdb6456 (patch)
treed871031f719199adbd360a9164c66a137a2d3443
parent37ff1b11113179a762f76d148e64eea66192c1d6 (diff)
downloadscripts-e11092024e46aec2059a0aacb7b853a0bfdb6456.tar.gz
scripts-e11092024e46aec2059a0aacb7b853a0bfdb6456.zip
Created script to download audio without X.
-rwxr-xr-xfloats/youtube-dlFloatAudio.sh2
-rw-r--r--youtube-dlAudio.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/floats/youtube-dlFloatAudio.sh b/floats/youtube-dlFloatAudio.sh
index a272abb..1988653 100755
--- a/floats/youtube-dlFloatAudio.sh
+++ b/floats/youtube-dlFloatAudio.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dl -o "$HOME/downloads/audios/%(title)s.%(ext)s" -x --audio-format mp3 --embed-thumbnail "$1"
+urxvt -title "floating" -geometry "100x8-0-0" -e youtube-dlAudio.sh "$1"
diff --git a/youtube-dlAudio.sh b/youtube-dlAudio.sh
new file mode 100644
index 0000000..ac16b71
--- /dev/null
+++ b/youtube-dlAudio.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+youtube-dl -o "$HOME/downloads/audios/%(title)s.%(ext)s" -x --audio-format mp3 --embed-thumbnail "$1"