I'm trying to hotkey Blender's function of a mesh object in the viewport to be displayed as a wireframe (the one that can be found in the Object --> Viewport Display tab --> Display as wire). I need it so that I don't have to quit the fullscreen mode while I'm modelling.
Now, I am aware that there are free and paid add-ons available that automatically do that when you use an object for a boolean operation (like Jaynam's Fast carve or Hardops), but I try to keep my workflow add-on free as much as possible, as those add-ons have their own problems and disadvantages (slow updates causing problems with latest builds of 2.8, for example, Jaynam's fast carve creates hidden geometry rubbish in latest versions and etc, and this is why I don't want to rely on those workflows, especially when I can bind everything on hotkeys and do it quite fast straight out of the box and have zero problems migrating to future builds).
I've tried creating a hotkey bind in input preferences on a command Object.display_type, but nothing happens (It's obvious that I'm not using it correctly). I'm not acquainted with Blender python API, neither am I a good python coder. Can someone, pretty please, direct me in the correct destination?