You can try this one, written in Python, it shows a libnotify notification and also uses xrandr to change the resolution:
Switch between the external monitor and the laptop monitor
Although The post is in spanish
Switch between the external monitor and the laptop monitor
Although The post is in spanish
Comment