aboutsummaryrefslogtreecommitdiffstats
path: root/bin/autostart
diff options
context:
space:
mode:
Diffstat (limited to 'bin/autostart')
-rwxr-xr-xbin/autostart23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/autostart b/bin/autostart
new file mode 100755
index 0000000..9d70ad0
--- /dev/null
+++ b/bin/autostart
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Auto starting various programs post lightdm
+
+export DISPLAY=:0
+export XAUTHORITY=/home/dave/.Xauthority
+
+KERNEL_NAME=$(uname -r)
+if [[ "$KERNEL_NAME" != *rt* ]]; then
+ pid=$(pidof dropbox)
+ re='^[0-9]+$'
+ if [[ $pid =~ $re ]];then
+ echo "Dropbox alread running. Restarting..."
+ dropbox stop && dropbox start &
+ else
+ dropbox start &
+ fi
+# pulseaudio --start &
+# nm-applet &
+# firewall-applet &
+else
+ pulseaudio --kill &
+ qjackctl &
+fi