Simple utility to turn swipes into words -- "plugin" for wvkbd to enable swipe-typing under wayland SXMO.
Diffstat (limited to 'functions.sh')
-rw-r--r--functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh
new file mode 100644
index 0000000..440219b
--- /dev/null
+++ b/functions.sh
@@ -0,0 +1,6 @@
+firstLetter(){
+ echo "$1"|grep -o '^.'
+}
+lastLetter(){
+ echo "$1"|grep -o '.$'
+}