-if [ -x /usr/bin/awesome ]; then
- exec /usr/bin/awesome;
-elif [ -x /usr/bin/ion3 ]; then
- exec /usr/bin/ion3;
-elif [ -x /usr/bin/openbox ]; then
- exec /usr/bin/openbox;
-elif [ -x /usr/bin/rxvt ]; then
- exec /usr/bin/rxvt;
-elif [ -x /usr/bin/rxvt-unicode ]; then
- exec /usr/bin/rxvt-unicode;
-elif [ -x /usr/bin/xterm ]; then
- exec /usr/bin/xterm;
+if [ -x /sbin/iw ] && cmd_exists nm-applet && /sbin/iw list|grep -q '^Wiphy'; then
+ fork nm-applet;
+fi;
+
+if cmd_exists i3; then
+ if [ -x ~/.config/i3/build_config.sh ]; then
+ ~/.config/i3/build_config.sh;
+ fi;
+ exec /usr/bin/i3;