#! /bin/zsh # # this file: # https://dataswamp.org/~incal/conf/.zsh/news live () { local url=$1 shift local opts=($@) DISPLAY=:0 \ mpv \ --no-terminal \ --volume=45 \ --ytdl-format='bestvideo[height=720]+bestaudio/bestvideo[height=1080]+bestaudio/best' \ $opts \ $url & } sport () { local url='https://www.youtube.com/channel/UCfwBz9wiUPdjuYVZQOwdN_A' live $url } sport-2 () { local url='https://www.youtube.com/channel/UCEgdi0XIXXZ-qJOFPf4JSKw' local inc=4 live $url --brightness=$inc --contrast=$inc } alias s2=sport-2 red-bull () { local url='https://www.youtube.com/channel/UCblfuW_4rakIf2h6aqANefA' local inc=4 live $url --brightness=$inc --contrast=$inc } abc () { local url='https://www.youtube.com/watch?v=w_Ma8oQLmSM' live $url } apress () { local url='https://www.youtube.com/channel/UC52X5wxOL_s5yw0dQk7NtgA' live $url } sky () { local url='https://www.youtube.com/watch?v=9Auq9mYxFEE' live $url --video-pan-y=0.25 }