How to add

  1. SSH to your rM
  2. Put file into: /usr/share/remarkable/templates
  3. Add entry to file: /usr/share/remarkable/templates/templates.json (back it up first)
  4. Restart the GUI: systemctl restart xochitl

All of the above must be repeated after each system update.

If you have jq installed (e.g. using Entware), you can automate this. First,

  1. Put your SVG files into directory /home/root/templates
  2. Create a JSON file with your template entries and save it as /home/root/templates/extra-templates.json

This can be done just once, since the contents of /home/root don’t get erased during system updates. Now run the code below:

cp -n /home/root/templates/*.svg /usr/share/remarkable/templates

cp -n /usr/share/remarkable/templates/templates.json /usr/share/remarkable/templates/templates.json.bak
cp /usr/share/remarkable/templates/templates.json.bak /home/root/templates/templates.json.original

jq -ra '.templates += inputs' \\
    /home/root/templates/templates.json.original \\
    /home/root/templates/extra-templates.json \\
    > /home/root/templates/templates.json.custom

cp /home/root/templates/templates.json.custom /usr/share/remarkable/templates/templates.json

systemctl restart xochitl