summaryrefslogtreecommitdiffstats
path: root/meta/packages/matchbox-keyboard/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/matchbox-keyboard/files')
-rwxr-xr-xmeta/packages/matchbox-keyboard/files/80matchboxkeyboard23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/matchbox-keyboard/files/80matchboxkeyboard b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard
new file mode 100755
index 0000000000..60d9ff0e5d
--- /dev/null
+++ b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard
@@ -0,0 +1,23 @@
1#!/bin/sh
2
3. /etc/formfactor/config
4
5CMD=""
6
7if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then
8 if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then
9 CMD="matchbox-keyboard -d -o landscape"
10 elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then
11 CMD="matchbox-keyboard -d -o portrait"
12 fi
13elif [ "$HAVE_KEYBOARD" = "1" ]; then
14 # Have a physical keyboard, nothing to do
15 exit
16fi
17
18# Delay to make sure the window manager is active
19
20if [ "$CMD" ]; then
21 (sleep 2 && $CMD) &
22fi
23