This script monitors xrandr outputs' status and launches scripts, expectedly as generated by arandr utility.
python3- see
requirements.txt
~/.screenlayoutfolder should contain scripts which will be run once a new output event (connected or disconnected) occurs- these scripts should be named
<output-a>[[_<output-b>]...].shwhere outputs' names are sorted- best is to see what the script actually tries to execute when an event occurs