sxmo-utils/scripts/core/sxmo_dmenu_with_kb.sh
Maarten van Gompel ace9960926 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.
2020-07-26 10:22:31 -05:00

6 lines
124 B
Bash
Executable file

#!/usr/bin/env sh
pidof "$KEYBOARD" >&2 || "$KEYBOARD" &
OUTPUT="$(cat | dmenu "$@")"
pkill "$KEYBOARD" >&2
echo "$OUTPUT"