Assigning a python command to a mouse hotkey
open User Preferences -> Input
open some category and click Add New button
insert hexblender.adjust_nodes_linear into the input field
assign some keyboard shortcut
test the keyboard shortcut and if it works, use the X-Mouse Button Control application to set your mouse button action to trigger your keyboard shortcut