summaryrefslogtreecommitdiff
path: root/packages/multitap-pad/files/80multitappad
diff options
context:
space:
mode:
authorJohn Lee <john_lee@openmoko.org>2008-02-29 11:27:04 +0000
committerOpenmoko anonymizer key <devel@lists.openmoko.org>2008-02-29 11:27:04 +0000
commited8ec27c2b1823b6b33af47e9595beb0f473a33d (patch)
treefbb1db6134abf8cde765b45eec05a9d5944c9283 /packages/multitap-pad/files/80multitappad
parent7d6159396d33d1bb43db509c086d41641267ec4c (diff)
multitap-pad: multi-tap input method for GTK
Diffstat (limited to 'packages/multitap-pad/files/80multitappad')
-rw-r--r--packages/multitap-pad/files/80multitappad20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/multitap-pad/files/80multitappad b/packages/multitap-pad/files/80multitappad
new file mode 100644
index 0000000000..d2b12ea7cc
--- /dev/null
+++ b/packages/multitap-pad/files/80multitappad
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+CMD=""
+
+if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then
+ if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then
+ CMD="multitap-pad -d -o landscape"
+ elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then
+ CMD="multitap-pad -d -o portrait"
+ fi
+else
+ CMD="multitap-pad -d"
+fi
+
+
+# Delay to make sure the window manager is active
+
+if [ "$CMD" ]; then
+ (sleep 2 && $CMD) &
+fi