Bambu Lab X1 Specific G-Code

It’s there as a single line in a json file though. Here’s a hack to show one:

$ grep machine_end "resources/profiles/BBL/machine/Bambu Lab X1 Carbon 0.4 nozzle.json" | sed -r 's/.*: "//; s/"[^"]*$//; s/\\n/\n/g'
;===== date: 20240528 =====================
M400 ; wait for buffer to clear
G92 E0 ; zero the extruder
G1 E-0.8 F1800 ; retract
G1 Z{max_layer_z + 0.5} F900 ; lower z a little
G1 X65 Y245 F12000 ; move to safe pos
G1 Y265 F3000

G1 X65 Y245 F12000
G1 Y265 F3000
M140 S0 ; turn off bed
M106 S0 ; turn off fan
M106 P2 S0 ; turn off remote part cooling fan
M106 P3 S0 ; turn off chamber cooling fan
(...)