ALT-d for dashed lines, ALT-o for dotted lines, ALT-q for dash/dotted lines, ALT-s for solid line. Pressing the shortcut keys does not change the tool or its color. It just changes the line style.

For installation in windows:

  • Unzip the following zip file into “Program Files/Xournal++/share/xournalapp/plugins”, and restart xournal++

PenStrokes

  • Plugin -> Plugin Manager: Enable Penstrokes plugin.
  • Restart xournal++