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:
parent
293bf69871
commit
ace9960926
9 changed files with 21 additions and 20 deletions
|
@ -3,14 +3,14 @@ INPUT="$(cat)"
|
|||
STWIN="$(xprop -root | sed -n '/^_NET_ACTIVE_WINDOW/ s/.* //p')"
|
||||
|
||||
menu() {
|
||||
pidof svkbd-sxmo || svkbd-sxmo &
|
||||
pidof "$KEYBOARD" || "$KEYBOARD" &
|
||||
RESULT="$(
|
||||
printf %b "$(
|
||||
echo "Close Menu";
|
||||
echo "$INPUT" | grep -Eo '\S+' | tr -d '[:blank:]' | sort | uniq
|
||||
)" | dmenu -p "$PROMPT" -l 10 -i -c -fn Terminus-20
|
||||
)"
|
||||
pkill svkbd-sxmo
|
||||
pkill "$KEYBOARD"
|
||||
}
|
||||
|
||||
copy() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue