Skip to content

Instantly share code, notes, and snippets.

@mjarkk
Created December 4, 2020 15:23
Show Gist options
  • Save mjarkk/df2aeaeaf69e6263adb0890ff3b42d89 to your computer and use it in GitHub Desktop.
Save mjarkk/df2aeaeaf69e6263adb0890ff3b42d89 to your computer and use it in GitHub Desktop.
brioche app in brioche shell
#!/bin/bash
if [ -z "$CONTAINER_GPU" ]; then CONTAINER_GPU=0; fi
echo "#!/bin/bash" > ~/.brioche_last_app.sh
echo "xhost +" >> ~/.brioche_last_app.sh
echo "/usr/bin/start-pulseaudio-x11" >> ~/.brioche_last_app.sh
echo "${@:1}" >> ~/.brioche_last_app.sh
chmod 0755 ~/.brioche_last_app.sh
export GDK_SCALE=2
export SOMMELIER_ARGS="--scale=2"
sommelier \
-X --x-display=:0 \
--shm-driver=noop \
--drm-device=/dev/dri/card$CONTAINER_GPU \
--glamor $SOMMELIER_ARGS \
~/.brioche_last_app.sh > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment