-
-
Save cleverca22/45049f1803aa9b403a3c80c2f87923d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
let | |
config = writeText "pa.conf" '' | |
load-module module-native-protocol-unix | |
load-module module-null-sink | |
load-module module-rescue-streams | |
load-module module-always-sink | |
''; | |
in writeScriptBin "obs-wrapper" '' | |
#!${stdenv.shell} | |
set -x | |
${xorg.xorgserver.out}/bin/Xephyr -display :0 :1 -xkbdir ${xorg.xkeyboardconfig}/etc/X11/xkb -screen 1024x768 -fp ${xorg.fontmiscmisc}/lib/X11/fonts/misc,${xorg.fontcursormisc}/lib/X11/fonts/misc -auth /tmp/obs.auth & | |
XORG_PID=$! | |
sleep 5 | |
export DISPLAY=:1 | |
#unset DBUS_SESSION_BUS_ADDRESS | |
mkdir /tmp/obs/ | |
#export PULSE_SERVER="unix:/tmp/obs/native"; | |
#export PULSE_RUNTIME=/tmp/obs | |
# ${xfce.xfwm4}/bin/xfwm4 & | |
${ratpoison}/bin/ratpoison & | |
${xfce.xfce4panel.out}/bin/xfce4-panel & | |
#pulseaudio -n --use-pid-file=true -F ${config} | |
${obs-studio}/bin/obs | |
kill $XORG_PID | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment