aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/ttv
blob: 4db2cd5b3f80c3054003ec758f3fadc8a7870032 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
streamlink twitch.tv/$1 best -p "mpv --fs=no --geometry=75%" & disown
brave --user-data-dir=/tmp --app="https://twitch.tv/$1/chat?popout=" & disown

sleep 5
PPPID=$(awk '{print $4}' "/proc/$PPID/stat")
kill $PPPID