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:

committed by
Miles Alan

parent
293bf69871
commit
ace9960926
@@ -24,7 +24,7 @@ timerrun() {
|
||||
}
|
||||
|
||||
menu() {
|
||||
pidof svkbd-sxmo || svkbd-sxmo &
|
||||
pidof "$KEYBOARD" || "$KEYBOARD" &
|
||||
TIMEINPUT="$(
|
||||
echo "
|
||||
1h
|
||||
@@ -42,9 +42,9 @@ menu() {
|
||||
Close Menu
|
||||
" | awk 'NF' | awk '{$1=$1};1' | dmenu -p Timer -c -fn "Terminus-30" -l 20
|
||||
)"
|
||||
pkill svkbd-sxmo
|
||||
pkill "$KEYBOARD"
|
||||
[ "Close Menu" = "$TIMEINPUT" ] && exit 0
|
||||
st -f Monospace-50 -e "$0" timerrun "$TIMEINPUT"
|
||||
}
|
||||
|
||||
if [ $# -gt 0 ]; then "$@"; else menu; fi
|
||||
if [ $# -gt 0 ]; then "$@"; else menu; fi
|
||||
|
Reference in New Issue
Block a user