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

@ -7,12 +7,12 @@
[ -z "$SXMO_SUBREDDITS" ] && SXMO_SUBREDDITS="pine64official pinephoneofficial unixporn postmarketos linux"
menu() {
pidof "$KEYBOARD" || "$KEYBOARD" &
sxmo_keyboard.sh open
SUBREDDIT="$(
printf %b "Close Menu\n$(echo "$SXMO_SUBREDDITS" | tr " " '\n')" |
dmenu -p "Subreddit:" -c -l 10
)"
pkill "$KEYBOARD"
sxmo_keyboard.sh close
[ "Close Menu" = "$SUBREDDIT" ] && exit 0
REDDITRESULTS="$(