Created
December 4, 2020 15:23
-
-
Save mjarkk/df2aeaeaf69e6263adb0890ff3b42d89 to your computer and use it in GitHub Desktop.
brioche app in brioche shell
This file contains hidden or 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
#!/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