From eb5e5ddc26f2a01781e056a76477df82e488fdae Mon Sep 17 00:00:00 2001
From: M33 <327-m33@git.qoto.org>
Date: Sat, 27 Mar 2021 10:56:17 +0000
Subject: [PATCH] Upload New File

---
 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