]> git.donarmstrong.com Git - x_base.git/commitdiff
load nm-applet if there is a wireless device
authorDon Armstrong <don@donarmstrong.com>
Sat, 15 Apr 2017 02:22:00 +0000 (19:22 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 24 Jun 2017 17:09:49 +0000 (10:09 -0700)
.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;