Added sxmo_keyboard script that acts as an intermediary to opening and closing the keyboard

This commit is contained in:
Maarten van Gompel 2021-03-15 13:49:46 +01:00
parent c51414257e
commit 4eb914265d
10 changed files with 44 additions and 17 deletions

View file

@ -4,11 +4,11 @@
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"
pidof "$KEYBOARD" || "$KEYBOARD" &
sxmo_keyboard.sh open
SEARCHQUERY="$(
echo "Close Menu" | dmenu -t -p "Search:" -c -l 20
)"
pkill "$KEYBOARD"
sxmo_keyboard.sh close
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0
echo "$SEARCHQUERY" | grep . || exit 0