Created
January 9, 2016 05:18
-
-
Save grejppi/3856948161c88db52095 to your computer and use it in GitHub Desktop.
launching bitwig studio when using wayland
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
#!/usr/bin/env python3.5 | |
import os | |
import subprocess | |
import sys | |
import time | |
DISPLAY = ':3' | |
xephyr = subprocess.Popen(['Xephyr', DISPLAY, '-fullscreen']) | |
time.sleep(0.1) | |
mutter = subprocess.Popen(['mutter', '--display', DISPLAY]) | |
os.environ['DISPLAY'] = DISPLAY | |
bitwig = subprocess.run(['bitwig-studio'] + sys.argv[1:]) | |
mutter.kill() | |
xephyr.kill() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment