initial commit

This commit is contained in:
2026-02-22 11:33:39 +01:00
commit db51f48289
8 changed files with 724 additions and 0 deletions

46
keycaps_numpad.sh Executable file
View File

@@ -0,0 +1,46 @@
#!/bin/bash
labels=(
"1" "2" "3" "4" "5" "6" "7" "8" "9" "Num" "/" "*" "-" "." "Esc" "F1" "F2" "F3"
)
labels2=(
"0"
)
labels3=(
"+" "Ent"
)
mkdir -p keycaps_numpad_stl
echo "Starting STL generation..."
for label in "${labels[@]}"; do
echo "Generating: $label.stl"
openscad \
-o "keycaps_numpad_stl/$label.stl" \
-D "legend_char=\"$label\"" \
-D "legend_size=5" \
./xda_keycap.scad
done
for label in "${labels2[@]}"; do
echo "Generating: $label.stl"
openscad \
-o "keycaps_numpad_stl/$label.stl" \
-D "legend_char=\"$label\"" \
-D "legend_size=5" \
-D "u_count_x=2" \
./xda_keycap.scad
done
for label in "${labels3[@]}"; do
echo "Generating: $label.stl"
openscad \
-o "keycaps_numpad_stl/$label.stl" \
-D "legend_char=\"$label\"" \
-D "legend_size=5" \
-D "u_count_y=2" \
./xda_keycap.scad
done
echo "Done! Check the 'keycaps_numpad_stl' folder."