From: Don Armstrong Date: Sat, 15 Apr 2017 02:22:00 +0000 (-0700) Subject: load nm-applet if there is a wireless device X-Git-Url: https://git.donarmstrong.com/?p=x_base.git;a=commitdiff_plain;h=2c774a962a9d89c09ecc517f0e6d32f4a9f51eb8 load nm-applet if there is a wireless device --- diff --git a/.xsession b/.xsession index 3ce006d..6e39043 100755 --- 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;