See Klipper bed mesh on print area only macro install guide · GitHub for an excellent macro. Credits to @ChpCE