Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/formfactor/config |
| 4 | |
| 5 | if [ "$HAVE_TOUCHSCREEN" = "1" ]; then |
| 6 | SHOWCURSOR="no" |
| 7 | else |
| 8 | SHOWCURSOR="yes" |
| 9 | fi |
| 10 | |
| 11 | if [ "$HAVE_KEYBOARD" = "1" ]; then |
| 12 | KEYBOARD_APPLET="" |
| 13 | else |
| 14 | KEYBOARD_APPLET="keyboard" |
| 15 | fi |
| 16 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | matchbox-desktop & |
| 18 | |
| 19 | # Lines containing feature-[foo] are removed at build time if the machine |
| 20 | # doesn't have the feature "foo". |
| 21 | |
| 22 | START_APPLETS=showdesktop,windowselector |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | END_APPLETS=$KEYBOARD_APPLET,systray,startup-notify,notify |
| 24 | END_APPLETS=battery,$END_APPLETS # feature-acpi |
| 25 | END_APPLETS=battery,$END_APPLETS # feature-apm |
| 26 | END_APPLETS=clock,$END_APPLETS |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone |
| 28 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 29 | matchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS & |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 31 | exec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@ |