So I have my PIR working through a python script, from an old install but am using xrandr, which if run in terminal works great, I don’t know scripting well and would like to know if someone could make a module, utilising a PIR and xrandr codes below
Monitor off: xrandr --display :0.0 --output HDMI-1 --off
Monitor on: xrandr --display :0.0 --output HDMI-1 --rotate left --auto