From 2c774a962a9d89c09ecc517f0e6d32f4a9f51eb8 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Fri, 14 Apr 2017 19:22:00 -0700 Subject: [PATCH] load nm-applet if there is a wireless device --- .xsession | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.2