Additional custom files for the mill config: found in the root user directory: .axisrc .axis_preferences bigopenfile.tcl ******************** .axisrc contents: # disable the do you want to close dialog root_window.tk.call("wm","protocol",".","WM_DELETE_WINDOW","destroy .") # change the startup screen size root_window.tk.call("wm","geometry",".","1200x600") # change the file open window size root_window.tk.call("source","/home/tom/bigfileopen.tcl") # change the font font = 'sans 11' fname,fsize = font.split() root_window.tk.call('font','configure','TkDefaultFont','-family',fname,'-size',fsize) # redo the text in tabs so they resize for the new default font root_window.tk.call('.pane.top.tabs','itemconfigure','manual','-text',' Manual - F3 ') root_window.tk.call('.pane.top.tabs','itemconfigure','mdi','-text',' MDI - F5 ') root_window.tk.call('.pane.top.right','itemconfigure','preview','-text',' Preview ') root_window.tk.call('.pane.top.right','itemconfigure','numbers','-text',' DRO ') # gcode font is independent root_window.tk.call('.pane.bottom.t.text','configure','-foreground','blue') #root_window.tk.call('.pane.bottom.t.text','configure','-foreground','blue','-font',font) #root_window.tk.call('.pane.bottom.t.text','configure','-foreground','blue','-font',font,'-height','12') # change the DRO color root_window.tk.call('.pane.top.right.fnumbers.text','configure','-foreground','white','-background','blue') # set preview colors #try: # live_plotter.logger.set_colors((255,0,0,255), # (0,255,0,255), # (0,0,255,255), # (255,255,0,255), # (255,255,255,255), # (0,255,255,255)) #except Exception as e: # print (e) # To change the live plotter colors in Axis you have to copy the contents of the file: # /usr/share/doc/linuxcnc/axis_light_background # into the file # ~user/.Xresources ******************** .axis_preferences contents: [DEFAULT] tto_g11 = False show_program = True show_rapids = True program_alpha = False show_live_plot = True show_tool = True show_extents = True show_offsets = True grid_size = 0.0 show_machine_limits = True show_machine_speed = True show_distance_to_go = False dro_large_font = False block_delete = True optional_stop = False recentfiles = ['/home/tom/linuxcnc/nc_files/arc_test2.ngc', '/home/tom/linuxcnc/nc_files/arc_test_andy1.ngc', '/home/tom/linuxcnc/nc_files/arc_test.ngc', '/home/tom/linuxcnc/nc_files/arc_test_andy.ngc', '/home/tom/linuxcnc/configs/NEW_MILL_2.8.4/auto.ngc', '/home/tom/linuxcnc/nc_files/readme.ngc'] ******************** bigopenfile.tcl contents: #---------------------------------------------------------------- if {[info proc tkgof] == ""} {rename tk_getOpenFile tkgof} proc tk_getOpenFile {args} { # location on screen: set xoff 0 set yoff 0 # get width and height for max screen # set maxsize [wm maxsize .] # set width [lindex $maxsize 0] # set height [lindex $maxsize 1] # alternately, just set width, height, and offsets explicitly: set width 700 set height 500 set xoff 100 set yoff 100 after 0 [list wm geometry .__tk_filedialog ${width}x${height}+${xoff}+${yoff}] return [eval tkgof $args] } #---------------------------------------------------------------- ********************