aboutsummaryrefslogtreecommitdiffstats
path: root/meta/packages/matchbox-sato/matchbox-sato/etc/matchbox
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/matchbox-sato/matchbox-sato/etc/matchbox')
-rwxr-xr-xmeta/packages/matchbox-sato/matchbox-sato/etc/matchbox/session38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/packages/matchbox-sato/matchbox-sato/etc/matchbox/session b/meta/packages/matchbox-sato/matchbox-sato/etc/matchbox/session
new file mode 100755
index 0000000000..46419d8206
--- /dev/null
+++ b/meta/packages/matchbox-sato/matchbox-sato/etc/matchbox/session
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+module_id() {
+ awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo
+}
+
+SHOWCURSOR="no"
+
+## Start up machine specific input devices. Really needs to go in its own session
+case `module_id` in
+ # On Zaurus models, zaurusd takes care of mbinputmgr for us in its hinge scripts
+ "Generic OMAP1510/1610/1710")
+ /usr/bin/mbinputmgr &
+ ;;
+ # qemu machines.. likely need better detection
+ "ARM-IntegratorCP" | "ARM-Versatile PB")
+ /usr/bin/mbinputmgr &
+ #SHOWCURSOR="yes"
+ ;;
+esac
+
+## All this should be done by themeing/xsettings.. ##
+matchbox-desktop --icon-size 48 \
+ --icon-padding 64 \
+ --font sans-16:bold \
+ --titlefont sans-16:bold &
+
+mb-applet-startup-monitor &
+
+#matchbox-panel --orientation east \
+# --padding 4 \
+# --no-menu \
+# --no-session \
+# --default-apps mb-applet-home,mb-applet-clock,mb-applet-battery &
+
+exec matchbox-window-manager -use_cursor $SHOWCURSOR $@
+
+