Made choice for virtual keyboard configurable through the $KEYBOARD environment variable.

This implements what was suggested in the discussion regarding the svkbd
patch, it makes the choice of virtual keyboard configurable using the
$KEYBOARD variable, rather than hard-coding it.
This commit is contained in:
Maarten van Gompel 2020-07-25 17:12:20 +02:00 committed by Miles Alan
parent 293bf69871
commit ace9960926
9 changed files with 21 additions and 20 deletions

View file

@ -1,9 +1,9 @@
#!/usr/bin/env sh
pidof svkbd-sxmo || svkbd-sxmo &
pidof "$KEYBOARD" || "$KEYBOARD" &
SEARCHQUERY="$(
echo "Close Menu" | dmenu -t -p "Search Query:" -c -fn "Terminus-20" -l 20
)"
pkill svkbd-sxmo
pkill "$KEYBOARD"
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0
echo "$SEARCHQUERY" | grep . || exit 0