You can alias this command:


kill -9 $(ps -afe | grep nm-applet$ | head -2 | tail -1 | cut -d" " -f5) && nm-applet &


in the ~/.bash_alias file as follows:


alias fix-nm-applet='kill -9...