Auto-Monitor is a shell script to switch to monitor if the wifi card is in the managed mode and vise versa.
Monitor or Managed modemac address using macchangergit clone https://github.com/AnasBoubechra/Auto-monitor.git
cd Auto-monitor
chmod +x wlan
sudo ./wlan
no dependencies