1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-05-20 10:53:23 -07:00

more youtube streaming stuff

This commit is contained in:
Connor Olding 2017-10-06 12:33:02 +00:00
parent 0d37a2bd61
commit f6db858b6a
2 changed files with 6 additions and 2 deletions

View File

@ -103,7 +103,7 @@ yt() {
local vid="$1"
# can't be bothered to use substrings since they differ across bash/zsh
if [[ "$(head -c4 <<< "$vid")" != "http" ]]; then
vid="https://www.youtube.com/watch?v=$vid"
vid="ytdl://$vid"
fi
mpv --af=lavfi="[$_M_PROCESS]" \
--audio-samplerate=44100 --audio-format=s16 \
@ -111,6 +111,10 @@ yt() {
popd >/dev/null
}
ytg() {
yt "$@" --ytdl-format=95,best
}
ai() {
yt "$@" --slang=en --sub-font='Tekton Pro' --sub-bold=yes \
--sub-font-size=60 --sub-border-color='#DD6180' --sub-margin-y=52

View File

@ -136,7 +136,7 @@ wipe() {
for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm
alias $x="nocorrect $x"
for x in arith hex curl fc find ftp history let locate rsync scp sftp wget twitch hitbox yt
for x in arith hex curl fc find ftp history let locate rsync scp sftp wget twitch hitbox yt ytg ai
alias $x="noglob $x"
unset x