Skip to content

Instantly share code, notes, and snippets.

@grejppi
Created January 9, 2016 05:18
Show Gist options
  • Save grejppi/3856948161c88db52095 to your computer and use it in GitHub Desktop.
Save grejppi/3856948161c88db52095 to your computer and use it in GitHub Desktop.
launching bitwig studio when using wayland
#!/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