#!/bin/sh

echo pactl load-module module-null-sink media.class=Audio/Sink sink_name=obs-microphone channel_map=front-left,front-right
echo sudo modprobe v4l2loopback

if [[ -e /dev/dri/renderD128 ]]
then
    :
else
    sudo ln -s /dev/dri/renderD129 /dev/dri/renderD128
fi

QT_QPA_PLATFORM=xcb exec "${HOME}/.guix-profile/bin/obs"
