]> git.donarmstrong.com Git - x_base.git/blobdiff - .xsession
load nm-applet if there is a wireless device
[x_base.git] / .xsession
index 3ce006dfb191142b172b936ba16aed0446ab201c..6e39043557a9d914fd81fdb62424cb69ce80068e 100755 (executable)
--- a/.xsession
+++ b/.xsession
@@ -62,6 +62,10 @@ elif which mpd >/dev/null 2>&1 && [ -e ~/.mpdconf ]; then
     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;