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.
11 lines
303 B
Bash
Executable file
11 lines
303 B
Bash
Executable file
#!/usr/bin/env sh
|
|
pidof "$KEYBOARD" || "$KEYBOARD" &
|
|
SEARCHQUERY="$(
|
|
echo "Close Menu" | dmenu -t -p "Search Query:" -c -fn "Terminus-20" -l 20
|
|
)"
|
|
pkill "$KEYBOARD"
|
|
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0
|
|
|
|
echo "$SEARCHQUERY" | grep . || exit 0
|
|
|
|
$BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}"
|