Skip to content

Instantly share code, notes, and snippets.

@lotherk
Created October 13, 2014 14:26
Show Gist options
  • Save lotherk/ac6becc29f58f15cd376 to your computer and use it in GitHub Desktop.
Save lotherk/ac6becc29f58f15cd376 to your computer and use it in GitHub Desktop.
run_xwax.sh
#!/bin/bash
/usr/bin/jackd -R -p128 -t2000 -dalsa -dhw:1 -r48000 -p256 -n3 -X raw &
jack_wait -w
Xvfb -screen 0 800x480x24 &
sleep 1
export DISPLAY=:0
/usr/bin/x11vnc -xkb -auth /var/run/lightdm/root/:0 -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -forever -bg -rfbport 5900 -o /var/log/x11vnc.log &
sleep 1
/root/bin/xwax -k -g 800x480 -j deck_0 -j deck_1 -l /mnt/music &
sleep 2
jack_connect "system:capture_1" "xwax:deck_0_timecode_L"
jack_connect "system:capture_2" "xwax:deck_0_timecode_R"
jack_connect "xwax:deck_0_playback_L" system:playback_1
jack_connect "xwax:deck_0_playback_R" system:playback_2
jack_connect "system:capture_3" "xwax:deck_1_timecode_L"
jack_connect "system:capture_4" "xwax:deck_1_timecode_R"
jack_connect "xwax:deck_1_playback_L" system:playback_3
jack_connect "xwax:deck_1_playback_R" system:playback_4
ruby /root/xwax_xbox360.rb &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment