fish: make mpv aliases more modular

This commit is contained in:
dogeystamp 2022-07-01 17:37:14 -04:00
parent 7f45698fc7
commit e5c5e2899d
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -1,9 +1,10 @@
# Color ls
alias ls='ls --color=auto'
# Run mpv from clipboard, replacing Invidious instances with YouTube's domain
# Limit mpv and youtube-dl to 1080p so it doesn't use too much bandwidth
alias mpvy='mpv --ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]" (xsel -b)'
alias mpvs='mpv --ytdl-format="bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'
# Run mpv from clipboard
alias mpvy='mpvs (xsel -b)'
alias youtube-dl='youtube-dl -f "bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]"'