diff --git a/get_normal_keyboards.sh b/get_normal_keyboards.sh new file mode 100644 index 0000000000000000000000000000000000000000..99863a0c8d85955024939792cf50aecf9d1db443 --- /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