summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/matchbox-poky/matchbox-poky/etc/matchbox/session
blob: fede9e44b9dc6bbea08e1226116d4d51dd65de6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/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
	"SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi" | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi")
		chkhinge26 /dev/input/event0 hinge-handler &
		;;
	"Generic OMAP1510/1610/1710")
		/usr/bin/mbinputmgr &
		;;
	"ARM-IntegratorCP")
		/usr/bin/mbinputmgr &
		SHOWCURSOR="yes"
		;;
esac

## All this should be done by themeing/xsettings.. ## 
matchbox-desktop --icon-size 48 \
                 --icon-padding 64 \
                 --font sans-8:bold \
                 --titlefont sans-8:bold &

# let theme set it
# --bg /usr/share/themes/Clearlooks/background/default.png \

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 &

## eek ugly no cursor hack - transparent theme should do this
exec matchbox-window-manager -theme Clearlooks -use_cursor $SHOWCURSOR $@