diff --git a/.gitmodules b/.gitmodules index 01bd2f5..5f6fbf3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "lvgl"] path = lvgl url = https://github.com/littlevgl/lvgl.git +[submodule "squeek2lvgl"] + path = squeek2lvgl + url = https://gitlab.com/cherrypicker/squeek2lvgl diff --git a/README.md b/README.md index 98949f4..b75c91a 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,13 @@ $ npx lv_font_conv --bpp 4 --size 32 --no-compress -o montserrat_extended_32.c - ## Changing layouts -Buffyboards uses squeekboard layouts converted to C via [squeek2lvgl]. +Buffyboard uses [squeekboard layouts] converted to C via [squeek2lvgl]. To regenerate the layouts, run + +``` +$ ./regenerate-layouts.sh +``` + +from the root of the repository. # Acknowledgements @@ -88,6 +94,7 @@ The [FontAwesome] font is licensed under the Open Font License version 1.1. [lvgl]: https://github.com/lvgl/lvgl [Montserrat]: https://fonts.google.com/specimen/Montserrat [FontAwesome]: https://fontawesome.com/ +[squeekboard layouts]: https://gitlab.gnome.org/World/Phosh/squeekboard/-/blob/master/data/keyboards [squeek2lvgl]: https://gitlab.com/cherrypicker/squeek2lvgl] [bakonyiferenc/fbkeyboard]: https://github.com/bakonyiferenc/fbkeyboard [squeekboard]: https://gitlab.gnome.org/World/Phosh/squeekboard/-/tree/master diff --git a/regenerate-layouts.sh b/regenerate-layouts.sh new file mode 100755 index 0000000..8cb3712 --- /dev/null +++ b/regenerate-layouts.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Copyright 2021 Johannes Marbach +# +# This file is part of buffyboard, hereafter referred to as the program. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +cd squeek2lvgl +pipenv install +pipenv run python squeek2lvgl.py --input terminal/us.yaml --output .. --generate-scancodes diff --git a/squeek2lvgl b/squeek2lvgl new file mode 160000 index 0000000..5f10b71 --- /dev/null +++ b/squeek2lvgl @@ -0,0 +1 @@ +Subproject commit 5f10b71d79e33b86c157c21b25575c46ca25c254