dotfiles/.bin/twitch-stream
2024-02-14 07:55:58 +01:00

6 lines
230 B
Bash
Executable File

#!/bin/sh
API_KEY=$(pass Internet/Twitch | head -1)
RES=$(xrandr | grep "*+" | awk '{print $1}')
FAUX_OPTS="-d snd/default -m -vmic 5.0 -vmon 0.2 -r $RES -f 20 -b 4000"
fauxstream $FAUX_OPTS rtmp://live-ams.twitch.tv/app/$API_KEY