aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Kavanagh <rak@debian.org>2012-10-28 10:49:23 +0000
committerRyan Kavanagh <rak@debian.org>2012-10-28 10:49:23 +0000
commit21ee948b2723e4bb4edf394da86ac651b8330fba (patch)
treea850e0c139016e2e793dd7e8d7661accc372d64b
parentUse path to SSL certs in offlineimap instead of manual fingerprint (diff)
Insert a two second delay between pulseaudio and jackd
-rwxr-xr-x.xinitrc5
-rwxr-xr-xbin/startaudio2
2 files changed, 4 insertions, 3 deletions
diff --git a/.xinitrc b/.xinitrc
index 8cc9f49..bade7f5 100755
--- a/.xinitrc
+++ b/.xinitrc
@@ -15,8 +15,7 @@ urxvtd -q -f -o &
urxvtc &
# /home/ryan/.screenlayout/work.sh
/home/ryan/.screenlayout/SCREENLAYOUT.sh && nitrogen --restore
-if [[ "PULSE_JACKD" = "True" ]]; then
- start-pulseaudio-x11 &
- jackd -d alsa &
+if [ "PULSE_JACKD" = "True" ]; then
+ sh bin/startaudio &
fi
exec /usr/bin/xmonad
diff --git a/bin/startaudio b/bin/startaudio
new file mode 100755
index 0000000..407c751
--- /dev/null
+++ b/bin/startaudio
@@ -0,0 +1,2 @@
+#!/bin/sh
+start-pulseaudio-x11 && sleep 2 && sh ~/.jackdrc