Initial commit

This commit is contained in:
Mattéo Delabre 2022-01-11 21:47:31 -05:00
commit e0d43e5ca4
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
8 changed files with 9732 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

25
Makefile Normal file
View File

@ -0,0 +1,25 @@
WIDTH?=1404
HEIGHT?=1872
DEVICE?=root@10.11.99.1
MANAGER?=/opt/bin/templatectl
SOURCE=templates
BUILD=build
$(shell mkdir -p "$(BUILD)")
TEMPLATES=$(foreach vector,$(shell find "$(SOURCE)" -iname "*.svg" -type f),$(subst .svg,,$(subst $(SOURCE)/,,$(vector)))-push)
all: $(TEMPLATES)
clean:
rm "$(BUILD)"/*
$(BUILD)/%.png: $(SOURCE)/%.svg
inkscape "$^" -o "$@" -w $(WIDTH) -h $(HEIGHT) 2>/dev/null
%-push: $(BUILD)/%.png $(SOURCE)/%.svg $(SOURCE)/%.meta
ssh "$(DEVICE)" $(MANAGER) --version
scp "$(BUILD)"/$*.png "$(SOURCE)"/$*.svg "$(DEVICE):/usr/share/remarkable/templates"
echo '$(MANAGER) add $(shell cat "$(SOURCE)/$*.meta") --filename "$*"' | ssh "$(DEVICE)"
.PHONY: all clean

View File

@ -0,0 +1,4 @@
--category "Classroom"
--icon_code "e9fd"
--landscape
--name "Blackboard"

71
templates/blackboard.svg Normal file
View File

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
id="svg2"
width="1872"
height="2496"
viewBox="0 0 1872 2496"
sodipodi:docname="Blackboard.svg"
inkscape:version="0.92.4 5da689c313, 2019-01-14"
inkscape:export-filename="/home/matteo/Projects/remarkable/src/resources/templates/Cours body.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<metadata
id="metadata8">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs6" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1010"
id="namedview4"
showgrid="false"
showguides="true"
inkscape:guide-bbox="true"
inkscape:zoom="0.32"
inkscape:cx="933.9214"
inkscape:cy="1245.7187"
inkscape:window-x="0"
inkscape:window-y="32"
inkscape:window-maximized="0"
inkscape:current-layer="svg2"
inkscape:pagecheckerboard="true"
inkscape:measure-start="0,0"
inkscape:measure-end="0,0" />
<rect
style="opacity:0.98999999;fill:#000000;fill-opacity:1;stroke:none;stroke-width:4.5195632;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect5190"
width="1872"
height="2496"
x="0"
y="-2496"
transform="scale(1,-1)"
inkscape:export-xdpi="72"
inkscape:export-ydpi="72" />
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -0,0 +1,3 @@
--category "Classroom"
--icon_code "e99c"
--name "Notebook Body"

2018
templates/notebook-body.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,3 @@
--category "Classroom"
--icon_code "e99c"
--name "Notebook Header"

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 334 KiB