blob: 3a70574af9d3aed0794ae20c2e762eb597f5c9d0 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2
3. /etc/formfactor/config
4
5if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
6 SHOWCURSOR="no"
7else
8 SHOWCURSOR="yes"
9fi
10
11if [ "$HAVE_KEYBOARD" = "1" ]; then
12 KEYBOARD_APPLET=""
13else
14 KEYBOARD_APPLET="keyboard"
15fi
16
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017matchbox-desktop &
18
19# Lines containing feature-[foo] are removed at build time if the machine
20# doesn't have the feature "foo".
21
22START_APPLETS=showdesktop,windowselector
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023END_APPLETS=$KEYBOARD_APPLET,systray,startup-notify,notify
24END_APPLETS=battery,$END_APPLETS # feature-acpi
25END_APPLETS=battery,$END_APPLETS # feature-apm
26END_APPLETS=clock,$END_APPLETS
Patrick Williamsc124f4f2015-09-15 14:41:29 -050027END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone
28
Patrick Williamsc0f7c042017-02-23 20:41:17 -060029matchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS &
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030
Patrick Williamsc0f7c042017-02-23 20:41:17 -060031exec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@