A shortcut manager that speeds up drawing (mathematical) figures in Inkscape.
I write my lecture notes in LaTeX and I want to draw figures in real time, i.e. while the lecturer is drawing on the blackboard. While the figures I want to draw quite simple, drawing them in Inkscape with default shortcuts takes too much time to keep up with a fast paced lecture. My goal is to draw figures like this:
I created a custom shortcut manager that intercepts all keyboard events sent to Inkscape windows giving me full control of user input. The script has the following features
For more details and context, feel free to read my blog post.
Note that this script only works on GNU/Linux using Python ≥ 3.6. It also has the following dependencies:
Xlib
python library to intercept keyboard eventspdflatex
and pdf2svg
to render LaTeX in Inkscapexclip
to access the clipboardrofi
for a selection dialog when saving styles and objectsUse the shortcut manager by running python3 main.py
and opening an Inkscape window.
You can configure the shortcut manager by creating a file located at ~/.config/inkscape-shortcut-manager/config.py
. You can override the rofi theme, font, editor, as well as the LaTeX template that's being used. It's merged with the default config located at config.py
. An example configuration file is located in the examples
directory.