]> git.donarmstrong.com Git - x_base.git/blobdiff - .xsession
use exec exec and st
[x_base.git] / .xsession
index 195786515b2e86eaea38af0f8159808fc2642447..6e39043557a9d914fd81fdb62424cb69ce80068e 100755 (executable)
--- a/.xsession
+++ b/.xsession
@@ -54,13 +54,22 @@ if which redshift >/dev/null 2>&1; then
     (redshift -l 40.11059:-88.20727 >/dev/null 2>&1 &)
 fi;
 
-if which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then
+if which mopidy >/dev/null 2>&1 && [ -e ~/.config/mopidy/mopidy.conf ]; then
+    (mopidy > /dev/null 2>&1 & );
+elif which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then
     (mpd >/dev/null 2>&1 &);
     MPD_HOST=$(awk '/^bind_to_address/{print $2}' ~/.mpdconf|sed "s|~|$HOME|; s/^\"//; s/\"$//; ");
     export MPD_HOST;
 fi;
 
+if [ -x /sbin/iw ] && which nm-applet >/dev/null 2>&1 && /sbin/iw list|grep -q '^Wiphy'; then
+    ( nm-applet > /dev/null 2>&1 & );
+fi;
+
 if [ -x /usr/bin/i3 ]; then
+    if [ -x ~/.config/i3/build_config.sh ]; then
+        ~/.config/i3/build_config.sh;
+    fi;
     exec /usr/bin/i3;
 elif [ -x /usr/bin/awesome ]; then
     exec /usr/bin/awesome;