From 2bae77d17a8e55d348b8c03e8c561056800562a6 Mon Sep 17 00:00:00 2001
From: M33 <327-m33@git.qoto.org>
Date: Sat, 20 Mar 2021 16:16:52 +0000
Subject: [PATCH] script to fetch source keyboard layouts from squeekboard's
 depot

---
 get_normal_keyboards.sh | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 get_normal_keyboards.sh

diff --git a/get_normal_keyboards.sh b/get_normal_keyboards.sh
new file mode 100644
index 0000000..99863a0
--- /dev/null
+++ b/get_normal_keyboards.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+#
+# get_normal_keyboards.sh
+#
+# A simple script that get normal keyboards from the squeekboard git depot
+# Gitlab depot : https://git.qoto.org/m33/squeekboard-terminal-layout-generator
+#
+# M33 (https://octodon.social/M33) - 20.03.2021
+#
+
+SOURCE_GIT=https://source.puri.sm/Librem5/squeekboard.git
+SQUEEKBOARD_DIR=squeekboard/data/keyboards
+NORMAL_DIR=normal_layout
+
+mkdir -p $NORMAL_DIR
+if [ $? -ne 0 ]; then
+  echo "Error: can't create target directory $NORMAL_DIR"
+  exit 1
+fi
+
+git clone $SOURCE_GIT
+if [ $? -ne 0 ]; then
+  echo "Error: can't get sources"
+  exit 1
+fi
+
+cp -vf $SQUEEKBOARD_DIR/*.yaml $NORMAL_DIR
+rm -fr squeekboard
+
+exit 0
-- 
GitLab