#!/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
