Using GPIO 3 (wake) for power on/off switch

If I disable Fan Shim button using --nobutton, I need another script, right?
Would this be the working script?